playgrid.ccRead tutorial

Apricot Pulse — complete Csound settings

Signal flow and interpretation

Pulse and octave sine → gently driven ladder lowpass → amplitude → highpassed stereo chorus → predelayed room → output gain and DC removal.

The Ableton version supplies the pulse width, source levels, envelope times and effect mix targets. This script uses a different ladder filter, explicit octave modulation depth, a velocity-squared curve and chosen chorus delay depth. The source's aftertouch route is not mapped. The room algorithm and its feedback are an interpretation of the space rather than an exact numerical decay match.

Instrument and effect controls

Control Csound value
Pulse source vco2 mode 2; width 0.32; −7 dB
Amplitude gate Linear 5 ms to full level
Amplitude decay / sustain / release Exponential 1.40 s / 0.15 / 420 ms to 0.000001
Amplifier / instrument gain −6 dB / −7 dB
Touch curve velocity squared
Octave source from stage 2 Sine, octave up, −22 dB
Filter contour 5 ms gate; exponential 320 ms decay to 0.08; 250 ms release
Filter cutoff 950 × 2^(2.30 × contour + 0.70 × (MIDI note − 60) / 12) Hz; limited to 30–18000 Hz
Filter drive / resonance tanh(source × 1.3) / 1.3; moogladder resonance 0.16
Chorus from stage 3 Wet input highpass 180 Hz; 12 ms ± 2.4 ms taps; 0.32 Hz opposite sine motion; 18% wet
Room from stage 4 12 ms predelay; reverbsc feedback 0.74; damping 4500 Hz; 17% wet
Final stage 5 +4.80 dB; stereo retained; DC removal

Opcode references

moogladder supplies the nonlinear ladder lowpass. vco2 supplies the pulse source. Exponential amplitude and filter releases use positive floors; they extend the note automatically.

Full script and stage selector

The full 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 · 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.