127 |
if (!NotesChanged()) return true; |
if (!NotesChanged()) return true; |
128 |
for (int iKey = 0; iKey < 128; iKey++) |
for (int iKey = 0; iKey < 128; iKey++) |
129 |
if (NoteChanged(iKey)) |
if (NoteChanged(iKey)) |
130 |
NoteIsActive(iKey) ? // we don't care about velocity yet |
NoteIsActive(iKey) ? |
131 |
app->on_note_on_event(iKey, 127) : |
app->on_note_on_event(iKey, NoteOnVelocity(iKey)) : |
132 |
app->on_note_off_event(iKey, 127); |
app->on_note_off_event(iKey, NoteOffVelocity(iKey)); |
133 |
return true; |
return true; |
134 |
} |
} |
135 |
|
|