SEQRegisterControllerCallback

Syntax

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

typedef void (*SEQCALLBACK) (void *track, u8 controller)

void SEQRegisterControllerCallback(
                                  SEQSEQUENCE     *sequence,  
                                  u8              controller,
                                  SEQCALLBACK     callback
                                  );

Parameters

sequence Pointer to a user-initialized SEQSEQUENCE structure.
controller MIDI controller event that runs a callback.
callback Callback function.

Return Values

None.

Description

The SEQRegisterControllerCallback function registers callbacks for specified MIDI controller events. MIDI controller events can be inserted in the MIDI file to signal events at runtime.

NOTE:
Callbacks are registered for specific MIDI controller events for all sequencer tracks. The SEQCALLBACK function will inform the user of track events with the pointer to SEQTRACK for the track, and register the controller event.

Do Not Call From

None.

Revision History

2013/05/08 Automated cleanup pass.
2006/03/01 Initial version.


CONFIDENTIAL