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

Method process

Source/Eq4Band.cpp:16–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14}
15
16void Eq4Band::process (const float* inData, float* outData,
17 MidiBuffer& midiMessages,
18 const int numSamples,
19 const int numInputChannels,
20 const int sampleRate)
21{
22 // Reset params if new sampleRate detected
23 if (srate != sampleRate) {
24 srate = sampleRate;
25 resetSampleRate();
26 }
27 for (int sample = 0; sample < numSamples; ++sample) {
28 spl0 = inData[sample];
29 s0 = spl0;
30 low0 = (tmplMID = a0MID * s0 - b1MID * tmplMID + cDenorm);
31 spl0 = (tmplLOW = a0LOW * low0 - b1LOW * tmplLOW + cDenorm);
32 lowS0 = low0 - spl0;
33 hi0 = s0 - low0;
34 midS0 = (tmplHI = a0HI * hi0 - b1HI * tmplHI + cDenorm);
35 highS0 = hi0 - midS0;
36 spl0 = (spl0 * lVol + lowS0 * lmVol + midS0 * hmVol + highS0 * hVol);// * outVol;
37
38 outData[sample] = spl0;
39 }
40}
41
42void Eq4Band::setParameters(float bass_slider, float mid_slider, float treble_slider, float presence_slider)
43{

Callers 1

processBlockMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected