Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: problem with envelope (Please help a very frustrated composer!!)

Date2008-09-19 23:27
Fromvictor
Subject[Csnd] Re: Re: Re: problem with envelope (Please help a very frustrated composer!!)
I can try your code on Monday in OSX csound 64 (I have been building one
to consider how to package it, I'm thinking of supplying 5.09 with both
frameworks, but have to think about how best to do it).
 
Victor
----- Original Message -----
Sent: Friday, September 19, 2008 8:58 PM
Subject: [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"


Date2008-09-20 00:33
Frompeiman
Subject[Csnd] Re: Re: Re: problem with envelope (Please help a very frustrated composer!!)
Thanks!

For now I'll go back to the float version to keep busy at the weekend! I
should say that the click remains when I render to disk - see attached png (
http://www.nabble.com/file/p19580977/Picture%2B1.png Picture+1.png I've
increased the amplitude to make it more visible).

There is one issue with the frameworks I should mention. If csound64 is
installed in framewoks64 as opposed to frameworks then csound~ max/msp
external cannot run using the double version. The shell looks for framewoks/
and gives an error message when trying to run csound within max.

I guess this could also be fixed by releasing two versions of csound~. I'll
have to email the creator and ask if that is possible.

Best
Peiman 



Victor Lazzarini wrote:
> 
> I can try your code on Monday in OSX csound 64 (I have been building one
> to consider how to package it, I'm thinking of supplying 5.09 with both
> frameworks, but have to think about how best to do it).
> 
> Victor
>   ----- Original Message ----- 
>   From: peiman khosravi 
>   To: csound@lists.bath.ac.uk 
>   Sent: Friday, September 19, 2008 8:58 PM
>   Subject: [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 
> 
>     I ran your CSD here and got no noticeable click at the end (I am using
>     floats version).
> 
>     Victor
>     ----- Original Message ----- From: "peiman" 
>     To: 
>     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
> 
> 
> 
>       
> 
>       
>       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
> 
> 
>       
> 
>       
> 
>       f 1 0 32769 10 1
> 
> 
>       t 0 60.0
> 
> 
>       i4.0 2.558442 20.3125 440 0 1.0 0.55980074
>       e
> 
>       
> 
>        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"
> 
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
> 

-- 
View this message in context: http://www.nabble.com/problem-with-envelope-%28Please-help-a-very-frustrated-composer%21%21%29-tp19577988p19580977.html
Sent from the Csound - General mailing list archive at Nabble.com.