playgrid.ccRead tutorial

Pewter Loom — complete Csound settings

Note and effect connections

Instrument 1 uses p3 for held seconds, p4 for MIDI pitch and p5 for velocity from 0 to 1. Its left and right outputs accumulate on shared buses. Instrument 90 processes the buses once per control block, clears the inputs and keeps effect memories active through the tails. Envelopes with release segments extend the note automatically. The score is an audible pitch-and-touch example; the synthesis controls are independent of its particular notes.

Csound interpretation

These are explicit Csound models, not identical implementations of the Ableton devices. Wavetable positions, proprietary oscillator engines, physical-model macros, filter circuits, envelope slopes and effect algorithms can differ. Modulation depths are specified in octaves, cents or milliseconds rather than treated as universally interchangeable matrix values. Controller inputs such as pitch bend, modulation wheel, pressure and per-note expression are not mapped. Independent score notes do not implement Live's monophonic note-priority or legato system. Any pitch memory or drift included in this instrument is described in its steps.

Signal path and controls

Stage 1 — Build the first oscillator and touch contour

Use saw at -6 dB with pulse width 50% when applicable. The contour has 0.005 s attack, 0.799 s exponential decay to 0.65 sustain and 0.114 s release. Multiply by velocity^2.5; this explicit power curve interprets the source velocity response. Keep the signal centered before adding effects.

Csound control Value
Source Saw, -6.0 dB; width not used
Amplitude A/D/S/R 0.005 / 0.799 / 0.65 / 0.114
Amplifier / instrument -6.0 dB / -6.0 dB
Velocity power 2.5

Stage 2 — Add the second oscillator and resonant contour

Add rect at -12 dB, tuned by 0 octaves. Use a Low-pass 24dB/oct interpretation with 455 Hz base cutoff, 3.2 octave envelope depth and 0.5 octave-per-octave pitch tracking. The contour opens then settles quickly while the amplitude remains. Smooth input drive interprets Sym1; the ladder or second-order lowpass is a different circuit. The 1.7 Hz LFO, where enabled, restarts per score note rather than running freely.

Csound control Value
Second source Rect; -12 dB; width 25 %
Filter base / resonance 455 Hz / 0.52
Filter A/D/S/R 0.005 / 0.21 / 0.08 / 0.13
Envelope / key / LFO depth 3.2 / 0.5 / 0.12 octaves
LFO rate 1.7 Hz
Filter input shape tanh(input × 1.4) / 1.4

Stage 3 — Round the signal with saturation

Use +3 dB drive with 70% shaped signal and -3 dB output trim. The smooth curve is tanh(input × 3 × ampdb(drive)) / 3; the other portion stays clean. Louder peaks enter its curved region more strongly, adding harmonics and rounding the envelope. This interprets the source saturation curve rather than implementing its proprietary transfer function.

Csound control Value
Drive / output 3 / -3 dB
Shaped mix 70%
Input DC removal Order 2048

Stage 4 — Set the final width and gain

Use 3.05 dB gain after the effects. Average the channels for identical mono outputs. Apply order-2048 DC removal, using a longer window to limit low-note loss. The fixed output-scale control at the end of instrument 90 remains a separate Csound gain setting. Clear the shared note buses only after processing them; effect memories continue carrying their own tails.

Csound control Value
Final gain 3.05 dB
Width Mono
Bass side cutoff Off
DC removal Order 2048

Output and signal rates

The script uses 48000 Hz, 16-sample control blocks and stereo output. The fixed output-scale control is 1.593511 and follows the whole chain at every stage, separate from any final gain step. DC-removal blocks, where enabled, use order 2048 to limit low-note attenuation; they add processing delay.

Build guide and full script · Starting settings