# Faded Circuit Keys — 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 — Shape the wobbling sustained source

Blend 86% saw with 14% triangle at +3 dB as an interpretation of Shark Tooth Shape 0.14. Add ±5.2 cents at 1.25 Hz and a slower ±2.4-cent drift. The amplitude holds full sustain after a 1 ms attack, with 8.5 s release. A separate filter contour takes 8.5 s to fall to zero and 18 s to release; it moves the fully tracked 800 Hz lowpass by 1.05 octaves.

| Csound control | Value |
| --- | --- |
| Shape | 86% saw + 14% triangle, +3 dB |
| Pitch motion | ±5.2 cents at 1.25 Hz; ±2.4 cents at 0.13 Hz |
| Amplitude | 1 ms attack, full sustain, 8.5 s release |
| Filter contour | 1 ms / 8.5 s / zero / 18 s |
| Filter / instrument | 800 Hz base, full tracking, 1.05 octave depth; −12 dB |

### Stage 2 — Blend a narrower middle band

Pass a branch through two cascaded 650 Hz bandpasses, each with 650/0.6 Hz bandwidth, then mix 30% of that branch with 70% direct signal. The cascade interprets the source 24 dB bandpass and 8% resonance using a different filter network. Its fixed center colors different pitches differently.

| Csound control | Value |
| --- | --- |
| Bandpass | Two Butterworth stages, 650 Hz; bandwidth 1083.33 Hz |
| Wet mix | 30% |

### Stage 3 — Add a restrained digital texture

Hold incoming samples at 24000 Hz and round their amplitudes to 9 signed bits, then blend 35% of that branch with the direct tone. The held samples add staircase texture and the rounding roughens quieter portions. This simple clocked quantizer interprets Redux without its proprietary jitter or shaping behavior. No pre- or post-filter is added.

| Csound control | Value |
| --- | --- |
| Hold rate | 24000 Hz |
| Signed bits / wet | 9 / 35% |

### Stage 4 — Surround the tone with a damped room

Feed the preceding signal through 8 ms predelay into `reverbsc`, with feedback 0.9209, 3000 Hz damping and 22% wet mix. Predelay leaves the initial articulation in front; feedback prolongs the tail, while damping darkens repeated circulation. The source room decay setting is 8.5 seconds, but Csound feedback is not a decay-time control: this is an interpretation of that space, with different diffusion and modulation. 

| Csound control | Value |
| --- | --- |
| Source decay target | 8.5 s (not a measured Csound decay) |
| Predelay / feedback | 8 ms / 0.9209 |
| Damping / wet | 3000 Hz / 22% |
| Room side multiplier | 1 |
| Room input cuts | Off |

## Output and signal rates

The script uses 48000 Hz, 16-sample control blocks and stereo output. The fixed output-scale control is `0.6459676` 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/faded-circuit-keys/csound/settings/)
