A pull-based, typed graph of musical modules in rational time. Edit the patch; changes apply live on the next beat.
Use g.node(Module, {inputs and params}, {id}). Inputs typed signal<…> accept a constant or a node; stream<…> inputs need a node. node.map(fn, domain?) derives a node, g.delay(beats, type, {gain, transpose}).from(node) closes a feedback loop, g.sink(node, {name, program, bank, gain, pan, reverb}) plays a stream<Pitch> (gain, pan and reverb also take a signal<number> node, exported to MIDI as CC 7/10/91), g.setTempo(node) makes tempo follow a BPM signal. Click a module to change its parameters live; edits survive code changes until you reset them. Times are beats: 2, [1, 3] or r(1, 3). Randomness is seeded by (seed, node id, event time).