N64® Functions Menu

al - Audio Library Functions
gDP - DP GBI Macros
gdSP - General GBI Macros
gSP - SP GBI Macros
gt - Turbo Microcode RDP
gu - Graphics Utilities
Math - Math Functions
nuSys - NuSystem
os - N64 Operating System
sp - Sprite Library Functions
uh - Host to Target IO
64DD - N64 Disk Drive

Nintendo® Confidential

   

alCSPSendMidi

Format
#include <libaudio.h>
void alCSPSendMidi(ALCSPlayer *seqp, long ticks, u8 status, u8 byte1, u8 byte2);


Arguments
  • seqp is the pointer to compressed MIDI sequence player
  • ticks is the time offset in MIDI clock ticks that specifies when the MIDI event is to occur
  • status is the message's MIDI status byte
  • byte1 is the first byte in the message
  • byte2 is the second byte in the message (optional)
What This Function Does
It sends a MIDI message to the compressed MIDI sequence player. You can use this function to:
  • Trigger notes that are not in the sequence
  • Add controller information in real time
  • Otherwise change the performance of a sequence
You can use this function as an alternative to the alCSPSetChlProgram, alCSPSetChlVol, alCSPSetChlPan, and alCSPSetChlFXMix functions. Note that only channel voice messages are supported. See the MIDI 1.0 specification or any of the various World Wide Web MIDI pages for more information.

Notes
The status byte contains the message type in the high nibble and the channel number in the low nibble. The next bytes are the MIDI data, which is determined by the message type.

See Also
alCSeqPlayer



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last Updated January 1998