summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-05 00:08:30 +0000
committerDavid Robillard <d@drobilla.net>2009-05-05 00:08:30 +0000
commit7863c03cfc6c116dbef73ffc2f096ed50699cfb4 (patch)
treee555c234c84bb8c1ffb5be930167abc20b927529 /gtk2_ardour/midi_region_view.h
parent61169434eaf9e106f42c9254de53a57f98773754 (diff)
Make MIDI note editing work somewhat again...
Only show note velocity text when the user is actually editing velocity. git-svn-id: svn://localhost/ardour2/branches/3.0@5047 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index adb4a1e316..61e426795b 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -159,7 +159,7 @@ class MidiRegionView : public RegionView
void display_model(boost::shared_ptr<ARDOUR::MidiModel> model);
void start_delta_command(std::string name = "midi edit");
- void command_add_note(const boost::shared_ptr<NoteType> note, bool selected);
+ void command_add_note(const boost::shared_ptr<NoteType> note, bool selected, bool show_velocity=false);
void command_remove_note(ArdourCanvas::CanvasNoteEvent* ev);
void apply_command();
@@ -333,6 +333,10 @@ class MidiRegionView : public RegionView
/** New notes (created in the current command) which should be selected
* when they appear after the command is applied. */
std::set< boost::shared_ptr<NoteType> > _marked_for_selection;
+
+ /** New notes (created in the current command) which should have visible velocity
+ * when they appear after the command is applied. */
+ std::set< boost::shared_ptr<NoteType> > _marked_for_velocity;
std::vector<NoteResizeData *> _resize_data;
};