* made notes whose channel is not selected in the track appear gray, see http://www.flickr.com/photos/24012642@N02/2429528120/

git-svn-id: svn://localhost/ardour2/branches/3.0@3272 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Baier 2008-04-20 22:33:13 +00:00
parent 20cfa08aea
commit e8c2b6f371
8 changed files with 58 additions and 20 deletions

View file

@ -78,6 +78,22 @@ CanvasMidiEvent::hide_velocity(void)
_text->hide();
}
void
CanvasMidiEvent::on_channel_selection_change(uint16_t selection)
{
// 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_MidiNoteFillInactiveChannel.get());
set_outline_color(ARDOUR_UI::config()->canvasvar_MidiNoteOutlineInactiveChannel.get());
} else {
set_fill_color(note_fill_color(_note->velocity()));
set_outline_color(note_outline_color(_note->velocity()));
}
// this forces the item to update..... maybe slow...
_item->hide();
_item->show();
}
void
CanvasMidiEvent::on_channel_change(uint8_t channel)
{