# Ochre Tines — complete SuperCollider settings

## Signal flow and implementation

`~soundStage` is compiled into the SynthDefs. Re-evaluate the complete block after changing it; source and effects are then replaced together. The fixed output multiplier `~soundOutputScale` is 3.918703 and applies after the whole chain at every stage. It is separate from any final gain step.

`EnvGen` supplies the explicit linear or exponential contours. Exponential floors stay positive. Closing the gate begins each release; a separate silent lifetime envelope frees the note after the longest source release. Shared effects continue independently.

`Ringz` supplies damped modal resonances. A source Q is translated to a 60 dB decay time as Q × ln(1000) / (π × frequency). String modes retain stiffness, decay weighting, strike position and pickup weighting. Modal gains and excitation response differ from Tension, Electric, Collision and Csound mode filters; the fixed instrument gain belongs to this SuperCollider version.

`LeakDC` uses coefficient 0.995. It replaces the longer-window Csound DC blocker, with a different low-frequency response and latency.

`FreeVerb2` replaces the diffuse room with its own room and damping controls, both dimensionless. The per-stage values below are specific to this algorithm and do not specify a measured decay time or damping frequency.

## Synthesis and effect controls

### Stage 1 — Strike the tone-bar modes

Select `~soundStage = 1` and evaluate the full script at the end of this guide. Wait for the instrument-ready message before playing.

Set `~soundStage = 1` in the full script. A hammer pulse rises in 0.3 ms and then falls over 0.0014 seconds. Add 10% contact noise and lowpass the excitation at 5520 Hz, with velocity darkening gentler strikes. Modes at ratios 1 and 2.01 decay over 2.8 and 1.8 seconds. The contact duration and bandwidth give the two electric-key sounds different attacks. These resonances interpret Electric's tone bar and hammer rather than simulate its complete mechanics.

| SuperCollider control | Value |
| --- | --- |
| Mode ratios / weights | 1 / 2.01; weights 0.75 / 0.18 |
| Modal T60 | 2.8 / 1.8 s |
| Strike bandwidth | 5520 × (0.5 + 0.5 × velocity) Hz |
| Modal scale | 0.02 |
| Instrument / touch | −12 dB / velocity^1.6 |

### Stage 2 — Blend the brighter tine and pickup response

Set `~soundStage = 2` in the full script. Add modes near ratios 6.98 and 10.03 with 1.36 s and 0.7 s decays. Weight them 0.45 and 0.15, then multiply by the tine blend 0.48. They put a brief bell-like edge above the tone bar. A velocity-dependent tanh curve interprets pickup nonlinearity before the shared effects. Pickup distance, symmetry, damping and release macros are not directly modeled; the script specifies its own contact, resonance and tail behavior.

| SuperCollider control | Value |
| --- | --- |
| Tine ratios / decays | 6.98 / 10.03; 1.36 / 0.70 s |
| Tine blend | 0.48 |
| Pickup curve | tanh(tone × (1 + 2 × velocity)) / (1 + 2 × velocity) |
| Tail lifetime | 6 s beyond held duration |

### Stage 3 — Round the signal with saturation

Set `~soundStage = 3` in the full script. Use +2 dB drive with 45% shaped signal and -2 dB output trim. The smooth curve is `tanh(input × 3 × drive.dbamp) / 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.

| SuperCollider control | Value |
| --- | --- |
| Drive / output | 2 / -2 dB |
| Shaped mix | 45% |
| Input DC removal | LeakDC, coefficient 0.995 |

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

Set `~soundStage = 4` and evaluate the full block. Feed the preceding signal into `FreeVerb2`, using its fully wet output and the dry/wet routing shown in the script. The room continues after individual note envelopes release. Predelay separates the initial articulation from the diffuse tail; the external wet mix controls how far that tail moves forward.

The SuperCollider room value is 0.402295 and damping is 0.71875. These dimensionless settings are choices for this algorithm, rather than equivalent values for Ableton decay or Csound feedback and damping. More damping darkens the circulating highs. Any input filters and mid/side width changes in this stage retain their own explicit settings in the full script.

| SuperCollider room control | Value |
| --- | --- |
| FreeVerb2 internal mix | 1, wet output only |
| Room | 0.402295 |
| Damping | 0.71875 |
| Predelay | 12 ms |
| External room wet | 14% |

| SuperCollider control | Value |
| --- | --- |
| Room side multiplier | 1 |
| Room input cuts | Off |

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

Set `~soundStage = 5` in the full script. Use -2.99 dB gain after the effects. Scale the side signal by 1, preserving the center. Apply `LeakDC` DC removal with coefficient 0.995. The fixed `~soundOutputScale` gain follows the complete effect chain at every stage. The effects Synth reads the stereo bus after the note group, and continues through note releases.

| SuperCollider control | Value |
| --- | --- |
| Final gain | -2.99 dB |
| Width | 1 × side |
| Bass side cutoff | Off |
| DC removal | LeakDC, coefficient 0.995 |

## Connected instrument

The [full SuperCollider script](/tutorials/ochre-tines/supercollider/#full-supercollider-script) contains the complete voice, shared effects, bus ordering and note helper. No external sample or third-party unit is required.

[Read on playgrid.cc](https://playgrid.cc/tutorials/ochre-tines/supercollider/settings/)
