Mozzi  alpha 0.01.1t
sound synthesis library for Arduino
 All Classes Functions Typedefs
Public Member Functions
AudioDelay< NUM_BUFFER_SAMPLES > Class Template Reference

Audio delay line for comb filter, flange, chorus and short echo effects. More...

List of all members.

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)

Detailed Description

template<unsigned int NUM_BUFFER_SAMPLES>
class AudioDelay< NUM_BUFFER_SAMPLES >

Audio delay line for comb filter, flange, chorus and short echo effects.

Template Parameters:
NUM_BUFFER_SAMPLESis 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.


Constructor & Destructor Documentation

template<unsigned int NUM_BUFFER_SAMPLES>
AudioDelay< NUM_BUFFER_SAMPLES >::AudioDelay ( unsigned int  delaytime_cells) [inline]

Constructor.

Parameters:
delaytime 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.


Member Function Documentation

template<unsigned int NUM_BUFFER_SAMPLES>
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.

Parameters:
in_valuethe signal input.
delaytime_cellssets the delay time in terms of cells in the delay buffer.

Definition at line 68 of file AudioDelay.h.

template<unsigned int NUM_BUFFER_SAMPLES>
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.

Parameters:
in_valuethe signal input.

Definition at line 86 of file AudioDelay.h.


The documentation for this class was generated from the following file: