Documentation · Naming
instrument <voice> · Name<voice> ::= … · Name<voice> Instruments
Say what the document is played on with instrument bell, or what one rule is with Bass<bass> ::= …. A use site overrides both: Bass<bell>. The tag takes no space before it, because a lone < is the descending mark.
- The voices are
plain,pluck,bell,reed,bass,swell,hollow,chiptuneandwobble. They are synth voices, not recordings of instruments, and they are named for the sound they make. chiptuneis a bright square struck in a millisecond, with the vibrato a game machine puts on a held note;wobbleis a saw under a low-pass swung open and shut five times a second. Those two MOVE while the note is held, and the Voices panel gives each a speed and a sweep.instrument <voice>is the DOCUMENT's voice from that line down, likebpmorkey: it fills in every note that names nothing, and changes nothing that does.instrument noneputs it back to the ordinary voice.- A tag covers the whole expansion, like every other mark after a reference: the rules inside it play on it too, unless one of them names its own.
- A tag at a use site beats the one on the definition; the innermost tag wins.
- Write it with NO space:
Tune<bell>.Tune <bell>is a descending mark, the symbolbell, and an ascending mark, which is what it has always been. - A name the synth does not have plays on the plain voice. The Voices panel lists it as unknown, which is how a typo is found.
- It changes how a document SOUNDS and nothing else: the score, the roll and a MIDI export are unmoved.
- The panel behind the rail’s Voices button sets each voice’s attack, decay, release, level and tone. Those settings are the reader’s, kept per browser, and are not written into the document.
The whole document on one voice, said once in the header.
c4 d4 e4 g4
The document says bell; the bass line says otherwise, and wins.
c3 c4 d4 g3 e4 g4
Two rules, two voices, sounding together.
c4 d4 e4 g4 g4
The same tune, moved to another voice where it is used.
c4 d4 e4 g4 c4 d4 e4 g4
A tag covers what it contains; a rule inside it that names its own keeps it.
c4 d4 g4 a4