A Base class for delay based digital effects. Provides the basic methods that are shared amongst Flanger, Delay, Chorus and Phaser.
More...
#include <AudioEffectsSuite.h>
A Base class for delay based digital effects. Provides the basic methods that are shared amongst Flanger, Delay, Chorus and Phaser.
- Version
- 0.1
- See also
- DelayEffectBase
- Author
- Matthew Hamilton
- Copyright
- MIT License
◆ DelayEffectBase() [1/3]
◆ DelayEffectBase() [2/3]
◆ DelayEffectBase() [3/3]
◆ ~DelayEffectBase()
◆ delaySample()
store input sample into the delay buffer and increment currentDelayWriteIndex for tracking when to loop back to start of buffer
- Parameters
-
| inputSample | sample to be stored for delay (effectsuite_t) |
◆ getInterpolatedOut()
get the value of the requested buffer index by interpolating other points
- Parameters
-
| bufferIndex | The required buffer index |
- Returns
- interpolated output
◆ incDelayBuffReadIndex()
Increments the currentDelayBufferReadIndex by indexInc
- Parameters
-
| indexInc | The amount to increment the delay buffer index |
◆ incDelayBuffWriteIndex()
| void incDelayBuffWriteIndex |
( |
| ) |
|
|
inlineprotected |
Increments the currentDelayWriteBufferIndex by 1
◆ setDelayBuffer()
| bool setDelayBuffer |
( |
int |
bufferSizeSamples | ) |
|
|
inlineprotected |
Allocates memory for delay buffer and initialises all elements to 0
- Parameters
-
| bufferSizeSamples | the size of delay buffer to be used |
- Returns
- false and error description if there's a problem, or sets the internal delay buffer and returns true
◆ setDelayBuffReadIndex()
sets the currentDelayBufferReadIndex by indexInc (Currently no wrapping)
- Parameters
-
| index | the read index index required |
◆ setInterpolationTable()
Sets the internal lagrange interpolation table. Ideally it should be shared amongst all
- Returns
- false and an error description if there's a problem, or sets the interpolation lookup table and returns true
◆ setupDelayEffectBase()
◆ storeSample()
store input sample into the delay buffer
- Parameters
-
| inputSample | sample to be stored for delay (effectsuite_t) |
◆ currentDelayReadIndex
◆ currentDelayWriteIndex
| int currentDelayWriteIndex = 0 |
|
protected |
◆ delayBuffer
buffer to stored audio buffer for delay effects
◆ delayTimeSamples
| int delayTimeSamples = 44100 |
|
protected |
the delay time of signal in samples
◆ error
internal class error boolean
◆ interpOrder
◆ interpResolution
◆ maxDelayBufferSize
| int maxDelayBufferSize = 441000 |
|
protected |
Maximum number of samples that can be stored in delayBuffer
The documentation for this class was generated from the following file: