| 374 | } |
| 375 | |
| 376 | void onSampleRateChange() override { |
| 377 | float newSampleRate = APP->engine->getSampleRate(); |
| 378 | float oldSampleRate = patch->getPatchState()->sampleRate; |
| 379 | // this destroys and recreates the patch, so only do it if the sample rate has actually changed |
| 380 | if (newSampleRate != oldSampleRate) { |
| 381 | patch->updateSampleRateBlockSize(APP->engine->getSampleRate(), BLOCKSIZE); |
| 382 | } |
| 383 | } |
| 384 | |
| 385 | void updatePatchParameters(PatchCtrls *patchCtrls, PatchCvs *patchCvs, Ui *ui) { |
| 386 | // Faders (also act as CV attenuators when CV is patched) |
nothing calls this directly
no test coverage detected