SEQAddSequence

C Specification

#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 
);

Arguments

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 zero buffer. (Not used. Specify NULL .)
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

Return Values

None.

Description

This function initializes a user-allocated SEQUENCE structure and adds it to the sequence list.

The SEQSEQUENCE structure contains the SYNSYNTH structure that is used for sequence play. Internally, the SEQAddSequence function also initializes the SYNSYNTH structure.

See Also

SEQRemoveSequence

Revision History

2006/11/21 Added an explanation to the arguments about the zero buffer no longer being necessary.
2006/03/01 Initial version.


CONFIDENTIAL