summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-03 03:42:56 +0200
committerRobin Gareus <robin@gareus.org>2020-04-03 03:42:56 +0200
commit714e2f1736693fbf8281513921ef2df49b7c248b (patch)
tree313c9f2ef2de324de54f4dd794dd12dca475533d /gtk2_ardour/midi_time_axis.h
parent21c9505652e203a59e5d5899478188ea2204c77b (diff)
Optimize MTAV creation, speed up new MIDI track
This removes various duplicate code-paths leading to midi-model updates, and expensive context-menu rebuilds. This significantly speeds up MIDI track creation.
Diffstat (limited to 'gtk2_ardour/midi_time_axis.h')
-rw-r--r--gtk2_ardour/midi_time_axis.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_time_axis.h b/gtk2_ardour/midi_time_axis.h
index 6295c50262..6f20b64a57 100644
--- a/gtk2_ardour/midi_time_axis.h
+++ b/gtk2_ardour/midi_time_axis.h
@@ -120,7 +120,6 @@ private:
sigc::signal<void, std::string, std::string> _midi_patch_settings_changed;
void setup_midnam_patches ();
- void update_patch_selector ();
sigc::connection _note_range_changed_connection;
@@ -143,6 +142,8 @@ private:
void update_control_names ();
bool _ignore_signals;
+ std::string _effective_model;
+ std::string _effective_mode;
MidiScroomer* _range_scroomer;
PianoRollHeader* _piano_roll_header;
ARDOUR::NoteMode _note_mode;