Audio delay line for comb filter, flange, chorus and short echo effects. More...
Public Member Functions | |
AudioDelay () | |
Constructor. | |
AudioDelay (unsigned int delaytime_cells) | |
Constructor. | |
char | next (char in_value, unsigned int delaytime_cells) |
Input a value to the delay and retrieve the signal in the delay line at the position delaytime_cells. | |
char | next (char in_value) |
Input a value to the delay and retrieve the signal in the delay line at the position delaytime_cells. | |
void | set (unsigned int delaytime_cells) |
Audio delay line for comb filter, flange, chorus and short echo effects.
NUM_BUFFER_SAMPLES | is the length of the delay buffer in samples. This should be a power of two. The largest delay you'll fit in an atmega328 will be 512 cells, which at 16384 Hz sample rate is 31 milliseconds. More of a flanger or a doubler than an echo. THe amount of memory available for delays on other chips will vary. AudioDelay() doesn't have feedback. If you want feedback, use AudioDelayFeedback(). |
Definition at line 36 of file AudioDelay.h.
AudioDelay< NUM_BUFFER_SAMPLES >::AudioDelay | ( | unsigned int | delaytime_cells | ) | [inline] |
Constructor.
delay | time expressed in cells. For example, 128 cells delay at AUDIO_RATE would produce a time delay of 128/16384 = 0.0078125 s = 7.8 ms Put another way, num_cells = delay_seconds * AUDIO_RATE. |
Definition at line 58 of file AudioDelay.h.
char AudioDelay< NUM_BUFFER_SAMPLES >::next | ( | char | in_value, |
unsigned int | delaytime_cells | ||
) | [inline] |
Input a value to the delay and retrieve the signal in the delay line at the position delaytime_cells.
in_value | the signal input. |
delaytime_cells | sets the delay time in terms of cells in the delay buffer. |
Definition at line 68 of file AudioDelay.h.
char AudioDelay< NUM_BUFFER_SAMPLES >::next | ( | char | in_value | ) | [inline] |
Input a value to the delay and retrieve the signal in the delay line at the position delaytime_cells.
in_value | the signal input. |
Definition at line 86 of file AudioDelay.h.