MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / onDeselect

Method onDeselect

plugins/Cardinal/src/HostMIDI-Gate.cpp:518–528  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

516 }
517
518 void onDeselect(const DeselectEvent&) override
519 {
520 DISTRHO_SAFE_ASSERT_RETURN(module != nullptr,);
521
522 if (module->midiInput.learningId == id)
523 {
524 if (focusNote >= 0)
525 module->setLearnedNote(id, focusNote);
526 module->midiInput.learningId = -1;
527 }
528 }
529
530 void onSelectText(const SelectTextEvent& e) override
531 {

Callers

nothing calls this directly

Calls 1

setLearnedNoteMethod · 0.80

Tested by

no test coverage detected