#include <sigc++/signal.h>
+#include "midi++/midnam_patch.h"
+
#include "pbd/memento_command.h"
#include "pbd/stateful_diff_command.h"
#include "ardour/midi_model.h"
-#include "ardour/midi_patch_manager.h"
#include "ardour/midi_region.h"
#include "ardour/midi_source.h"
#include "ardour/midi_track.h"
// calculate the colors: get the color settings
uint32_t fill_color = UINT_RGBA_CHANGE_A(
- ARDOUR_UI::config()->get_MidiNoteSelected(),
+ ARDOUR_UI::config()->color ("midi note selected"),
128);
// make the resize preview notes more transparent and bright
0.85));
resize_rect->set_outline_color (NoteBase::calculate_outline (
- ARDOUR_UI::config()->get_MidiNoteSelected()));
+ ARDOUR_UI::config()->color ("midi note selected")));
resize_data->resize_rect = resize_rect;
_resize_data.push_back(resize_data);
}
if (_selected) {
- f = ARDOUR_UI::config()->get_SelectedFrameBase();
+ f = ARDOUR_UI::config()->color ("selected region base");
} else if (high_enough_for_name) {
- f= ARDOUR_UI::config()->get_MidiFrameBase();
+ f= ARDOUR_UI::config()->color ("midi frame base");
} else {
f = fill_color;
}