-MidiGhostRegion::update_range ()
-{
- MidiStreamView* mv = midi_view();
-
- if (!mv) {
- return;
- }
-
- for (EventList::iterator it = events.begin(); it != events.end(); ++it) {
- uint8_t const note_num = (*it).second->event->note()->note();
-
- if (note_num < mv->lowest_note() || note_num > mv->highest_note()) {
- (*it).second->item->hide();
- } else {
- (*it).second->item->show();
- }
- }
-}
-
-void
-MidiGhostRegion::set_contents_height ()