- // make note change its color if its channel is not marked active
- if ( (selection & (1 << _note->channel())) == 0 ) {
- set_fill_color(ARDOUR_UI::config()->canvasvar_MidiNoteInactiveChannel.get());
- set_outline_color(calculate_outline(ARDOUR_UI::config()->canvasvar_MidiNoteInactiveChannel.get()));
- } else {
- // set the color according to the notes selection state
- set_selected(_selected);
- }
+ _channel_selection = selection;
+
+ /* this takes into account whether or not the note should be drawn as inactive */
+ set_selected (_selected);
+