# Coral Crown — complete Csound settings

## Note and effect connections

Instrument 1 uses p3 for held seconds, p4 for MIDI pitch and p5 for velocity from 0 to 1. Its left and right outputs accumulate on shared buses. Instrument 90 processes the buses once per control block, clears the inputs and keeps effect memories active through the tails. Envelopes with release segments extend the note automatically. The score is an audible pitch-and-touch example; the synthesis controls are independent of its particular notes.

## Csound interpretation

These are explicit Csound models, not identical implementations of the Ableton devices. Wavetable positions, proprietary oscillator engines, physical-model macros, filter circuits, envelope slopes and effect algorithms can differ. Modulation depths are specified in octaves, cents or milliseconds rather than treated as universally interchangeable matrix values. Controller inputs such as pitch bend, modulation wheel, pressure and per-note expression are not mapped. Independent score notes do not implement Live's monophonic note-priority or legato system. Any pitch memory or drift included in this instrument is described in its steps.



## Signal path and controls

### Stage 1 — Build the detuned source and amplitude contour

Use 3 band-limited saw voices at -9 dB each, spread by 6 cents between adjacent voices. Reverse the stereo weights across the channels. The amplitude opens in 0.0044 seconds, decays over 0.582 seconds to 0.630957, and releases over 0.186 seconds. Basic Shapes is represented by this explicit waveform; Shimmer, where present, becomes slow independent pitch drift rather than the original unison engine.

| Csound control | Value |
| --- | --- |
| Sources | 3 × saw, -9 dB |
| Adjacent pitch spacing | 6 cents |
| Amp A/D/S/R | 0.0044 s / 0.582 s / 0.630957 / 0.186 s |
| Instrument gain | -6 dB |
| Velocity multiplier | 0.4 + 0.6 × velocity |

### Stage 2 — Blend the second source and animate the filters

Add a triangle layer at -13 dB, 0 semitones and 5 cents. Add the quieter octave-down sine sub. The notch center starts from 772 Hz and moves by -0.8 octaves under the second envelope. A positive depth opens the spectral ceiling; a negative depth moves the notch downward. The serial second filter keeps the specified high or low edge under control. Exact wavetable morphing, Warp/Fold and free-running source modulation are not implemented; the code below defines the chosen static spectra and note-local drift.

| Csound control | Value |
| --- | --- |
| Secondary layer | triangle, -13 dB; 0 st; 5 cents |
| Filter 1 | Notch, 772 Hz base, -0.8 octave depth |
| Filter contour | 0.02 / 1.1 / 0.2 / 0.3 |
| Filter 2 | Lowpass at 6.80 kHz |
| Pulse width | Not used |

### Stage 3 — Round the signal with saturation

Use +2.4 dB drive with 70% shaped signal and -3 dB output trim. The smooth curve is `tanh(input × 3 × ampdb(drive)) / 3`; the other portion stays clean. Louder peaks enter its curved region more strongly, adding harmonics and rounding the envelope. This interprets the source saturation curve rather than implementing its proprietary transfer function.

| Csound control | Value |
| --- | --- |
| Drive / output | 2.4 / -3 dB |
| Shaped mix | 70% |
| Input DC removal | Order 2048 |

### Stage 4 — Add filtered stereo echoes

Use 267 ms left and 267 ms right, 24% feedback and 18% wet. Inject the centered input on the left and cross-feed the filtered echoes so later repeats alternate sides. Filter each echo around 1800 Hz, with a 3.5-octave interval between highpass and lowpass cutoffs. Feedback values are updated once per 16-sample block, adding that small delay to the recirculating path. Held notes leave older colors behind the current tone.

| Csound control | Value |
| --- | --- |
| Times | 267 / 267 ms |
| Feedback / wet | 24% / 18% |
| Routing | Crossed, left input |
| Filter center / width | 1800 Hz / 3.5 octaves |
| Time LFO | 0 Hz, ±0% |

### Stage 5 — Set the final width and gain

Use 5.27 dB gain after the effects. Scale the side signal by 1, preserving the center. Apply order-2048 DC removal, using a longer window to limit low-note loss. The fixed output-scale control at the end of instrument 90 remains a separate Csound gain setting. Clear the shared note buses only after processing them; effect memories continue carrying their own tails.

| Csound control | Value |
| --- | --- |
| Final gain | 5.27 dB |
| Width | 1 × side |
| Bass side cutoff | Off |
| DC removal | Order 2048 |

## Output and signal rates

The script uses 48000 Hz, 16-sample control blocks and stereo output. The fixed output-scale control is `0.7754502` and follows the whole chain at every stage, separate from any final gain step. DC-removal blocks, where enabled, use order 2048 to limit low-note attenuation; they add processing delay.

[Build guide and full script](BUILD_GUIDE.md#full-csound-script) · [Starting settings](STARTING_STATE.md)

[Read on playgrid.cc](https://playgrid.cc/tutorials/coral-crown/csound/settings/)
