summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-12-26 16:19:32 +0000
committerCarl Hetherington <carl@carlh.net>2010-12-26 16:19:32 +0000
commitfd0c45ec9745c5330fbb732581ec22ba9a31a3c0 (patch)
tree872df0ae0ba2b1b725890f4919d4be110aac395c /gtk2_ardour/midi_region_view.h
parentbc29adf05493ff2503b230604b237b75eb7af7fa (diff)
Use the channel selector to decide which channel to add program changes to.
git-svn-id: svn://localhost/ardour2/branches/3.0@8343 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_region_view.h')
-rw-r--r--gtk2_ardour/midi_region_view.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_region_view.h b/gtk2_ardour/midi_region_view.h
index 4bfaebbf13..ed8e382c4f 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -149,7 +149,7 @@ class MidiRegionView : public RegionView
*/
void alter_program_change(PCEvent& old_program, const MIDI::Name::PatchPrimaryKey& new_patch);
- void add_program_change (framecnt_t, uint8_t, uint8_t);
+ void add_program_change (framecnt_t, uint8_t);
void move_program_change (PCEvent, Evoral::MusicalTime);
void delete_program_change (ArdourCanvas::CanvasProgramChange *);
@@ -346,6 +346,8 @@ class MidiRegionView : public RegionView
void add_to_selection (ArdourCanvas::CanvasNoteEvent*);
void remove_from_selection (ArdourCanvas::CanvasNoteEvent*);
+ uint8_t get_channel_for_add () const;
+
int8_t _force_channel;
uint16_t _last_channel_selection;
uint8_t _current_range_min;