#include <revolution.h>
#include <revolution/seq.h>
void SEQAddSequence(
SEQSEQUENCE *sequence,
u8 *midiStream,
u8 *wavetable,
u8 *samples,
u8 *zerobuffer,
u32 priorityVoiceAlloc,
u32 priorityNoteOn,
u32 priorityNoteRelease
);
sequence |
pointer to user-allocated SEQSEQUENCE structure |
midiStream |
pointer to MIDI data |
wavetable |
pointer to wave table |
samples |
pointer to sample set corresponding to wave table |
zerobuffer |
pointer to the zero buffer |
priorityVoiceAlloc |
priority used to allocate AX voice for note on maximum: 31 minimum: 1 |
priorityNoteOn |
priority at which to set voices after successful allocation maximum: 31 minimum: 1 |
priorityNoteRelease |
priority at which to set voices for note off maximum: 31 minimum: 1 |
None.
This function initializes a user-allocated SEQUENCE structure and adds it to the sequence list.
The SEQSEQUENCE structure contains the SYNSYNTH structure used for sequence play. Internally, this function also initializes the SYNSYNTH structure.
03/01/2006 Initial version.