playgrid.ccRead tutorial

Alder Well — complete Csound settings

Signal flow

Sine modulator → carrier frequency → tracked lowpass → shared soft saturation → predelayed stereo room → gain trim and DC removal.

This is an interpretation of the Ableton version. Its explicit FM index, near-3:1 oscillator ratio, exponential curves, tanh saturation and reverb feedback are Csound choices. They approximate the source's synthesis behavior without claiming identical Operator tuning, envelope, filter, Tone, Soft Sine or room algorithms. The small filter resonance is omitted. Pitch bend is not mapped; the score controls pitch and touch directly.

Note instrument

Control Value
Signal engine Csound 6 syntax, 48000 Hz, 16-sample control blocks, stereo
Finished stage giStage = 5
Note inputs p3 held seconds; p4 MIDI pitch; p5 velocity 0–1
Carrier waveform / phase Sine / 0 cycles
Carrier amplitude −3 dB × −10 dB × (0.4 + 0.6 × velocity)
Attack gate Linear 0 → 1 in 1 ms
Body decay Exponential 1 → 0.0001 in 1.10 s
Body release 350 ms to 0.000001
Modulator waveform / phase Sine / 0 cycles
Modulator ratio 3.051 × carrier frequency
Modulation index 8 × ampdb(−12) × (0.3 + 0.7 × velocity)
Peak frequency deviation Modulator frequency × modulation index
Modulator decay Exponential 1 → 0.0001 in 172 ms
Modulator release 100 ms to 0.000001
Lowpass Butterworth, 12 dB/octave
Cutoff 5330 × 2^(0.6 × (MIDI note − 60) / 12) Hz; limited to 30–18000 Hz
Pitch envelope / LFO None

Shared effects

Control Value Audible behavior
Saturator input DC removal Removes bias before the nonlinear curve
Curve tanh(input × 3 × ampdb(1.2)) / 3 Smoothly rounds loud peaks
Saturator mix 60% clean + 40% shaped Keeps the fundamental clear
Saturator trim −1 dB Balances level after shaping
Room predelay 8 ms Separates attack and room
reverbsc feedback 0.68 Short diffuse tail
Feedback damping 4500 Hz Darkens high-frequency decay
Reverb delay modulation 0.35 Subtle tail movement
Room mix 85% dry + 15% wet Leaves the strike in front
Output trim −2.77 dB Balances the finished signal
Output DC removal Both channels Removes residual DC
Stereo width Unchanged Retains the room's stereo difference

Stage selector and shared buses

giStage is cumulative: 1 gives the sine body; 2 adds FM and lowpass; 3 adds saturation; 4 adds the room; 5 adds the output stage. Instrument 90 processes every active note together and must stay active through the tail. It clears gaVoice after each control block.

The full connected script is included at the end of the build guide.

Opcode references

oscili provides the oscillators. expsegr provides positive exponential segments with note-off release. reverbsc provides the stereo room; its feedback control is not a decay time in seconds.

Starting settings · Build guide