Hi! I’m working on my first delay plugin. I’ve made my own delay class where i’m using an array of two juce::dsp::delayLine objects. Currently I’m using this setTime function to set the delay times with a juce::SmoothedValue.
void Delay::setTime(double bpm)
{
const int subdivisionIndex = getSyncTime();
const float selectedSubdivision = subdivisions[subdivisionIndex];
if (getSync())
{
delayInSamples = (60 / bpm) * selectedSubdivision * sampleRate;
}
else
{
delayInSamples = getTime() / 1000 * sampleRate;
}
smoothDelayTime.setTargetValue(delayInSamples);
}
(I use .setDelay(smoothDelayTime.getNextValue()) for both delayLines in the process function)
How would I go about implementing a tape delay style repitching effect?
Thanks!