| 133 | } |
| 134 | |
| 135 | void |
| 136 | MidiController::dispatch_note(unsigned char, unsigned char note, unsigned char vel) |
| 137 | { |
| 138 | static const float scale = 1.f/127.f; |
| 139 | if (!_handler) return; |
| 140 | if (vel) _handler->HandleMidiNoteOn((int) note, (float)vel * scale); |
| 141 | else _handler->HandleMidiNoteOff((int) note, (float)vel * scale); |
| 142 | } |
| 143 | |
| 144 | void |
| 145 | MidiController::controller_change(unsigned char cc, unsigned char value) |
nothing calls this directly
no test coverage detected