MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / KeyReleased

Method KeyReleased

Source/KeyboardDisplay.cpp:338–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void KeyboardDisplay::KeyReleased(int key)
339{
340 IDrawableModule::KeyReleased(key);
341
342 key = KeyToLower(key);
343 auto it = mKeyPressRegister.find(key);
344 if (it != mKeyPressRegister.end())
345 {
346 int pitch = it->second;
347
348 mKeyPressRegister.erase(key);
349 if (pitch != -1)
350 PlayNote(NextBufferTime(false), pitch, 0);
351 }
352}
353
354void KeyboardDisplay::CheckboxUpdated(Checkbox* checkbox, double time)
355{

Callers

nothing calls this directly

Calls 2

KeyToLowerFunction · 0.85
NextBufferTimeFunction · 0.85

Tested by

no test coverage detected