|
Hello
Thanks very much for your reply. Indeed replacing oscili with poscil solves the problem.
Best Peiman
On 20 Sep 2008, at 03:07, Marco Stroppa wrote: Hello,
It seems again a problem with the resolution of the phase increment of oscili. On a Mac-Intel (small), using csound single precision, I get a small click at the end with your example. If I replace oscili with poscil, the click disappears. I do not have the double version on this machine, but you can try this hack to see if it works with yours. Best,
Marco ----- Ursprüngliche Mail ---- Von: peiman khosravi < peimankhosravi@gmail.com> An: csound@lists.bath.ac.ukGesendet: Freitag, den 19. September 2008, 21:58:19 Uhr Betreff: [Csnd] Re: Re: problem with envelope (Please help a very frustrated composer!!) Thanks for testing Victor. In that case it sounds like a problem with the double version (or at least on OSX).
Just the thing I didn't want to hear!! :-(
Thanks Peiman 2008/9/19 victor <Victor.Lazzarini@nuim.ie>I ran your CSD here and got no noticeable click at the end (I am using floats version).
Victor ----- Original Message ----- From: "peiman" <peimankhosravi@gmail.com> To: <csound@lists.bath.ac.uk> Sent: Friday, September 19, 2008 8:27 PM Subject: [Csnd] problem with envelope (Please help a very frustrated composer!!) Hello
Please tell me I've lost my mind and am doing something completely stupid! I've managed to narrow the problem down to one sine-tone after hours of striping my orchestra.
For some reason when I run the attached csd I get a click right at the end. However, increasing ksmps from 1 to 16 gets rid of the glitch. This is strange as the envelope is k-rate and should only get better with higher control rate.
I'm on csound64....
Any suggestions will save me hours of head-banging!
All the best Peiman
<CsoundSynthesizer>
<CsInstruments> sr=96000 ksmps=1 nchnls=2
0dbfs = 1
instr 4 ;p4 = freq ;p5 = pitch transpose (in cent) ;p6 = gain scale ;p7 = panner initial phase
itablecreate ftgen 0, 0, 65537, -7, 0.0, 12837.14453125, 0.020270288, 9627.859375, 0.0405405164, 5067.29296875, 0.0743243098, 3378.1953125, 0.1216216087, 3716.015625, 0.2432432175, 3209.28515625, 0.3581081033, 3547.109375, 0.6013513803, 2026.91796875, 0.8040540218, 1013.45703125, 0.9662162066, 1520.18359375, 0.8783783913, 844.5546875, 0.6621621847, 2533.64453125, 0.3783783913, 2702.5546875, 0.2364864945, 2533.6484375, 0.0945945978, 3616.171875, 0.0427509546, 7362.96484375, 0.0
ktime = .1 igain = p6
iscale = cent(p5)
kfreq0 = p4 kamp0 = .1
kenv oscili kamp0*igain,1/p3,itablecreate
ar oscili kenv, kfreq0*iscale, 1 kpan oscili 1,.3 , 1, p7 kpan = kpan + .5
aoutl = ar * (1 - kpan) aoutr = ar * kpan
out aoutl, aoutr
endin
</CsInstruments>
<CsScore>
f 1 0 32769 10 1
t 0 60.0
i4.0 2.558442 20.3125 440 0 1.0 0.55980074 e
</CsScore>
</CsoundSynthesizer> http://www.nabble.com/file/p19577988/test.csd test.csd
-- View this message in context: http://www.nabble.com/problem-with-envelope-%28Please-help-a-very-frustrated-composer%21%21%29-tp19577988p19577988.html Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
Send bugs reports to this list. To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" __________________________________________________ Do You Yahoo!? Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails. http://mail.yahoo.com
|