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

Method OnMidiProgramChange

Source/MidiController.cpp:442–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

440}
441
442void MidiController::OnMidiProgramChange(MidiProgramChange& program)
443{
444 if (!mEnabled || (mChannelFilter != ChannelFilter::kAny && program.mChannel != (int)mChannelFilter))
445 return;
446
447 MidiReceived(kMidiMessage_Program, program.mProgram, 1, 1, program.mChannel);
448
449 mQueuedMessageMutex.lock();
450 mQueuedProgramChanges.push_back(program);
451 mQueuedMessageMutex.unlock();
452
453 if (mPrintInput)
454 ofLog() << Name() << " program change: " << program.mProgram;
455}
456
457void MidiController::OnMidiPitchBend(MidiPitchBend& pitchBend)
458{

Callers 2

OnTransportAdvancedMethod · 0.45
SendMidiMessageMethod · 0.45

Calls 1

ofLogClass · 0.85

Tested by

no test coverage detected