make use-note-color-for-velocity much much more efficient
(by not invoking the global color change signal)
This commit is contained in:
@@ -6170,7 +6170,7 @@ Editor::ui_parameter_changed (string parameter)
|
||||
ArdourCanvas::Note::set_show_velocity_bars (UIConfiguration::instance().get_use_note_bars_for_velocity());
|
||||
_track_canvas->request_redraw (_track_canvas->visible_area());
|
||||
} else if (parameter == "use-note-color-for-velocity") {
|
||||
UIConfiguration::instance().ColorsChanged(); /* EMIT SIGNAL */
|
||||
/* handled individually by each MidiRegionView */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -133,6 +133,8 @@ MidiRegionView::MidiRegionView (ArdourCanvas::Container* parent,
|
||||
PublicEditor::DropDownKeys.connect (sigc::mem_fun (*this, &MidiRegionView::drop_down_keys));
|
||||
|
||||
Config->ParameterChanged.connect (*this, invalidator (*this), boost::bind (&MidiRegionView::parameter_changed, this, _1), gui_context());
|
||||
UIConfiguration::instance().ParameterChanged.connect (sigc::mem_fun (*this, &MidiRegionView::parameter_changed));
|
||||
|
||||
connect_to_diskstream ();
|
||||
}
|
||||
|
||||
@@ -191,6 +193,8 @@ MidiRegionView::parameter_changed (std::string const & p)
|
||||
}
|
||||
} else if (p == "color-regions-using-track-color") {
|
||||
set_colors ();
|
||||
} else if (p == "use-note-color-for-velocity") {
|
||||
color_handler ();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user