- if ((note = dynamic_cast<MidiGhostRegion::Note*>(*it)) != 0) {
- uint8_t const note_num = note->event->note()->note();
-
- if (note_num < mv->lowest_note() || note_num > mv->highest_note()) {
- note->rect->hide();
- } else {
- note->rect->show();
- double const y = trackview.current_height() - (note_num + 1 - mv->lowest_note()) * h + 1;
- note->rect->property_y1() = y;
- note->rect->property_y2() = y + h;
- }
+ uint8_t const note_num = (*it)->event->note()->note();
+
+ if (note_num < mv->lowest_note() || note_num > mv->highest_note()) {
+ (*it)->rect->hide();
+ } else {
+ (*it)->rect->show();
+ double const y = trackview.current_height() - (note_num + 1 - mv->lowest_note()) * h + 1;
+ (*it)->rect->property_y1() = y;
+ (*it)->rect->property_y2() = y + h;