Patch language with osc/noise/trig/seq/adsr/filter/delay/poly + voice templates and inline live values. Two runtimes: - code_sinth/ — Python engine (numpy + sounddevice). Hot-reload via mtime watcher. Offline render to WAV. Static-HTTP+WS visualizer (viz/) that injects waveforms next to each `node X = ...` line. - web/ — port of the engine to JS running in AudioWorklet. Single static page with CodeMirror 6 editor (line widgets for live waveforms) and a control surface on the right with knobs/faders/step_seq/piano_roll declared from the patch. State preserved across hot-reload. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
9 lines
362 B
Diff
9 lines
362 B
Diff
# Bass con barrido: ADSR modula el cutoff de un pasa-bajos resonante.
|
|
# La salida se atenua tambien por la envolvente para tener attack y release de amplitud.
|
|
node g1 = trig(period=2.0, duration=0.6)
|
|
node o1 = osc(saw, freq=110)
|
|
node e1 = adsr(a=0.005, d=0.4, s=0.2, r=0.5, gate=g1)
|
|
node lp = filter(lp, in=o1, cutoff=200 + e1*3500, q=4.0)
|
|
|
|
out <- lp * e1 * 0.7
|