Step 01 / 5
Build the pulse-key amplitude contour #
Select ~soundStage = 1 and evaluate the full script at the end of this guide. Wait for the instrument-ready message before playing.
Set ~soundStage = 1. Use Pulse.ar with a fixed pulse width of 0.32 and oscillator gain −7 dB. The unequal duty cycle supplies a hollow but bright harmonic shape.
Multiply the gate and exponential envelope. The gate rises over 5 ms; after that opening interval, the decay falls toward 0.15 over 1.40 s. Note-off starts a 420 ms exponential release to a quiet positive floor. Apply −6 dB amplifier gain and −7 dB instrument gain, then multiply by velocity squared. This explicit touch curve interprets Analog's velocity response rather than copying its internal scaling. The pulse remains centered, with no unison or glide.
Sound after step 1 — WebM/Opus
Next: Add an octave sine and a closing resonant lowpass →Step 02 / 5
Add an octave sine and a closing resonant lowpass #
Set ~soundStage = 2. Add a sine one octave above the pulse at −22 dB, then send both sources into the same 24 dB/octave ladder lowpass.
Build kFilter from a 5 ms attack gate and an exponential decay to 0.08 over 320 ms, with a 250 ms release. Interpreting depth 2.30 as octaves gives a bright initial opening that closes much faster than the amplitude. Key tracking is 0.70 octaves per keyboard octave around MIDI 60. The soft input curve and resonance 0.16 interpret Analog's Sym1 and resonance controls. The ladder is a different filter design, so its response is not identical to Analog's.
For MoogFF, multiply the stated source resonance amount by four to obtain its 0–4 gain argument (limited to 3.95). The complete script gives this gain expression beside each cutoff.
Sound after step 2 — WebM/Opus
Next: Give the keys a light stereo chorus →Step 03 / 5
Give the keys a light stereo chorus #
Set ~soundStage = 3. Highpass only the chorus input at 180 Hz; keep the direct pulse body full-band. Modulate two delay taps around 12 ms by ±2.4 ms, with opposite motion at 0.32 Hz.
Mix 82% direct and 18% chorus in each channel. The moving taps give sustained portions a slight stereo pitch shimmer, while the input highpass reduces low-end blur. The 2.4 ms excursion is a SuperCollider choice for the source Amount 12%; it is not a literal percentage-to-time conversion.
Sound after step 3 — WebM/Opus
Next: Place the keys in a compact room →Step 04 / 5
Place the keys in a compact room #
Set ~soundStage = 4 and evaluate the full block. Feed the preceding signal into FreeVerb2, using its fully wet output and the dry/wet routing shown in the script. The room continues after individual note envelopes release. Predelay separates the initial articulation from the diffuse tail; the external wet mix controls how far that tail moves forward.
The SuperCollider room value is 0.639344 and damping is 0.71875. These dimensionless settings are choices for this algorithm, rather than equivalent values for Ableton decay or Csound feedback and damping. More damping darkens the circulating highs. Any input filters and mid/side width changes in this stage retain their own explicit settings in the full script.
| SuperCollider room control | Value |
|---|---|
| FreeVerb2 internal mix | 1, wet output only |
| Room | 0.639344 |
| Damping | 0.71875 |
| Predelay | 12 ms |
| External room wet | 17% |
Sound after step 4 — WebM/Opus
Next: Set the final gain and remove DC →Step 05 / 5
Set the final gain and remove DC #
Set ~soundStage = 5. Apply +4.80 dB and LeakDC to each output channel. Keep the chorus and room's stereo image unchanged; no bass narrowing is added.
The gain follows both effects, so it raises the short pulse body and the diffuse tail together. The shared effects Synth continues through note releases. The finished keys have a sharp harmonic opening, a softer sustained body and a light stereo halo.
Sound after step 5 — WebM/Opus
Audio & settings ↓