AXARTInitLfo

C Specification

#include <revolution.h>
#include <revolution/axart.h>
void AXARTInitLfo(AXART_LFO *lfo, f32 *samples, u32 length, f32 delta);

Arguments

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 / 200)

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

Return Values

None.

Description

AXARTInitLfo() initializes an AXART_LFO for use with articulators that contains an LFO for modulation.

See Also

AXART_LFO

Revision History

03/01/2006 Initial version.