Skip to main content

Notes

Pattern atoms for pitch and silence. Grammar rules: NoteToken, RestToken, DurationSuffix.

NoteToken​

TokenMeaning
C4, E5, G#5, Db3Note — letter A–G, optional # / b, then octave digits (scientific pitch). Default length 1 step.

Notes may carry inline effect suffixes (C5<vib:8,4>) — see Effects.

DurationSuffix​

TokenMeaning
C4:4 or C4/4Duration — hold for N steps (: and / are equivalent)

A step lasts one beat at the song’s bpm. Bare notes and rests last one step; C3:8 lasts eight.

RestToken​

TokenMeaning
.Rest — silence; also cuts the previous note
_ or -Sustain — keep the previous note sounding for one more step
C3:16 # hold C3 for 16 steps
E5 . G5 C6 . G5 E5 . # one-step notes and rests
C4 _ _ _ # same duration as C4:4
Notes, rests, and durations

Interactive playback loads in the browser.

…
pat phrase = C5:2 E5 G5:2 . C6 _ _ _
…

See also​