AXART_LFO

Syntax

#include <cafe.h>
#include <cafe/axart.h>

typedef struct
{
    f32         *lfo;           // lfo samples in RAM
    u32         length;         // lfo samples for 1 period
    f32         delta;          // lfo delta per 5ms 
    
    u32         sampleIndex;    // lfo sample index      
    f32         counter;        // lfo counter
    f32         sample1;        // lfo last sample for interpolation
    f32         sample;         // lfo sample
    f32         output;         // lfo output

} AXART_LFO;

Elements

lfo Pointer to the first sample of LFO shape in RAM. This parameter is maintained by AXART. Do not write to this parameter.
length Number of samples for the LFO. This parameter is maintained by AXART. Do not write to this parameter.
delta Sample index delta per audio frame. This sets period frequency for the LFO.
delta = Hz * (length / 200)
This parameter may be edited at any time.
sampleIndex Current sample index for LFO output. This parameter is maintained by AXART. Do not write to this parameter.
counter Running counter for output sample interpolation. Interpolation is linear. This parameter is maintained by AXART. Do not write to this parameter.
sample1 Last LFO sample for interpolation. This parameter is maintained by AXART. Do not write to this parameter.
sample Current LFO sample for interpolation. This parameter is maintained by AXART. Do not write to this parameter.
output Output for LFO. This parameter is maintained by AXART. Do not write to this parameter.

Description

AXART_LFO is a data structure for an LFO. AXART_LFO is used by articulators that modulate volume or pitch. The table above describes the information that is obtained. To apply an articulator containing an LFO to an AXART_SOUND, AXART_LFO must be initialized by calling the AXARTInitLfo function before calling the AXARTAddArticulator function.

See Also

AXARTInitLfo
AXARTAddArticulator
AXART_SOUND

Revision History

2013/05/08 Automated cleanup pass.
2006/03/01 Initial version.


CONFIDENTIAL