Music Maker
See my Sound Effects page for how the sounds are generated and the Tuning page instrument tuning.
Scripts are processed top to bottom, left to right. Notation:
Symbol | Description | Parameters |
AG | Acoustic Guitar | [note = A3] |
XY | Xylophone | [note = C4] |
MR | Marimba | [note = C4] |
GS | Glockenspiel | [note = A6] |
KD | Kick Drum | [note = B2] |
SD | Snare Drum | [note = G2] |
HH | Hi-hat | [note = A8] |
VOL | Sets volume. Resets every sequence. | [1.0] |
BPM | Beats per minute. | [240] |
CUT | Cuts off sequence at time+delta. | [delta = 0] |
, | Separate and advance time by 1 BPM. | |
, X | Separate and advance time by X BPM. | |
' | Line comment. | |
" | Block comment. Terminate with " | |
#bass: | Define a sequence named #bass. | |
#bass | Reference a sequence named #bass. | |
#out: | Final output sequence. |
Allowed notes are: B, Bb, A#, A, Ab, G#, G, Gb, F#, F, Fb, E, Eb, D#, D, Db, C#, C, and any octave. Ex: A4, B#12.5, C-1. To map a note to a specific frequency, see this page.
To map guitar frets to piano notes (source patmusic77):
String | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |
e | E4 | F4 | F#4 | G4 | G#4 | A4 | A#4 | B4 | C5 | C#5 | D5 | D#5 | E5 | F5 | F#5 | G5 | G#5 | A5 | A#5 | B5 | C6 | C#6 | D6 |
B | B3 | C4 | C#4 | D4 | D#4 | E4 | F4 | F#4 | G4 | G#4 | A4 | A#4 | B4 | C5 | C#5 | D5 | D#5 | E5 | F5 | F#5 | G5 | G#5 | A5 |
G | G3 | G#3 | A3 | A#3 | B3 | C4 | C#4 | D4 | D#4 | E4 | F4 | F#4 | G4 | G#4 | A4 | A#4 | B4 | C5 | C#5 | D5 | D#5 | E5 | F5 |
D | D3 | D#3 | E3 | F3 | F#3 | G3 | G#3 | A3 | A#3 | B3 | C4 | C#4 | D4 | D#4 | E4 | F4 | F#4 | G4 | G#4 | A4 | A#4 | B4 | C5 |
A | A2 | A#2 | B2 | C3 | C#3 | D3 | D#3 | E3 | F3 | F#3 | G3 | G#3 | A3 | A#3 | B3 | C4 | C#4 | D4 | D#4 | E4 | F4 | F#4 | G4 |
E | E2 | F2 | F#2 | G2 | G#2 | A2 | A#2 | B2 | C3 | C#3 | D3 | D#3 | E3 | F3 | F#3 | G3 | G#3 | A3 | A#3 | B3 | C4 | C#4 | D4 |