MCPcopy Create free account
hub / github.com/DISTRHO/DPF / setMidiProgram

Method setMidiProgram

distrho/src/DistrhoPluginCarla.cpp:333–340  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331
332#if DISTRHO_PLUGIN_WANT_PROGRAMS
333 void setMidiProgram(const uint8_t, const uint32_t bank, const uint32_t program) override
334 {
335 const uint32_t realProgram(bank * 128 + program);
336
337 CARLA_SAFE_ASSERT_RETURN(realProgram < getMidiProgramCount(),);
338
339 fPlugin.loadProgram(realProgram);
340 }
341#endif
342
343#if DISTRHO_PLUGIN_WANT_STATE

Callers

nothing calls this directly

Calls 1

loadProgramMethod · 0.80

Tested by

no test coverage detected