SEQAddSequence

Syntax

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

void SEQAddSequence(
                    SEQSEQUENCE     *sequence,          
                    u8              *midiStream,        
                    u8              *wavetable,         
                    u8              *samples,           
                    u8              *zerobuffer,        
                    u32             priorityVoiceAlloc, 
                    u32             priorityNoteOn,     
                    u32             priorityNoteRelease 
                    );

Parameters

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 (Not used. Specify NULL.)
priorityVoiceAlloc Priority for allocating AX voice for Note-On.
Maximum = 31
Minimum = 1
priorityNoteOn Priority for setting voices after successful allocation.
Maximum = 31
Minimum = 1
priorityNoteRelease Priority for setting voice for Note-Off.
Maximum = 31
Minimum = 1

Return Values

None.

Description

The SEQAddSequence 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, the SEQAddSequence function also initializes the SYNSYNTH structure.

Do Not Call From

None.

See Also

SEQRemoveSequence

Revision History

2013/05/08 Automated cleanup pass.
2006/11/21 Added an explanation to the arguments about the zero buffer no longer being necessary.
2006/03/01 Initial version.


CONFIDENTIAL