From 88de45b7ccc933ee46a13d4e4e21caf9e5fb379e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 20 Jan 2013 00:46:55 +0000 Subject: Support note names from midnam files (tested with the DM5). Do this via a simple MasterDeviceNames::note_name() function. The same really needs to be done for program names, this stuff is absolutely brutal to use. Store note names in a vector indexed by number instead of a list with string "numbers" for reasonable lookup time. Make some references const that should be. git-svn-id: svn://localhost/ardour2/branches/3.0@13908 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/midi_time_axis.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gtk2_ardour/midi_time_axis.h') diff --git a/gtk2_ardour/midi_time_axis.h b/gtk2_ardour/midi_time_axis.h index 635d529d34..d61b64f36c 100644 --- a/gtk2_ardour/midi_time_axis.h +++ b/gtk2_ardour/midi_time_axis.h @@ -80,6 +80,9 @@ class MidiTimeAxisView : public RouteTimeAxisView ARDOUR::NoteMode note_mode() const { return _note_mode; } ARDOUR::ColorMode color_mode() const { return _color_mode; } + boost::shared_ptr get_device_names(); + boost::shared_ptr get_device_mode(); + void update_range(); sigc::signal& signal_channel_mode_changed() { @@ -112,8 +115,6 @@ class MidiTimeAxisView : public RouteTimeAxisView Gtk::Menu* build_note_mode_menu(); Gtk::Menu* build_color_mode_menu(); - boost::shared_ptr get_device_names(const std::string& model); - void set_note_mode (ARDOUR::NoteMode mode, bool apply_to_selection = false); void set_color_mode (ARDOUR::ColorMode, bool force = false, bool redisplay = true, bool apply_to_selection = false); void set_note_range (MidiStreamView::VisibleNoteRange range, bool apply_to_selection = false); -- cgit v1.2.3