Amber Lantern — 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 0.8337458 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.
BPF and BRF use bandwidth divided by center frequency as reciprocal Q. The narrow noise resonances, where present, use SuperCollider normalization and need their own instrument gain.
LeakDC uses coefficient 0.995. It replaces the longer-window Csound DC blocker, with a different low-frequency response and latency.
LocalIn/LocalOut carry all feedback paths in a single multichannel loop. Recirculation adds one server processing block to each delay; changing block size therefore changes short comb/flanger tuning. DelayC uses seconds, converted from the millisecond tap values in the design.
Each new note glides exponentially from the previous target pitch with a 40 ms half-time. The first note starts from MIDI 60. This helper retriggers note envelopes and does not implement mono legato or voice stealing.
~pgTriangle builds an odd-partial sine sum through harmonic 31. It replaces the source triangle oscillator; components at or above 22 kHz are muted.
Synthesis and effect controls #
Stage 1 — Build a lightly spread saw lead #
Select ~soundStage = 1 and evaluate the full script at the end of this guide. Wait for the instrument-ready message before playing. The triangle source is an explicit odd-harmonic sine sum through partial 31, with components at or above 22 kHz muted.
Set ~soundStage = 1 in the full script. Mix three band-limited saws at −5, 0 and +5 cents, each at −9 dB. The saw units use their native startup phase; the added triangle layers use phases 0.11, 0.39 and 0.72 cycles. Weight the voices 0.8/0.5/0.2 on the left and reverse those weights on the right; divide each channel sum by 1.5.
Use a linear amplitude envelope with 4.40 ms attack, 643 ms decay, −4 dB sustain and 191 ms release. Instrument gain is −6 dB, and touch scales amplitude by 0.4 + 0.6 × velocity. This contour gives a quick lead onset and a short fade without making every note a click.
EnvGen smooths pitch toward each new target with a 40 ms half-time, starting from the preceding note's pitch. The note helper remembers the previous target; this simple pitch memory does not implement Live's mono-legato priority. The saws interpret Basic Shapes at position 66%, rather than scan its actual wavetable.
Stage 2 — Add the upper color, sub and moving notch #
Set ~soundStage = 2. Each unison voice gains a triangle at −13 dB and +5 cents. This triangle is an explicit interpretation of the second Basic Shapes position. Add a centered sine sub at −18 dB, one octave below the note.
Apply the same notch on the right, then lowpass each channel at 6800 × 2^(0.35 × velocity) Hz, limited to 18000 Hz. The negative 0.8-octave envelope sweep hollows the lead during its early body; the lowpass limits the upper edge. Its velocity route brightens stronger notes. These octave depths and notch bandwidth interpret the source matrix and resonance values. Mod-wheel and pitch-bend routes are not mapped.
Stage 3 — Thicken the lead with smooth clipping #
Set ~soundStage = 3. Remove DC before the shared nonlinear stage. Use tanh(input × 3 × (3.1).dbamp) / 3 at 70% wet, blended with 30% clean signal, then trim the result by −3 dB.
The +3.1 dB drive pushes louder peaks farther into the rounded part of the curve. The factor 3 sets its sensitivity; dividing by 3 preserves the curve's small-signal scale before drive. This is a smooth interpretation of Analog Clip, not its exact transfer curve. Processing the shared note bus lets overlapping releases affect the drive together.
Stage 4 — Add filtered ping-pong repeats #
Set ~soundStage = 4. Send the mean of the two dry channels into a 267 ms left delay. Feed 24% of each filtered echo into the opposite delay; the right side first receives the left echo rather than a second copy of the original input.
Highpass and lowpass each echo around an 1800 Hz center, at center / 2^1.75 and center × 2^1.75. This interprets Width 3.50 as a 3.5-octave passband. Mix 82% direct and 18% wet. The first echo is left, and subsequent feedback traversals alternate sides. Each feedback traversal also includes one server processing block. No delay-time or filter LFO is active.
Stage 5 — Balance the finished stereo lead #
Set ~soundStage = 5. Apply +5.80 dB to each output channel and remove DC using LeakDC. Keep the existing stereo difference; there is no bass narrowing or mono conversion in this version.
The gain raises both the lead and its repeats. The shared effect Synth runs after the voice group. The finished sound has a fast, hollowed lead body with a centered sub and short, alternating echoes.
Connected instrument #
The full SuperCollider script contains the complete voice, shared effects, bus ordering and note helper. No external sample or third-party unit is required.