Chapter 1

Start here

Tracks, evaluating, and where everything lives.

Tracks

The buffer is split into blocks. A block that starts with name: is a track; lines that continue it (a .fx(…) on the next line) belong to it.

bass: note("c2 c2 g1 a1").synth("Wavetable")
  .fx("Filter").param("Cutoff", 0.45).postgain(0.45)
drums: s("bd*4, ~ hh ~ hh").postgain(0.4)
WriteMeans
bass:a track called bass
_bass: or bass_:muted
Sbass:soloed: while anything is soloed, only soloed tracks play (mute still wins)
Mbass: or bassM:monitored: plays to the headphone cue, not the main output (with a cue output set in the audio settings). Next to bass: it is a separate track; remove the M and it replaces bass:
$:a track without a name
a line at column 0 with no labelsetup: setbpm(128), a shared const, a helper

{mod+enter} evaluates and plays, {mod+.} stops, and update in the header evaluates without starting or stopping anything. A named track has to evaluate to a pattern; if it doesn't, the console says why and what was playing keeps playing.

Time

The unit of time is the cycle, one bar of four beats. setbpm(120) is two cycles a second. A pattern string fills exactly one cycle and repeats.

Everything you write is a signal, a value that changes over time: a melody, an LFO, a single number. A melody has edges (its notes start and stop); an LFO is smooth. The same methods work on both, so .add(), .range() and .when() don't care which they are given.

keys: n("0 2 4 <6 7>").scale("C minor").synth("Wavetable")   // a melody: edges
  .fx("Filter").param("Cutoff", sine(0.25).range(0.3, 0.8))   // an LFO: smooth
  .fx("Reverb").postgain(0.5)

The panels

TabHas
sessionthe live tracks and their devices, and eight macro knobs
soundsthe built-in devices and your plugins (with rescan), the parameters of each track's chain, the sample packs
soundsthe built-in devices, the parameters of each track's chain, the sample packs
filessaved patterns and the autosaved work in progress, links to share them, and a backup of everything this browser keeps
settingsaudio device, sample folder, editor options, the startup prebake
settingsaudio output and inputs, MIDI, editor options, the startup prebake

Saving and sharing