René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback
 

delay (Csound opcode)

Delays an input signal by some time interval.
ar delay asig, idlt [, iskip]
idlt: delay time in seconds.
delay.orc
sr     = 44100
kr     = 4410
ksmps  = 10
nchnls = 2

instr 1

  asig_delayed init 0

  asine  oscili 20000, 440, 1

  kenv   linseg 0, 0.1, 1, 0.1, 0

  asig  = kenv *asine

  asig_delayed = asig_delayed * 0.5 + asig

  asig_delayed delay asig_delayed, 0.15

  outs asig, asig_delayed

endin
delay.sco
i1 0 1
f1 0 4096 10 1
/csound/opcodes/delay.jpg

Related links

Instruments

This opcode is used for the following instruments: