FixedDelayPatch() { AudioBuffer* buffer = createMemoryBuffer(1, REQUEST_BUFFER_SIZE); delayBuffer.initialise(buffer->getSamples(0), buffer->getSize()); registerParameter(PARAMETER_A, "Feedback"); registerParameter(PARAMETER_B, "Mix"); registerParameter(PARAMETER_C, ""); registerParameter(PARAMETER_D, ""); }
DubDelayPatch() { registerParameter(PARAMETER_A, "Time"); registerParameter(PARAMETER_B, "Feedback"); registerParameter(PARAMETER_C, "Tone"); registerParameter(PARAMETER_D, "Wet"); AudioBuffer* buffer = createMemoryBuffer(1, REQUEST_BUFFER_SIZE); delayBuffer.initialise(buffer->getSamples(0), REQUEST_BUFFER_SIZE); }
SimpleDriveDelayPatch() : delay(0) { registerParameter(PARAMETER_A, "Delay"); registerParameter(PARAMETER_B, "Feedback"); registerParameter(PARAMETER_C, "Drive"); registerParameter(PARAMETER_D, "Wet/Dry "); AudioBuffer* buffer = createMemoryBuffer(1, REQUEST_BUFFER_SIZE); delayBuffer.initialise(buffer->getSamples(0), buffer->getSize()); }
FlangerPatch(){ AudioBuffer* buffer = createMemoryBuffer(1, FLANGER_BUFFER_SIZE); delayBuffer.initialise(buffer->getSamples(0), buffer->getSize()); registerParameter(PARAMETER_A, "Rate"); registerParameter(PARAMETER_B, "Depth"); registerParameter(PARAMETER_C, "Feedback"); registerParameter(PARAMETER_D, ""); phase = 0; }
SimpleDelayPatch() : delay(0), alpha(0.04), dryWet(0.f) { registerParameter(PARAMETER_A, "Delay"); registerParameter(PARAMETER_B, "Feedback"); registerParameter(PARAMETER_C, ""); registerParameter(PARAMETER_D, "Dry/Wet"); AudioBuffer* buffer = createMemoryBuffer(1, SIMPLE_DELAY_REQUEST_BUFFER_SIZE); delayBuffer.initialise(buffer->getSamples(0), buffer->getSize()); }
LpfDelayPatch() : x1(0.0f), x2(0.0f), y1(0.0f), y2(0.0f), olddelaySamples(0.0f) { AudioBuffer* buffer = createMemoryBuffer(1, REQUEST_BUFFER_SIZE); delayBuffer.initialise(buffer->getSamples(0), buffer->getSize()); registerParameter(PARAMETER_A, "Delay", "Delay time"); registerParameter(PARAMETER_B, "Feedback", "Delay loop feedback"); registerParameter(PARAMETER_C, "Fc", "Filter cutoff frequency"); registerParameter(PARAMETER_D, "Dry/Wet", "Dry/wet mix"); setCoeffs(getLpFreq()/getSampleRate(), 0.6f); }
SimpleDelayPatch() : delay(0), time(0.0) { AudioBuffer* buffer = createMemoryBuffer(1, REQUEST_BUFFER_SIZE); delayBuffer.initialise(buffer->getSamples(0), buffer->getSize()); }