# Flint Snap — 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 sine body

Use a retriggered sine at -8.0 dB, transposed 0 semitones. Attack is 0.0003 seconds, exponential decay 0.11 seconds, sustain 0 and release 0.08 seconds. Positive exponential floors stand in for silence. The contour starts again for each score note; it differs from Operator's Trigger envelope behavior on very short held notes.

| Csound control | Value |
| --- | --- |
| Carrier | Sine, phase 0 |
| Amplitude A/D/S/R | 0.0003 / 0.11 / 0 / 0.08 |
| Instrument gain | -12 dB |
| Transpose | 0 st |

### Stage 2 — Build the characteristic spectrum

Add a separately decaying white-noise layer at −5 dB with 190 ms decay and 100 ms release. Highpass the combined body at 160 Hz, leaving a pitched knock underneath the noise snap. The exact source circuit and low-level envelope behavior are represented by the explicit code in the full script.

| Csound control | Value |
| --- | --- |
| Added source / motion | White noise: −5 dB; 190 ms decay |
| Filter | 160 Hz |
| Filter type | Highpass |

### Stage 3 — Round the signal with saturation

Use +3 dB drive with 60% shaped signal and -2 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 | 3 / -2 dB |
| Shaped mix | 60% |
| Input DC removal | Order 2048 |

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

Feed the preceding signal through 5 ms predelay into `reverbsc`, with feedback 0.35, 4500 Hz damping and 9% wet mix. Predelay leaves the initial articulation in front; feedback prolongs the tail, while damping darkens repeated circulation. The source room decay setting is 0.45 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 | 0.45 s (not a measured Csound decay) |
| Predelay / feedback | 5 ms / 0.35 |
| Damping / wet | 4500 Hz / 9% |
| Room side multiplier | 1 |
| Room input cuts | Off |

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

Use -0.77 dB gain after the effects. Average the channels for identical mono outputs. 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 | -0.77 dB |
| Width | Mono |
| 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 `1.119335` 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/flint-snap/csound/settings/)
