Csound Csound-dev Csound-tekno Search About

how to implement feedback?

Date1999-01-10 07:51
Frompete moss
Subjecthow to implement feedback?
i was fooling around with sound forge and fm synthesis and created a
sound i like.  i have been able to implement this sound in csound with
the following orc+sco.  however, i would also like to add variable
feedback to the last oscil.  how can i send the output of a1 back into
a1?  is there an opcode that would handle this for me?  i have never
used feedback.

thanks
pete


sr = 44100
kr = 44100
ksmps = 1
nchnls = 1

instr 1
iamp = p4

a3 oscil iamp*.1, 2200, 1

k2 linseg 0, .128*p3, .92, .19*p3, .3, .682*p3, 0
a2 oscil iamp*.0708*k2, a3+110, 2

k1 line 1, p3, 0
a1 oscil iamp*.5957*k1, a2+220, 1

 out  a1
endin

f1 0 8192 10 1
f2 0 8192  7 0 4096 1 0 -1 4096 0

i1 0 2 32000

e