Patchwork Composer

A pull-based, typed graph of musical modules in rational time. Edit the patch; changes apply live on the next beat.

Ctrl/⌘ + Space completes modules and their inputs
Loading…
Patch — solid cables carry streams, dashed carry signals, red loops are feedback
Click a module to inspect it and adjust its parameters.
Score — every sink, pulled for the whole loop
Analysis — evidence, not rules: ranges, clashes, parallels, density (unmuted tracks)

Modules

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).