mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
preparations for clip data display (MIDI) while recording (GUI edition)
This commit is contained in:
parent
7c944687c9
commit
35f16f1bb6
5 changed files with 103 additions and 5 deletions
|
|
@ -17,6 +17,7 @@
|
|||
*/
|
||||
|
||||
#include "ardour/midi_region.h"
|
||||
#include "ardour/midi_track.h"
|
||||
#include "ardour/smf_source.h"
|
||||
|
||||
#include "canvas/box.h"
|
||||
|
|
@ -34,6 +35,7 @@
|
|||
#include "ardour_ui.h"
|
||||
#include "editor_cursors.h"
|
||||
#include "editor_drag.h"
|
||||
#include "gui_thread.h"
|
||||
#include "keyboard.h"
|
||||
#include "midi_cue_background.h"
|
||||
#include "midi_cue_editor.h"
|
||||
|
|
@ -431,6 +433,24 @@ MidiCueEditor::toolbox ()
|
|||
return _toolbox;
|
||||
}
|
||||
|
||||
void
|
||||
MidiCueEditor::data_captured ()
|
||||
{
|
||||
if (view) {
|
||||
view->clip_data_recorded();
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
MidiCueEditor::set_box (std::shared_ptr<ARDOUR::TriggerBox> b)
|
||||
{
|
||||
capture_connection.disconnect ();
|
||||
if (b) {
|
||||
std::cerr << "Bix set to " << b->order() << std::endl;
|
||||
b->Captured.connect (capture_connection, invalidator (*this), boost::bind (&MidiCueEditor::data_captured, this), gui_context());
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
MidiCueEditor::set_region (std::shared_ptr<ARDOUR::MidiTrack> t, uint32_t slot_index, std::shared_ptr<ARDOUR::MidiRegion> r)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue