NRTDRV MAN EN SYNTAX MMLCOMMAND

From MSX MUSIC WIKI
Jump to: navigation, search

MML command list

These commands below are calud in MML tracks.


a-g<len>

Scale notes

r<len>

Rests

+

Sharp (an accidental sign if it is after the scale, a signature before the scale). *See note 1.

-

Flat (an accidental sign if it is after the scale, a signature before the scale). *See note 1.

=

Natural (an accidental sign if it is after the scale, a signature before the scale). *See note 1.


^

Tie (It is valid only after scale or note value).

&

Slur. *See note 2.

(

Legato on (starts slur). *See note 2.

)

Legato off (ends slur). *See note 2.

o<num>

Octave (0-9). *See note 3.

>

Relative octave up (revert by #OCTA_X)

<

Relative octave down (revert by #OCTA_X)

l<len>

Default note value.

t<num>

Tempo (1-999)

C<num>,<num>

CTC0/3 time constant (0-255)

q<num>

Gate time 1 (1- #Q_MAX/QM value) defines length of sound. *See note 4.

Q<num>

Gate time 2 (0-255) define shorten counts. *See note 4.

QM<num>

Defines denominator of q command.(4-255). 255 is special mode.

@<inst>

Selects tone (0-9999, or tone name itself).

@P<inst>

Same as above [for PSG only]

@E<inst>

Same as @P [for PSG only]


@TD<num>

Select definition number of Tone Doubler (0-15) [OPM only]

v<num>

Volume 1 (0-appropriate value) *See note 5.

V<num>

Volume 2 (0-127) *See note 6.

v+<num>

Relative volume up (1-appropriate value or vi when omitted). Values are same as v command.

v-<num>

Relative volume down (1-appropriate value or vi when omitted). Values are same as v command.

vi<num>

Default volume when definition is omitted (1-appropriate value, default is 1).

vr<num>

Volume when rest (0-appropriate value). See note 5.

VOP<num>

Target operator of volume commands(0=career, 1-15=OP value)[for OPM only]

P<num>

OPM pan pot / PSG tone/noise definition. See note 7.

PP<num>,<num>,…

Define pattern pan pot. See note 25.

PV<num>,<num>,…

Define pattern volume. See note 26.

N<num>

Noise frequency (0-31 or 255). See note 9.

s<num>

Select hardware envelope shape (0-15) [for PSG only]

m<num>

Select hardware envelope loop (0-65535) [for PSG only]

p<num>

Value type portamento (speed with 1-255, 0 is off)

pn<num>

Start note of portamento (note with 1-120, 0 is off).

<str>_<str><len>,<num>

Music scale type portamento (smoothly sound between two)

G<num>,<num>

Glide (start note -8192-8191, additional difference 1-256) *Off with G0.

D<num>

Detune (-128-127 or -16354-16383)

K<num>

Transposition (-128-127) *See note 11.

FO<num>

Fade out (0-15). See note 12.

R<num>,<num>

PSG release rate (0-31), release level (0-15).

DR<num>

Self delay (converts rest to note same as 1-3 preceding, 0 is off).

x<num>,<num>,…

Binary embedded (data, data ... ). *255 bytes maximum.

y<num>,<num>(,…>)

Writes 1 bytes to register (resister number, data). *See note 22.

yDM<num>,<num>(,…)

DT1/MUL value direct setting [for OPM only] *See note 23.

yTL<num>,<num>(,…)

TL value direct setting [for OPM only] *See note 23. *VOP recommended.

yKA<num>,<num>(,<num>)

KS/AR value direct setting [for OPM only] *See note 23.

yAD<num>,<num>(,<num>)

AME/DR value direct setting [for OPM only] *See note 23.

yDR<num>,<num>(,<num>)

Same as above.

yDS<num>,<num>(,<num>)

DT2/SR value direct setting [for OPM only] *See note 23.

ySR<num>,<num>(,<num>)

Same as above.

ySL<num>,<num>(,<num>)

SL/RR value direct setting [for OPM only] *See note 23.

z<num>,<num>,…

Continuous writing to resisters (register number, data ...) *See note 13.

<str>,<str>

Tone doubler scale setting [for OPM only] *See note 27.

<str>0<str>

Same as above.

@v

OPM table settings [only for OPM]

@V

Same as above.

[<num> 〜 / 〜 ]<num>

Repeat settings (2-255, 2 is set if omitted). Maximum 5 level nesting.


L

Loop pointer "<str>"<len>,<len>. Arpeggio.


'<track> 〜 '

Track nesting (only valid within specified track).

|

Mandatory key off.

j

Fast forwarding (cueing to the point if this sign).

@L<inst>

Displaying lyrics ( when the command executed).

I

Disable tone, volume and sound location. *See note 15.

I@

Disable @ command *See note 15.

IP

Disable P command. *See note 15.

IV

Disable volume command. *See note 15.

*

Stops track. *See note 16.

‾<str>

Restarts track. *See note 16.

**

Ends track (ends compile for target track).


HL

Hardware LFO [only for OPM] *See note 17.

HM<num>,<num>

Hardware LFO, PMS/AMS specification for each tracks (PMS=0-7, AMS=0-3)

HP<num>

Hardware LFO, PMS specification for each tracks(0-7).

HA<num>

Hardware LFO, AMS specification for each tracks(0-3).

HS<num>

Hardware LFO, resets phase when key on (0=no, 1=yes).


HR

Phase reset.


SP

Software LFO(vibrato). *See note 18.

SA

Software LFO(tremolo). *See note 18.


SSP

Software LFO(vibrato) non-synchronized mode with key on. *See note 24.

SSA

Software LFO(tremolo) non-synchronized mode with key on. *See note 24.

SRP

Stops software LFO (vibrato).

SRA

Stops software LFO (tremolo).

SR

Stops software LFO (both).


!<str>

Driver macro [for OPM only].

?<str>

Driver macro [for PSG only].

$<str>

Compiler macro.


{ 〜 }

Linefeed valid area. *See note 19.

:

Separate sign (processed same as space character internally).

;

One line comment (valid till linefeed).

/* 〜 */

Specifies comment area. *See note 20.


<num> contains numerics. Refer "Numeral expressions" for details.

<len> contains note value. Refer "note value" for details.

<str> contains strings.