#include <revolution.h>
#include <revolution/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;
| 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. |
AXART_LFO is a data structure for an LFO. AXART_LFO is used by articulators that modulate volume or pitch. 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.
AXARTInitLfo
AXARTAddArticulator
AXART_SOUND
2006/03/01 Initial version.
CONFIDENTIAL