Optional callback to inform the plugin about a sample rate change. This function will only be called when the plugin is deactivated. */
| 345 | This function will only be called when the plugin is deactivated. |
| 346 | */ |
| 347 | void sampleRateChanged(double newSampleRate) override |
| 348 | { |
| 349 | sampleRate = newSampleRate; |
| 350 | |
| 351 | // Cutoff value was tuned manually. |
| 352 | deltaPhaseSmoother.setCutoff(sampleRate, 100.0f); |
| 353 | gainSmoother.setCutoff(sampleRate, 500.0f); |
| 354 | envelopeSmoother.setCutoff(sampleRate, 250.0f); |
| 355 | } |
| 356 | |
| 357 | // ------------------------------------------------------------------------------------------------------- |
| 358 |
no outgoing calls
no test coverage detected