summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-06-12 16:32:06 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-06-12 16:32:06 +0000
commitd1d08e391059449977e7de1e858851ffd1afadc6 (patch)
tree5bb21a8854d1f2c6f5e3e2467226f9275d7dc07b /gtk2_ardour/midi_region_view.h
parentd7551a8f087483af2ef1eae4b0d6988585f03e79 (diff)
fix complete screw up in connecting MIDNAM PatchNameList with ChannelNameSets; more tweaks and twirls for patch/program change mgmt
git-svn-id: svn://localhost/ardour2/branches/3.0@12673 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 1b22029151..86600e8b8d 100644
--- a/gtk2_ardour/midi_region_view.h
+++ b/gtk2_ardour/midi_region_view.h
@@ -127,7 +127,11 @@ public:
* @key a reference to an instance of MIDI::Name::PatchPrimaryKey whose fields will
* will be set according to the result of the lookup
*/
- void get_patch_key_at(double time, uint8_t channel, MIDI::Name::PatchPrimaryKey& key);
+ void get_patch_key_at (double time, uint8_t channel, MIDI::Name::PatchPrimaryKey& key);
+
+ /** Convert a given PatchChange into a PatchPrimaryKey
+ */
+ MIDI::Name::PatchPrimaryKey patch_change_to_patch_key (ARDOUR::MidiModel::PatchChangePtr);
/** Change old_patch to new_patch.
* @param old_patch the canvas patch change which is to be altered