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

   

alSeqpSendMidi

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


Arguments
  • seqp is the pointer to sequence player
  • ticks is the time offset, in MIDI clock ticks, 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 (if required)
What This Function Does
It sends a MIDI message to the sequence player. You can use it to trigger notes not in the sequence, add controller information in real time, or otherwise change the performance of a sequence. You can also use it as an alternative to the following function calls:

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.


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