MCPcopy Create free account
hub / github.com/amsynth/amsynth / dispatch_note

Method dispatch_note

src/core/synth/MidiController.cpp:135–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void
136MidiController::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
144void
145MidiController::controller_change(unsigned char cc, unsigned char value)

Callers

nothing calls this directly

Calls 2

HandleMidiNoteOnMethod · 0.80
HandleMidiNoteOffMethod · 0.80

Tested by

no test coverage detected