# Copper Circuit — complete Csound settings

## Signal flow and interpretation

Centered saw and pulse → smoothly driven ladder lowpass → amplitude → shared saturation → mono gain and DC removal.

The [Ableton version](/tutorials/copper-circuit/) supplies source levels, pulse width, envelope times and the main cutoff. Csound uses its own ladder-filter response, explicit octave depths and a velocity^2.5 curve. The filter and saturator drive curves interpret Sym1 and Analog Clip rather than implement those algorithms. The LFO restarts per note instead of remaining free-running. Aftertouch and mono note-priority behavior are not mapped; no glide is added.

## Instrument and effect controls

| Control | Csound value |
| --- | --- |
| Initial source | Saw, −6 dB, MIDI pitch from p4, no unison or glide |
| Amplitude gate | Linear 5 ms to full level |
| Amplitude decay / sustain / release | Exponential 480 ms / 0.65 / 130 ms to 0.000001 |
| Amplifier / instrument gain | −6 dB / −6 dB |
| Touch curve | velocity^2.5 |
| Pulse source from stage 2 | Same pitch; width 0.38; −12 dB |
| Filter envelope | 5 ms gate; exponential 210 ms decay to 0.08; 130 ms release |
| Filter motion | 1.7 Hz sine; ±0.12 octaves; note-retriggered |
| Cutoff | 270 × 2^(3.20 × contour + 0.50 × (MIDI note − 60) / 12 + 0.12 × LFO) Hz; limited to 30–18000 Hz |
| Filter drive / resonance | tanh(source × 1.6) / 1.6; moogladder resonance 0.52 |
| Saturator from stage 3 | DC removal; tanh(input × 3 × ampdb(4)) / 3; 70% wet; −3 dB trim |
| Final stage 4 | Mono average; +3.65 dB; DC removal; identical left/right outputs |

## Opcode references

[moogladder](https://csound.com/docs/manual/moogladder.html) supplies the resonant ladder lowpass. [vco2](https://csound.com/docs/manual/vco2.html) supplies saw and pulse waveforms. The shared output is centered throughout; the last stage explicitly preserves identical left and right samples.

## Full script and stage selector

The [full script](BUILD_GUIDE.md#full-csound-script) contains options, both instrument definitions and an example score. Instrument 1 uses p3 for held seconds, p4 for MIDI pitch and p5 for velocity from 0 to 1. Instrument 90 reads the shared note buses and clears them after processing each control block. Keep it active while notes or effect tails sound. The stage selector is cumulative.

[Starting settings](STARTING_STATE.md) · [Build guide](BUILD_GUIDE.md)

## DC-blocking window

DC removal uses `dcblock2` with order 2048. This longer window limits low-note attenuation compared with its default order of 128, while adding processing delay. The same filtered signal feeds both the clean and shaped saturation paths, keeping those paths aligned.

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