optional control characters | valid for next tone of current channel only | example |
space or new line | no effect | just to improve readability |
any invalid option | pause | 3x will pause for 3 tempo units |
# | half tone increase | #G #g (G sharp followed by g sharp) |
b | half tone decrease (b pitches are denoted by h) | bA bH (A flat, H flat) |
' | 1 octave increase of next tone | c ' (1 octave) |
" | 2 octave increase of next tone (combined ' and " is possible) | BEEP( ?c '"c? ) (3 octaves) |
1 - 99 | tempo units of following note, default is = 1 (128 ms) | c 2d (c and d of length 2) |
<n (n=0..99) | n = back n tempo units, next tone ends with current tone | 4C <4c (chord Cc of length 4) |
extending to end of current string , if not changed again | example | |
Vn (n=0..9) | n = initial Volume for following tones (default 9) | V9v0 (decreasing loudnesses) |
vm (m=0..9 | m = final volume (n>m: decrease, n<m: increase) | V0v9 (increasing loudnesses) |
on (n=0..9) | n = octaves above standard for following tones | o2 (2 octaves higher) |
( | starts comment, used also to debug notations. Nesting is possible |
|
) | ends comment, default end is last character |
global to current statement , if not changed again | example | |
Tn (n=0..99) | n = 16 ms tempo units or base duration (default is 8 -> 128 ms) | T16 (shortest duration is 16*16 ms |
Pxxxxxxxx | x = relative volume x (x=0..9) for up to 8 harmonics (global) | P901 (3rd harmonic loudness 1) |
mono/stereo: | BEEP(monostring) / BEEP(leftstring, rightstring) |
current session | 44100/s | 22050/s | 11025/s | 5512/s | 2756/s | 1378/s |
$n (16bit) | $0 | $1 | $2 | $3 | $4 | $5 |
$n8 (8bit) | $08 | $18 | $28 | $38 | $48 | $58 |