From dfed4965b7cf74f21a9e78689dbda1bc5892cde8 Mon Sep 17 00:00:00 2001 From: Hans Baier Date: Wed, 10 Dec 2008 10:54:45 +0000 Subject: * make patch selection appear only when there are patches loaded * add combobox to select CustomDeviceMode * add code to resolve patch names by their msb, lsb and program change number git-svn-id: svn://localhost/ardour2/branches/3.0@4306 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/midi_patch_manager.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'libs/ardour/ardour') diff --git a/libs/ardour/ardour/midi_patch_manager.h b/libs/ardour/ardour/midi_patch_manager.h index 3591f87d89..9a99571f79 100644 --- a/libs/ardour/ardour/midi_patch_manager.h +++ b/libs/ardour/ardour/midi_patch_manager.h @@ -63,6 +63,14 @@ public: boost::shared_ptr master_device_by_model(std::string model_name) { return _master_devices_by_model[model_name]; } + std::list custom_device_mode_names_by_model(std::string model_name) { + if (model_name != "") { + return master_device_by_model(model_name)->custom_device_mode_names(); + } else { + return std::list(); + } + } + const MasterDeviceNames::Models& all_models() const { return _all_models; } private: -- cgit v1.2.3