#include <revolution.h> #include <revolution/axart.h> void AXARTInitLfo(AXART_LFO *lfo, f32 *samples, u32 length, f32 delta);
| lfo | Pointer to AXART_LFO to initialize. |
|---|---|
| samples | Pointer to first sample of LFO shape |
| length | Number of samples in the LFO shape |
| delta | Delta per audio frame. delta = Hz * (length / 333) |
The AXART library provides the following LFO shapes for use.
| Shape | *Samples | Length |
|---|---|---|
| Sine | AXARTSine |
AXART_SINE_SAMPLES |
| Square | AXARTSquare |
AXART_SQUARE_SAMPLES |
| Saw | AXARTSaw |
AXART_SAW_SAMPLES |
| Reverse Saw | AXARTReverseSaw |
AXART_REVERSESAW_SAMPLES |
| Triangle | AXARTTriangle |
AXART_TRIANGLE_SAMPLES |
| Noise | AXARTNoise |
AXART_NOISE_SAMPLES |
None.
The AXARTInitLfo function initializes an AXART_LFO for use with articulators that contain an LFO for modulation.
2006/11/28 Corrected the delta calculation formula to match the change in audio frame length (from 5 ms to 3 ms).
2006/03/01 Initial version.
CONFIDENTIAL