Step 01 / 5
Build the sine body and touch response #
Select ~soundStage = 1 and evaluate the full script at the end of this guide. Wait for the instrument-ready message before playing.
Begin with the voice SynthDef and the shared output the shared effects SynthDef from the full script. Set ~soundStage = 1 for the carrier alone. SinOsc contains one sine cycle; the carrier starts at phase zero for a repeatable attack.
The attack gate reaches full level in 1 ms. The exponential body falls to a near-silent floor over 1.10 seconds; releasing a held note starts a 350 ms fade from its current value. The floors are positive because exponential segments cannot end at zero. These curves interpret Operator's envelope rather than duplicate its internal shape.
Carrier gain is −3 dB before a −10 dB instrument gain. Velocity scales level by 0.4 + 0.6 × velocity, so gentler strikes remain audible. The source is centered; stereo space arrives later.
Sound after step 1 — WebM/Opus
Next: Add a short FM edge and tracked lowpass →Step 02 / 5
Add a short FM edge and tracked lowpass #
Set ~soundStage = 2. Feed a second sine oscillator into the carrier's instantaneous frequency. This is a two-oscillator serial path: the modulator is not mixed directly into the output.
A ratio just above 3:1 gives the strike a slightly inharmonic edge. The 172 ms modulator decay removes the bright sidebands much sooner than the body fades. Modulator velocity response uses 0.3 + 0.7 × velocity: stronger strikes raise brightness as well as volume. The factor 8 interprets the source's −12 dB modulator level into a explicit FM index; it is an interpretation, not a universal conversion for Operator levels. The explicit ratio approximates the source's Coarse 3 / Fine 17 setting.
Pass the result through LPF at 5330 × 2^(0.6 × (MIDI note − 60) / 12) Hz, limited to 30–18000 Hz. This gives 60% pitch tracking around MIDI 60. It is a clean 12 dB/octave lowpass; the source's small resonance and Tone control are not modeled separately. No pitch sweep or LFO is added.
Sound after step 2 — WebM/Opus
Next: Round the transient with soft saturation →Step 03 / 5
Round the transient with soft saturation #
Set ~soundStage = 3. Process the combined note bus through DC removal and a smooth saturation curve before the room. The shared bus lets overlapping notes drive the curve together.
Drive is +1.2 dB and the processed share is 40%. The factor 3 sets the curve's sensitivity; division by 3 preserves small-signal gain before the drive boost. The −1 dB output trim balances the result. Harder strikes round more strongly while soft strikes stay close to a sine. This tanh curve interprets the gentle Soft Sine color; it does not implement Ableton's proprietary transfer curve.
Sound after step 3 — WebM/Opus
Next: Surround the strike with a short stereo room →Step 04 / 5
Surround the strike with a short stereo 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.540984 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.540984 |
| Damping | 0.71875 |
| Predelay | 8 ms |
| External room wet | 15% |
Sound after step 4 — WebM/Opus
Next: Apply the final output trim and DC removal →Step 05 / 5
Apply the final output trim and DC removal #
Set ~soundStage = 5 for the finished sound. Keep the room's stereo difference and trim both channels by −2.77 dB.
DC removal follows the nonlinear stage and room. There is no bass-mono or extra width process in this sound. Clear the shared note bus after each control block so only the current note samples feed the next pass. The result has an initial bright knock, a quieter pitched body and a short stereo tail.
Sound after step 5 — WebM/Opus
Audio & settings ↓