playgrid.ccRead tutorial

Tutorial 011 / Csound

Build Swelling Pulse Pad in Csound

Build Swelling Pulse Pad in Csound with swelling pulse pad synthesis, explicit contours and the sound-shaping chain explained in the guide.

4 stepsSwelling Pulse PadCsound 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 / 4

Build the independently swelling pulse body

Set giStage init 1 in the full script. Use two pulse sources at widths 0.33 and 0.36 with gains −6 and −9 dB, the second seven cents flat. Three light unison offsets span ±2.4 cents. Transpose the whole source one octave down and use −11 dB instrument gain. The 1.95 s amplitude opening is independent of the 1.71 s filter rise; the tracked 1360 Hz lowpass moves by 1.25 octaves then settles to 14% envelope sustain.

Csound control Value
Pulse pair Widths 0.33/0.36; −6/−9 dB; second −7 cents
Unison / transpose −2.4/0/+2.4 cents / −12 st
Amplitude 1.95 s / 2.10 s / full / 2.40 s
Filter 1360 Hz base; full key tracking; 1.25 octave depth
Filter contour 1.71 s / 2.37 s / 0.14 / 2.10 s
Instrument / touch −11 dB / 50%

Sound after step 1 — WebM/Opus

Next: Add moving stereo chorus →

Step 02 / 4

Add moving stereo chorus

Set giStage init 2 in the full script. Move two delay taps around 7 ms by ±13 ms at 0.65 Hz, with opposite phases and 30% wet mix. The wet inputs remain full-band. 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 7 / ±13 ms
Rate / wet 0.65 Hz / 30%
Wet highpass Off
Width / feedback 1 / 0
Warmth shaping 0% smooth-drive interpretation

Sound after step 2 — WebM/Opus

Next: Balance the lower harmonics →

Step 03 / 4

Balance the lower harmonics

Set giStage init 3 in the full script. Use a fixed low shelf at 75 Hz and three peaking filters. The shelf restrains the deepest energy, 160 Hz adds body, 392 Hz emphasizes one middle region and 523 Hz softens another. These centers stay fixed as notes change. The explicit parametric network interprets EQ Eight without its adaptive-Q or oversampling behavior.

Csound control Value
Low shelf 75 Hz, −5 dB, Q 0.71
Peaks 160 Hz +2 dB Q0.8; 392 Hz +4.5 dB Q4; 523 Hz −2.5 dB Q4

Sound after step 3 — WebM/Opus

Next: Add filtered stereo echoes →

Step 04 / 4

Add filtered stereo echoes

Set giStage init 4 in the full script. Use 300 ms left and 325 ms right, 12% feedback and 14% wet. Feed each channel back into itself, keeping the unequal timing paths independent. Filter each echo around 900 Hz, with a 5-octave interval between highpass and lowpass cutoffs. Feedback values are updated once per 16-sample block, adding that small delay to the recirculating path. Held notes leave older colors behind the current tone.

Csound control Value
Times 300 / 325 ms
Feedback / wet 12% / 14%
Routing Independent channels
Filter center / width 900 Hz / 5 octaves
Time LFO 0 Hz, ±0%

Sound after step 4 — WebM/Opus

Audio & settings ↓

Audio & settings

Audio recordings and settings for this tutorial.

Full Csound script

This document contains the complete Swelling Pulse Pad source, shared effects and example score. giStage selects the cumulative stages from 1 to 4; 4 is the finished sound.

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

giStage init 4
giOutputScale init 0.5408041
giSine ftgen 0, 0, 16384, 10, 1
gaLeft init 0
gaRight init 0

instr 1
  iHz = cpsmidinn(p4)
  iVelocity = limit(p5, 0, 1)
  kHz = iHz*0.5
  aP0 vco2 ampdb(-6), kHz*pow(2,-2.4/1200), 2, 0.33, 0.0
  aQ0 vco2 ampdb(-9), kHz*pow(2,-9.4/1200), 2, 0.36, 0.0
  aV0 = aP0+aQ0
  aP1 vco2 ampdb(-6), kHz*pow(2,0/1200), 2, 0.33, 0.3333333333333333
  aQ1 vco2 ampdb(-9), kHz*pow(2,-7/1200), 2, 0.36, 0.3333333333333333
  aV1 = aP1+aQ1
  aP2 vco2 ampdb(-6), kHz*pow(2,2.4/1200), 2, 0.33, 0.6666666666666666
  aQ2 vco2 ampdb(-9), kHz*pow(2,-4.6/1200), 2, 0.36, 0.6666666666666666
  aV2 = aP2+aQ2
  aSource = (aV0+aV1+aV2)/3
  kFilter linsegr 0, 1.71, 1, 2.37, 0.14, 2.1, 0
  kCut = limit(1360*pow(2,1.25*kFilter+(p4-60)/12),30,18000)
  aSource moogladder aSource,kCut,0
  kAmp linsegr 0, 1.95, 1, 2.1, 1, 2.4, 0
  aL = aSource*kAmp*ampdb(-11)*(0.5+0.5*iVelocity)
  aR = aL
  gaLeft = gaLeft+aL
  gaRight = gaRight+aR
endin
instr 90
  aL = gaLeft
  aR = gaRight
  if giStage >= 2 then
    aChFbL init 0
    aChFbR init 0
    aChInL = aL
    aChInR = aR
    kCh oscili 1, 0.65, giSine
    aChTimeL interp 7+13.0*kCh
    aChTimeR interp 7-13.0*kCh
    aTapL vdelay3 aChInL+aChFbL*0, aChTimeL, 80
    aTapR vdelay3 aChInR+aChFbR*0, aChTimeR, 80
    aChFbL = aTapL
    aChFbR = aTapR
    aL = aL*0.7+aTapL*0.3
    aR = aR*0.7+aTapR*0.3
    aChMid = (aL+aR)*0.5
    aChSide = (aL-aR)*0.5*1
    aL = aChMid+aChSide
    aR = aChMid-aChSide
  endif
  if giStage >= 3 then
    aL pareq aL,75,ampdb(-5),0.71,1
    aL pareq aL,160,ampdb(2),0.8,0
    aL pareq aL,392,ampdb(4.5),4,0
    aL pareq aL,523,ampdb(-2.5),4,0
    aR pareq aR,75,ampdb(-5),0.71,1
    aR pareq aR,160,ampdb(2),0.8,0
    aR pareq aR,392,ampdb(4.5),4,0
    aR pareq aR,523,ampdb(-2.5),4,0
  endif
  if giStage >= 4 then
    aDelFbL init 0
    aDelFbR init 0
    kDelMotion = 0
    aDelTimeL interp 300.0*(1+0*kDelMotion)
    aDelTimeR interp 325.0*(1-0*kDelMotion)
    aDelSendL = aL
    aDelSendR = aR
    aEchoL vdelay3 aDelSendL+aDelFbL*0.12, aDelTimeL, 2200
    aEchoR vdelay3 aDelSendR+aDelFbR*0.12, aDelTimeR, 2200
    kDelCenter = 900*pow(2, 0*kDelMotion)
    aEchoL butterhp aEchoL, kDelCenter/pow(2, 2.5)
    aEchoL butterlp aEchoL, min(18000,kDelCenter*pow(2, 2.5))
    aEchoR butterhp aEchoR, kDelCenter/pow(2, 2.5)
    aEchoR butterlp aEchoR, min(18000,kDelCenter*pow(2, 2.5))
    aDelFbL = aEchoL
    aDelFbR = aEchoR
    aL = aL*0.86+aEchoL*0.14
    aR = aR*0.86+aEchoR*0.14
  endif
  outs aL*giOutputScale, aR*giOutputScale
  clear gaLeft, gaRight
endin
</CsInstruments>
<CsScore>
; p3 held seconds, p4 MIDI pitch, p5 velocity
i 1 0 4 48 0.8
i 1 7.4 4 55 0.9
i 1 14.8 4 60 0.72
i 90 0 29.2
e
</CsScore>
</CsoundSynthesizer>