diff options
author | Carl Hetherington <carl@carlh.net> | 2010-08-14 02:00:50 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2010-08-14 02:00:50 +0000 |
commit | 439d13535ee7ae73b1e7d6b0cc99022739234a28 (patch) | |
tree | 56ba61561b3c84e1ebc62c766ff289d88dd707c2 /gtk2_ardour/midi_region_view.h | |
parent | 4e2d805c9d60c493dbdd0683d14377f4cdc1960f (diff) |
Add note edit dialog. Fixes #3346.
git-svn-id: svn://localhost/ardour2/branches/3.0@7625 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r-- | gtk2_ardour/midi_region_view.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h index ccab1d06bc..75ee5f13d8 100644 --- a/gtk2_ardour/midi_region_view.h +++ b/gtk2_ardour/midi_region_view.h @@ -64,6 +64,7 @@ class AutomationTimeAxisView; class AutomationRegionView; class MidiCutBuffer; class MidiListEditor; +class EditNoteDialog; class MidiRegionView : public RegionView { @@ -224,12 +225,6 @@ class MidiRegionView : public RegionView void update_resizing (ArdourCanvas::CanvasNote *, bool, double, bool); void commit_resizing (ArdourCanvas::CanvasNote *, bool, double, bool); - /** Adjust the velocity on a note, and the selection if applicable. - * @param velocity the relative or absolute velocity - * @param relative whether velocity is relative or absolute - */ - void change_velocity(ArdourCanvas::CanvasNoteEvent* ev, int8_t velocity, bool relative=false); - /** Change the channel of the selection. * @param channel - the channel number of the new channel, zero-based */ @@ -306,6 +301,9 @@ class MidiRegionView : public RegionView void reset_width_dependent_items (double pixel_width); private: + + friend class EditNoteDialog; + /** Play the NoteOn event of the given note immediately * and schedule the playback of the corresponding NoteOff event. */ @@ -325,9 +323,11 @@ class MidiRegionView : public RegionView void midi_channel_mode_changed(ARDOUR::ChannelMode mode, uint16_t mask); void midi_patch_settings_changed(std::string model, std::string custom_device_mode); + void change_note_channel (ArdourCanvas::CanvasNoteEvent *, int8_t); void change_note_velocity(ArdourCanvas::CanvasNoteEvent* ev, int8_t vel, bool relative=false); void change_note_note(ArdourCanvas::CanvasNoteEvent* ev, int8_t note, bool relative=false); void change_note_time(ArdourCanvas::CanvasNoteEvent* ev, ARDOUR::MidiModel::TimeType, bool relative=false); + void change_note_length (ArdourCanvas::CanvasNoteEvent *, ARDOUR::MidiModel::TimeType); void trim_note(ArdourCanvas::CanvasNoteEvent* ev, ARDOUR::MidiModel::TimeType start_delta, ARDOUR::MidiModel::TimeType end_delta); |