René Nyffenegger's collection of things on the web | |
René Nyffenegger on Oracle - Most wanted - Feedback
- Follow @renenyffenegger
|
comb (Csound opcode) | ||
An input signal is reverberated for krvt seconds with colored frequency response.
ar comb asig, krvt, ilpt[, iskip][, insmps]
krvt: Time in seconds for which the signal is reverbrated
ilpt: Time when the signal is echoed Demonstration
The following demonstration plays four notes, each 0.25 seconds apart. As ilpt is 0.5 seconds, the first note is echoed when the third starts to play, the second
is echoed when the fourth starts to play. After a second, the third note is hearable again, and the fourth after 1.25 seconds.
sr = 44100 kr = 4410 nchnls = 1 gaecho init 0 instr 1 ilen = p3 iamp = p4 ifrq = cpspch(p5) kenv linen iamp, 0.03, ilen, 0.1 asig oscil kenv, ifrq, 1 gaecho = gaecho + asig * 0.3 out asig endin instr 99 asig comb gaecho, 1, 0.5 out asig gaecho = 0 endin f1 0 2048 10 1 i1 0.00 0.25 5000 8.00 i1 0.25 0.25 5000 8.02 i1 0.50 0.25 5000 8.04 i1 0.75 0.25 5000 8.05 i99 0 1.5 0 Related links
Other Csound opcodes.
|