-
Notifications
You must be signed in to change notification settings - Fork 0
MML
Andrew Owen edited this page Jun 1, 2023
·
1 revision
The PLAY command in SE Basic IV uses a version of Music Macro Language (MML). Other than note names (c, d, e, f, g, a, b), instructions are case-insensitive. Upper case notes (C, D, E, F, G, A, B) are one octave higher than the current octave. Phrases in square brackets ( [, ] ) are played twice. Brackets can be nested up to four levels. A closing bracket without a matching opening bracket loops the preceding phrase indefinitely. Comments can be enclosed between single quote marks ( ' ). The other instructions are:
-
ris a rest. -
-before a note flattens it. -
+or#before a note sharpens it. -
&indicates tied notes. -
osets the octave (1to8). -
lsets the note length (0to9) as classic MML, or triplets (10to12). -
tsets the tempo in beats per minute (BPM) (32to255). -
vsets the volume (0 to15`) and switches off envelopes on that channel. -
ssets the ENVELOPE waveform (0to15) and activates it. -
msets the modulation frequency (1to65536). -
hsets the MIDI channel (1to16). -
zsends a command (0to255) to the MIDI port. -
xexits thePLAYcommand immediately. -
>increases the octave by one. -
<decreases the octave by one
The defaults are:
- note length: quarter note
- octave: 4
- tempo: 120
- volume: 15
- Press
RETURNto return to this menu. - Enter the name of a
TOPICto display it. - Enter
EXITto return to BASIC.
Choose from the following topics: