MCPcopy Create free account
hub / github.com/GuitarML/NeuralPi / prepareToPlay

Method prepareToPlay

Source/PluginProcessor.cpp:127–143  ·  view source on GitHub ↗

==============================================================================

Source from the content-addressed store, hash-verified

125
126//==============================================================================
127void 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
145void NeuralPiAudioProcessor::releaseResources()
146{

Callers

nothing calls this directly

Calls 2

resetMethod · 0.45
prepareMethod · 0.45

Tested by

no test coverage detected