playgrid.ccRead tutorial

Quartz Trail — Csound starting settings

First-stage source

Set giStage init 1. A hammer pulse rises in 0.3 ms and then falls over 0.0018 seconds. Add 10% contact noise and lowpass the excitation at 4240 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.

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

Later stages are bypassed until selected. Start from the complete script so declarations and shared buses are connected. The fixed output scale is 1.074314; note inputs and any interpretation limits are described in the complete settings.

Build guide