# Amber Crown — 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.

Use the `~pgSwarm` function and voice SynthDef from the full script with `~soundStage = 1`. Each voice is an odd-partial triangle from `~pgTriangle`. Mix five voices at −17.7, −8.85, 0, +8.85 and +17.7 cents; divide their sum by five so adding voices does not multiply the source level.


Each oscillator drifts by ±1.2 cents at a slightly different slow rate. Those rates and the fixed pitch spacing make sustained notes beat and change color. The triangle cluster is an interpretation of Swarm Triangle: its detuning and drift values are explicit SuperCollider choices, not a conversion of Meld's Motion and Spacing macros.

Set engine A's linear envelope to 473 ms attack, 2.43 s decay, −4 dB sustain and 2.26 s release. Apply −10 dB engine gain and −8 dB instrument gain, with velocity scaling `0.5 + 0.5 × velocity`. The mild `tanh(signal × 1.1) / 1.1` drive rounds peaks before instrument gain. At this stage both output channels carry the same cluster, so movement comes from beating rather than stereo spread.

## Later sound shaping

- Stage 2: Add the slower octave bloom and stereo filtering.
- Stage 3: Add moving, filtered cross-feedback echoes.
- Stage 4: Add a damped hall after the echoes.
- Stage 5: Focus the bass and apply the output gain.

The fixed output multiplier `~soundOutputScale` is 0.5933138. The connected [full script](/tutorials/amber-crown/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-crown/supercollider/starting-state/)
