playgrid.ccRead tutorial

Clover Prism — complete Csound settings

Signal flow and interpretation

Drifting triangle cluster + slower octave sine → separate lowpass filters and amplitude envelopes → mild drive → filtered cross-feedback delay → hall → bass narrowing, output gain and DC removal.

This version interprets the Ableton Meld sound. The triangle cluster approximates Swarm Triangle's evolving character without implementing its internal algorithm. Drift and spacing are explicit pitch values rather than direct conversions of Motion and Spacing. The sine octave layer interprets Basic Shapes at its lowest shape setting. Filter Q, envelope slopes, drive, spread, delay modulation and hall feedback use Csound choices; they do not numerically reproduce the original macros or proprietary effects. Scale-aware tuning, pitch-bend and per-note expression mappings are not implemented.

Engine A — drifting triangle cluster

Control Value
Signal engine Csound 6 syntax; 48000 Hz; 16-sample control blocks; stereo
Finished stage giStage = 5
Source Five band-limited triangle oscillators, vco2 mode 12
Fixed voice offsets −12.0, −6.0, 0, +6.0, +12.0 cents
Initial phases 0.05, 0.23, 0.41, 0.62, 0.84 cycles
Pitch drift ±1.2 cents; sine LFO rate 0.12 + abs(voice cents) × 0.005 Hz
Additional engine offset 0 cents at stage 1; −3.125 cents from stage 2
A envelope Linear 392 ms attack, 2.05 s decay to −4 dB, 1.20 s release to zero
A gain −10 dB
Dry cluster mix at stage 1 Sum of voices / 5, centered
Left voice weights from stage 2 0.8, 0.7, 0.5, 0.3, 0.2; sum / 2.5
Right voice weights from stage 2 Reversed left weights; sum / 2.5
A filter from stage 2 lowpass2 at 1720 Hz, Q 1.2, both channels
A right-channel bias × 0.85 after filtering

The opposing voice weights create a stereo difference from slightly different pitches rather than a copy with a fixed delay. The right-channel trim biases the main engine slightly left. Q 1.2 is the explicit Csound resonance setting; the original Meld Q value 12.0 is a different control scale.

Engine B — slower octave bloom

Control Value
Source Sine, initial phase 0.17 cycles
Pitch One octave above the note, +3.125 cents
B envelope Linear 1.10 s attack, 4.00 s decay to −6 dB, 2.20 s release to zero
B gain −22 dB
Filter Butterworth lowpass at 3600 Hz
Stereo position pan2 at 0.625, slightly right
Velocity Same multiplier as A: 0.5 + 0.5 × velocity
Instrument drive / gain tanh(engine sum × 1.1) / 1.1; then −8 dB

A and B have independent envelope instances. Their overlapping release times extend each note automatically; from stage 2 onward, the longer B release determines the final voice lifetime. At stage 1 only A is active. The B lowpass preserves the source signal path even though a sine contains no upper partials to cut at ordinary pitches.

Filtered stereo delay

Control Value Audible role
Left / right center times 340 / 470 ms Unequal stereo echoes
Shared sine LFO 0.18 Hz Slow echo movement across notes
Time depth ±2% on left, reversed on right Gentle pitch movement in repeats
Time interpolation k-rate target smoothed to audio rate Avoids stepped delay changes
Feedback 30%, crossed between channels Alternating stereo paths
Filter center 1700 × 2^(0.04 × LFO) Hz Slight moving color
Feedback highpass Center / 2^1.5 Removes lows on each trip
Feedback lowpass Center × 2^1.5 Softens upper repeats
Passband interpretation Three octaves between cutoff values Explicit Csound choice for Width
Delay mix 78% dry + 22% filtered echo Retains the direct swell
Delay buffer 1000 ms maximum Contains both modulation ranges

Filtered delay outputs feed the opposite channel on the next control block. The extra 16-sample feedback latency is part of this implementation. Both feedback gains stay below unity, and input energy is filtered on every repeat.

Hall and output

Control Value Audible role
Hall predelay 30 ms Separates swells and diffuse room
reverbsc feedback 0.80 Sustained hall-like tail
Feedback damping 3200 Hz Darkens recirculating highs
Hall mix 80% delay mix + 20% hall Surrounds the echoes
Bass narrowing Side-channel highpass at 160 Hz Reduces low stereo spread
Output gain +9.13 dB Raises the finished body and tails
DC removal Both reconstructed output channels Removes constant offset

Reverb feedback is not a decay time in seconds. Room size, diffusion, high-shelf gain and envelope slopes have no direct one-to-one translation in this script.

Stage selector and complete script

giStage is cumulative: 1 gives the centered cluster; 2 adds the octave, filters and stereo placement; 3 adds delay; 4 adds hall; 5 adds bass narrowing and output gain. Instrument 90 carries the shared effects across notes and clears the input buses after each block.

The full Csound script appears at the end of the build guide.

Opcode references

lowpass2 provides a resonant second-order lowpass. vdelay3 uses delay times in milliseconds. reverbsc provides the hall with separate feedback and damping controls.

Starting settings · Build guide

DC-blocking window

Final DC removal uses dcblock2 with order 2048. The longer window limits low-note attenuation compared with its default order of 128, while adding processing delay.