# Apricot Pulse — complete SuperCollider settings

## Signal flow and implementation

`~soundStage` is compiled into the SynthDefs. Re-evaluate the complete block after changing it; source and effects are then replaced together. The fixed output multiplier `~soundOutputScale` is 1.086293 and applies after the whole chain at every stage. It is separate from any final gain step.

`EnvGen` supplies the explicit linear or exponential contours. Exponential floors stay positive. Closing the gate begins each release; a separate silent lifetime envelope frees the note after the longest source release. Shared effects continue independently.

`MoogFF` replaces the ladder filter. Its gain argument is four times the source 0–1 resonance amount, limited to 3.95; it is a different circuit. Cutoffs are limited to 20–18000 Hz.

`LeakDC` uses coefficient 0.995. It replaces the longer-window Csound DC blocker, with a different low-frequency response and latency.

`FreeVerb2` replaces the diffuse room with its own room and damping controls, both dimensionless. The per-stage values below are specific to this algorithm and do not specify a measured decay time or damping frequency.

`Saw` and `Pulse` use SuperCollider oscillator implementations and startup phases; they replace the source engines and do not scan proprietary wavetables.

## Synthesis and effect controls

### Stage 1 — 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.

### Stage 2 — 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.

### Stage 3 — 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.

### Stage 4 — 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% |

### Stage 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.

## Connected instrument

The [full SuperCollider script](/tutorials/apricot-pulse/supercollider/#full-supercollider-script) contains the complete voice, shared effects, bus ordering and note helper. No external sample or third-party unit is required.

[Read on playgrid.cc](https://playgrid.cc/tutorials/apricot-pulse/supercollider/settings/)
