Skip to content

MLM Command Reference 2.0 (WIP)

StereoMimi edited this page Oct 22, 2023 · 8 revisions

MOST OF THIS ISN'T FINAL AND IS UNTESTED, IT REFERS TO THE WIP 2.0 BRANCH

Command 0: End of event list

format: $00

this command ends the playback for the current channel

Command 1: Return from sub event list

format: $01

Command 16~31: Wait ticks (nibble)

format: $1T (Timing-1)

This command will wait 1~16 ticks, since the timing used is incremented by one. this means that if a 0 is specified, one tick will be waited.

Command 32: Jump to sub-event list

format $20 %AAAAAAAA (Address LSB) %AAAAAAAA (Address MSB)

Does NOT allow nesting. Do not use this command in a sub event list. Additionally, each sub event list will start with a standard volume ($FF) and instrument ($00)

Command 33: Position jump

format: $21 %AAAAAAAA (Address LSB) %AAAAAAAA (Address MSB)

Command 48: MLM Macro Start

format: $30 $SS (macro Slot) $MM (Macro initialization data LSB) $MM (Macro initialization data MSB) The macro slot can range from 0 to 16.

Command 64: Note off

format: $40 %TTTTTTTT (Timing)

Command 65: Set instrument

format: $41 %IIIIIIII (Instrument)

Command 66: Wait ticks (byte)

format: $42 %TTTTTTTT (Timing)

Command 67: Set channel volume

format: $43 %VVVVVVVV (Volume)

Command 68: Set panning

format: $44 %LRTTTTTT (Left on; Right on; Timing)

ADPCM-A and FM only

Command 69: Set ADPCM-A master volume

format: $45 %VVVVVVTT (Volume; Timing)

ADPCM-A only

Command 70: Set base time

format: $46 %BBBBBBBB (Base Time)

Command 72~75: FM TL Set

format: %010010OO (Operator) %0TTTTTTT (Tl)