So i’m trying to add a feedback functionality to my plugin using the delayLine dsp module, although i’m sure i’m doing it wrong… I was able to set the delay rate, yet now that i’m trying different ways for feeding back using that inner-loop i get some really weird yet interesting noises… (Volume Caution):
https://drive.google.com/file/d/1t2vytVAAifeuGNClVgwVxi6_8xAPnaPR/view?usp=sharing)
At least that last bit at the end i though was pretty cool lol.
At one point i thought i even blew out my speakers…
Anyway, any advice on how to do this? I know i should be popping back out all those samples
for (int sample = 0; sample<buffer.getNumSamples(); ++sample)
{
delayLine.setDelay(noteMult(sliderRateValue->load()) * sixtyFourthNote);
delayLine.pushSample(channel, channelData[sample]);
//samplesToPop initialized at 1
for (int i=0; i<samplesToPop; i++)
{
channelData[sample] += delayLine.popSample(channel);
}
samplesToPop = 0;
for (int fb = 0; fb<feedBackValue->load(); ++ fb)
{
delayLine.pushSample(channel, channelData[sample]);
samplesToPop ++;
}
}