packages feed

hsc3-0.12: Help/UGen/Filter/delayN.help.lhs

> Sound.SC3.UGen.Help.viewSC3Help "DelayN"
> Sound.SC3.UGen.DB.ugenSummary "DelayN"

> import Sound.SC3.ID

Dust randomly triggers Decay to create an exponential decay envelope
for the WhiteNoise input source.  The input is mixed with the delay.
> let {d = dust 'a' AR 1
>     ;n = whiteNoise 'b' AR
>     ;z = decay d 0.3 * n
>     ;x = mouseX KR 0.0 0.2 Linear 0.1}
> in audition (out 0 (z + delayN z 0.2 x))

The delay time can be varied at control rate.  An oscillator either
reinforcing or cancelling with the delayed copy of itself.
> let { o = sinOsc AR 320 0 * 0.1
>     ; l = 0.005
>     ; x = mouseX KR 0.0 l Linear 0.15 }
> in audition (out 0 (o + delayN o l x))