==============================================================================
| 125 | |
| 126 | //============================================================================== |
| 127 | void NeuralPiAudioProcessor::prepareToPlay (double sampleRate, int samplesPerBlock) |
| 128 | { |
| 129 | // Use this method as the place to do any pre-playback |
| 130 | // initialisation that you need.. |
| 131 | LSTM.reset(); |
| 132 | |
| 133 | // set up DC blocker |
| 134 | dcBlocker.coefficients = dsp::IIR::Coefficients<float>::makeHighPass(sampleRate, 35.0f); |
| 135 | dsp::ProcessSpec spec{ sampleRate, static_cast<uint32> (samplesPerBlock), 2 }; |
| 136 | dcBlocker.prepare(spec); |
| 137 | |
| 138 | // Set up IR |
| 139 | cabSimIR.prepare(spec); |
| 140 | |
| 141 | // fx chain |
| 142 | fxChain.prepare(spec); |
| 143 | } |
| 144 | |
| 145 | void NeuralPiAudioProcessor::releaseResources() |
| 146 | { |