summaryrefslogtreecommitdiff
path: root/gtk2_ardour/automation_time_axis.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-04-15 02:38:18 +0200
committerRobin Gareus <robin@gareus.org>2020-04-15 02:38:18 +0200
commita3af5e31f1870f45a2f4fd6315018610f36e5947 (patch)
tree9962151416bceae1f81a8ea7212f941594b1b144 /gtk2_ardour/automation_time_axis.cc
parent4130bc3a8676d048c813e12d37e22ff7f41ba478 (diff)
Update labels in MIDI Automation Lanes when MIDNAM changes
Diffstat (limited to 'gtk2_ardour/automation_time_axis.cc')
-rw-r--r--gtk2_ardour/automation_time_axis.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk2_ardour/automation_time_axis.cc b/gtk2_ardour/automation_time_axis.cc
index 79f6a5cae6..ac524ab5e6 100644
--- a/gtk2_ardour/automation_time_axis.cc
+++ b/gtk2_ardour/automation_time_axis.cc
@@ -575,6 +575,22 @@ AutomationTimeAxisView::set_height (uint32_t h, TrackHeightMode m)
}
void
+AutomationTimeAxisView::update_name_from_param ()
+{
+ /* Note that this is intended for MidiTrack::describe_parameter()
+ * -> instrument_info().get_controller_name()
+ * It does not work with parent/plug_name for plugins.
+ */
+ boost::shared_ptr<ARDOUR::Route> r = boost::dynamic_pointer_cast<ARDOUR::Route> (_stripable);
+ if (!r) {
+ return;
+ }
+ _name = r->describe_parameter(_parameter);
+ set_tooltip (controls_ebox, _name);
+ name_label.set_text (_name);
+}
+
+void
AutomationTimeAxisView::set_samples_per_pixel (double fpp)
{
TimeAxisView::set_samples_per_pixel (fpp);