# Amber Lantern — SuperCollider starting settings

## First-stage source

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.

## Later sound shaping

- Stage 2: Add the upper color, sub and moving notch.
- Stage 3: Thicken the lead with smooth clipping.
- Stage 4: Add filtered ping-pong repeats.
- Stage 5: Balance the finished stereo lead.

The fixed output multiplier `~soundOutputScale` is 0.8337458. The connected [full script](/tutorials/amber-lantern/supercollider/#full-supercollider-script) supplies all declarations and shared effects. [Complete settings](ALL_PARAMETERS.md) describe the SuperCollider-specific algorithms and their differences.

[Read on playgrid.cc](https://playgrid.cc/tutorials/amber-lantern/supercollider/starting-state/)
