Hello csounder!!
I just start to learn 'csound'.
It is my first visit this mailing list and my first question.(nerves little bit...haha)
I want make a instrument for wind_controller(akai ewi usb).
I use cc#2 as an envelope control. But it has a noise when I stop breathing and change note.
I tried to using 'xtratim and release' for smooth release. but this 'release' opcode need velocity off.(velocity off message is always after breath stop.)
I tried to using 'if ...kgoto' opcode with breath level. It did'n work, too.
As far as I know, envelope generators are just available i-rate.
I am trying to solve this problem, and need more information. (unfortunately I don't have any experience about programming language.)
Even though it is a stupid question, it is very important for me.(I can't sleep)
Would you please show me any opcode, tip ,hint or patch ?
It is a simplified patch for the wind_controller.
I play this instrument in the Max/MSP
<CsoundSynthesizer>
<CsOptions>
-odac -idac -d -M0
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
ctrlinit 1, 2, 0
instr 1
kcar chnget "car"
kmod chnget "mod"
kndx chnget "ndx"
kcps cpsmidib
kbreath midictrl 2, 0, 1
a1 foscil kbreath, kcps,kcar, kmod, kndx, 1
outs a1, a1
endin
</CsInstruments>
<CsScore>
f 0 36000
f 1 0 4096 10 1
</CsScore>
</CsoundSynthesizer>
Thank you in advance.
P.S. : sorry about my bad English.~~~I hope that you understand what my question is.