X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmidi_region_view.h;h=a709f523a3aa660f5fd5ff63039fb35a2400ca35;hb=80c3677c837cc9eb432df3d65a34aba543fa7258;hp=6b0dcd18047cad06a57464f5b322f0c8c0bf72e6;hpb=79db28b0b87a6fb67ed6f31ec4753f52aad4358a;p=ardour.git diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index 6b0dcd1804..a709f523a3 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -72,11 +72,13 @@ class MidiRegionView : public RegionView void set_y_position_and_height (double, double); + void set_frame_color(); + void redisplay_model(); GhostRegion* add_ghost (AutomationTimeAxisView&); - void add_note(const ARDOUR::Note& note, bool copy_note); + void add_note(const boost::shared_ptr note); void resolve_note(uint8_t note_num, double end_time); void begin_write(); @@ -99,14 +101,14 @@ class MidiRegionView : public RegionView _delta_command = _model->new_delta_command(); } - void command_add_note(ARDOUR::Note& note) { + void command_add_note(const boost::shared_ptr note) { if (_delta_command) _delta_command->add(note); } void command_remove_note(ArdourCanvas::CanvasMidiEvent* ev) { if (_delta_command && ev->note()) { - _delta_command->remove(*ev->note()); + _delta_command->remove(ev->note()); ev->selected(true); } }