playgrid.ccRead tutorial

Tutorial 118 / Csound

Build Reedlight Organ in Csound

Build Reedlight Organ in Csound with additive organ synthesis, explicit contours and the sound-shaping chain explained in the guide.

5 stepsAdditive OrganCsound 6

Listen to the finished sound

Download WEBM ↓

Follow the synthesis steps in order. Use the audio examples and device settings alongside the instructions.

Step 01 / 5

Shape the sine body

Set giStage init 1 in the full script. Use a retriggered sine at -8.0 dB, transposed 0 semitones. Attack is 0.012 seconds, exponential decay 0.8 seconds, sustain 1 and release 0.17 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.012 / 0.8 / 1 / 0.17
Instrument gain -8.0 dB
Transpose 0 st

Sound after step 1 — WebM/Opus

Next: Build the characteristic spectrum →

Step 02 / 5

Build the characteristic spectrum

Set giStage init 2 in the full script. Add parallel sines at ratios 2, 3 and 4 with levels −13, −19 and −24 dB. They use the same amplitude contour. A tracked 5600 Hz lowpass softens the upper edge without turning the additive layers into FM. 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 Sine ratios 2/3/4: −13/−19/−24 dB
Filter 5.60 kHz
Filter type Lowpass

Sound after step 2 — WebM/Opus

Next: Add moving stereo chorus →

Step 03 / 5

Add moving stereo chorus

Set giStage init 3 in the full script. Move two delay taps around 12 ms by ±3.6 ms at 0.65 Hz, with opposite phases and 22% wet mix. Highpass only the wet inputs at 180 Hz to leave the direct low body clear. Scale side information by 1; tap feedback is 0. These explicit tap depths interpret the source Amount and ensemble movement rather than copy the internal algorithm. Sustained notes reveal slow pitch interference.

Csound control Value
Tap center / excursion 12 / ±3.6 ms
Rate / wet 0.65 Hz / 22%
Wet highpass 180 Hz
Width / feedback 1 / 0
Warmth shaping 0% smooth-drive interpretation

Sound after step 3 — WebM/Opus

Next: Surround the tone with a damped room →

Step 04 / 5

Surround the tone with a damped room

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

Sound after step 4 — WebM/Opus

Next: Set the final width and gain →

Step 05 / 5

Set the final width and gain

Set giStage init 5 in the full script. Use -7.37 dB gain after the effects. Scale the side signal by 1, preserving the center. Highpass only the side at 140 Hz to focus the lowest frequencies. 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 -7.37 dB
Width 1 × side
Bass side cutoff 140 Hz
DC removal Order 2048

Sound after step 5 — WebM/Opus

Audio & settings ↓

Audio & settings

Audio recordings and settings for this tutorial.

Full Csound script

This document contains the complete Reedlight Organ source, shared effects and example score. giStage selects the cumulative stages from 1 to 5; 5 is the finished sound.

<CsoundSynthesizer>
<CsOptions>
-odac -d
</CsOptions>
<CsInstruments>
sr = 48000
ksmps = 16
nchnls = 2
0dbfs = 1

giStage init 5
giOutputScale init 1.772815
giSine ftgen 0, 0, 16384, 10, 1
gaLeft init 0
gaRight init 0

instr 1
  iHz = cpsmidinn(p4)
  iVelocity = limit(p5, 0, 1)
  kPitch = 0
  kHz = iHz*pow(2,(0+kPitch)/12)
  aSource oscili ampdb(-8.0), kHz, giSine, 0
  aAmpGate linseg 0, 0.012, 1, 1, 1
  aAmpDecay expsegr 1, 0.012, 1, 0.8, 1.0, 0.17, 0.000001
  aAmp = aAmpGate*aAmpDecay
  aSource = aSource*aAmp
  if giStage >= 2 then
  aH2 oscili ampdb(-13), kHz*2, giSine, 0
  aSource = aSource+aH2*aAmp
  aH3 oscili ampdb(-19), kHz*3, giSine, 0
  aSource = aSource+aH3*aAmp
  aH4 oscili ampdb(-24), kHz*4, giSine, 0
  aSource = aSource+aH4*aAmp
  aSource butterlp aSource,limit(5600*pow(2,0.5*(p4-60)/12),30,18000)
  endif
  aL = aSource*ampdb(-8.0)*(0.65+0.35*iVelocity)
  aR = aL
  gaLeft = gaLeft+aL
  gaRight = gaRight+aR
endin
instr 90
  aL = gaLeft
  aR = gaRight
  if giStage >= 3 then
    aChFbL init 0
    aChFbR init 0
    aChInL butterhp aL, 180.0
    aChInR butterhp aR, 180.0
    kCh oscili 1, 0.65, giSine
    aChTimeL interp 12+3.6*kCh
    aChTimeR interp 12-3.6*kCh
    aTapL vdelay3 aChInL+aChFbL*0, aChTimeL, 80
    aTapR vdelay3 aChInR+aChFbR*0, aChTimeR, 80
    aChFbL = aTapL
    aChFbR = aTapR
    aL = aL*0.78+aTapL*0.22
    aR = aR*0.78+aTapR*0.22
    aChMid = (aL+aR)*0.5
    aChSide = (aL-aR)*0.5*1.0
    aL = aChMid+aChSide
    aR = aChMid-aChSide
  endif
  if giStage >= 4 then
    aRoomInL = aL
    aRoomPreL delay aRoomInL, 0.012
    aRoomInR = aR
    aRoomPreR delay aRoomInR, 0.012
    aRoomL, aRoomR reverbsc aRoomPreL, aRoomPreR, 0.6918, 4500.0, sr, 0.4
    aRoomMid = (aRoomL+aRoomR)*0.5
    aRoomSide = (aRoomL-aRoomR)*0.5*1
    aL = aL*0.8200000000000001+(aRoomMid+aRoomSide)*0.18
    aR = aR*0.8200000000000001+(aRoomMid-aRoomSide)*0.18
  endif
  if giStage >= 5 then
    aEndMid = (aL+aR)*0.5
    aEndSide = (aL-aR)*0.5*1.0
    aEndSide butterhp aEndSide, 140.0
    aL = (aEndMid+aEndSide)*ampdb(-7.37)
    aL dcblock2 aL, 2048
    aR = (aEndMid-aEndSide)*ampdb(-7.37)
    aR dcblock2 aR, 2048
  endif
  outs aL*giOutputScale, aR*giOutputScale
  clear gaLeft, gaRight
endin
</CsInstruments>
<CsScore>
; p3 held seconds, p4 MIDI pitch, p5 velocity
i 1 0 0.7 60 0.8
i 1 1.6 0.7 64 0.95
i 1 3.2 0.7 67 0.7
i 90 0 14.07
e
</CsScore>
</CsoundSynthesizer>