receiver->controller_received(event->data.control.param, event->data.control.value);
break;
}
+ case SND_SEQ_EVENT_PITCHBEND: {
+ // Note, -8192 to 8191 instead of 0 to 127.
+ receiver->controller_received(MIDIReceiver::PITCH_BEND_CONTROLLER, event->data.control.value);
+ break;
+ }
case SND_SEQ_EVENT_NOTEON: {
receiver->note_on_received(event->data.note.note);
break;
}
unsigned num_events = 0;
- for (unsigned note_num = 1; note_num <= 127; ++note_num) {
+ for (unsigned note_num = 1; note_num <= 127; ++note_num) { // Note: Pitch bend is ignored.
bool active = active_lights.count(note_num);
if (current_light_status.count(note_num) &&
current_light_status[note_num] == active) {