diff options
author | David Robillard <d@drobilla.net> | 2007-10-04 05:15:28 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-04 05:15:28 +0000 |
commit | 79db28b0b87a6fb67ed6f31ec4753f52aad4358a (patch) | |
tree | 898e8a5d7c7c213900b4074051c2b8e9de95f733 /gtk2_ardour/canvas-midi-event.h | |
parent | 9bcd3f1d167428916664e56d489477e8840eec3c (diff) |
Merge the two separate 'add notes to midi region' interfaces (note and midievent).
Update note range dynamically while recording to fit incoming notes.
git-svn-id: svn://localhost/ardour2/trunk@2512 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/canvas-midi-event.h')
-rw-r--r-- | gtk2_ardour/canvas-midi-event.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/canvas-midi-event.h b/gtk2_ardour/canvas-midi-event.h index 63b32cf0ca..d7b83bc212 100644 --- a/gtk2_ardour/canvas-midi-event.h +++ b/gtk2_ardour/canvas-midi-event.h @@ -43,8 +43,8 @@ namespace Canvas { */ class CanvasMidiEvent { public: - CanvasMidiEvent(MidiRegionView& region, Item* item, const ARDOUR::Note* note = NULL); - virtual ~CanvasMidiEvent() {} + CanvasMidiEvent(MidiRegionView& region, Item* item, const ARDOUR::Note* note=NULL, bool copy_note=false); + virtual ~CanvasMidiEvent(); bool on_event(GdkEvent* ev); @@ -71,6 +71,7 @@ protected: Item* const _item; State _state; const ARDOUR::Note* _note; + bool _own_note; bool _selected; }; |