Csound Csound-dev Csound-tekno Search About

[Csnd] Re: ++SPAM++ Re: Re: wgpluck2 and sr kr problem

Date2009-02-06 13:59
Fromvictor
Subject[Csnd] Re: ++SPAM++ Re: Re: wgpluck2 and sr kr problem
Well, the short decay has to do with the filter cutoff frequency
being lower.

Victor
----- Original Message ----- 
From: "peiman khosravi" 
To: 
Sent: Friday, February 06, 2009 1:55 PM
Subject: [Csnd] ++SPAM++ Re: Re: wgpluck2 and sr kr problem


> Thanks for the reply Victor. The difference I get is that with sr =
> 16000 & kr = 160 there is a short decay so that the tone ends before
> the note-end. But with sr = 44100 the decay is much longer and the
> note is interrupted with a click at the end. Also there is a click at
> the start of the note with sr = 44100. Picture 1 shows the 16000
> version and picture 2 the 44100.
>
> Thanks
> Peiman
>
>
>
> 2009/2/6 victor :
>> I think this is not a bug. I am guess here that wgpluck2  uses an
>> averaging filter in its waveguide loop (I have not looked at the code).
>> That filter has a cutoff frequency that is SR-dependent (at 1/4 SR).
>> So if you change the SR, the tone will change too.
>>
>> Or is there anything else I did not notice?
>>
>> Victor
>> ----- Original Message ----- From: "peiman khosravi"
>> 
>> To: 
>> Sent: Friday, February 06, 2009 1:21 PM
>> Subject: [Csnd] wgpluck2 and sr kr problem
>>
>>
>>> Hello,
>>>
>>> I don't know if I'm missing something. Changing the global sr and kr
>>> seems to make a big difference to the resulting sound from this simple
>>> csd. Try changing sr to 44100 and kr to 10 and the resulting output
>>> doesn't seem right. Is this a bug? I'm on os x intel.
>>>
>>> Best
>>> Peiman
>>>
>>> 
>>> 
>>> 
>>> 
>>>
>>> sr = 16000
>>> kr = 160
>>> nchnls = 1
>>>
>>> instr 1
>>>  iplk = 0.75
>>>  kamp = 30000
>>>  icps = p4;220
>>>  kpick = 0.75
>>>  krefl = 0.5
>>>
>>>  apluck wgpluck2 iplk, kamp, icps, kpick, krefl
>>>
>>>  out apluck
>>> endin
>>> 
>>>
>>> 
>>> ; Play Instrument #1 for two seconds.
>>> ;f0 86400
>>>
>>> i1 0 2 300
>>>
>>> e
>>>
>>> 
>>>
>>> 
>>>
>>>
>>> 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" 


Date2009-02-06 14:06
Frompeiman khosravi
Subject[Csnd] Re: Re: ++SPAM++ Re: Re: wgpluck2 and sr kr problem
I see, thanks. I've just changed the krefl setting and that seems to
do it. Makes sense now.

Best
Peiman

2009/2/6 victor :
> Well, the short decay has to do with the filter cutoff frequency
> being lower.
>
> Victor
> ----- Original Message ----- From: "peiman khosravi"
> 
> To: 
> Sent: Friday, February 06, 2009 1:55 PM
> Subject: [Csnd] ++SPAM++ Re: Re: wgpluck2 and sr kr problem
>
>
>> Thanks for the reply Victor. The difference I get is that with sr =
>> 16000 & kr = 160 there is a short decay so that the tone ends before
>> the note-end. But with sr = 44100 the decay is much longer and the
>> note is interrupted with a click at the end. Also there is a click at
>> the start of the note with sr = 44100. Picture 1 shows the 16000
>> version and picture 2 the 44100.
>>
>> Thanks
>> Peiman
>>
>>
>>
>> 2009/2/6 victor :
>>>
>>> I think this is not a bug. I am guess here that wgpluck2  uses an
>>> averaging filter in its waveguide loop (I have not looked at the code).
>>> That filter has a cutoff frequency that is SR-dependent (at 1/4 SR).
>>> So if you change the SR, the tone will change too.
>>>
>>> Or is there anything else I did not notice?
>>>
>>> Victor
>>> ----- Original Message ----- From: "peiman khosravi"
>>> 
>>> To: 
>>> Sent: Friday, February 06, 2009 1:21 PM
>>> Subject: [Csnd] wgpluck2 and sr kr problem
>>>
>>>
>>>> Hello,
>>>>
>>>> I don't know if I'm missing something. Changing the global sr and kr
>>>> seems to make a big difference to the resulting sound from this simple
>>>> csd. Try changing sr to 44100 and kr to 10 and the resulting output
>>>> doesn't seem right. Is this a bug? I'm on os x intel.
>>>>
>>>> Best
>>>> Peiman
>>>>
>>>> 
>>>> 
>>>> 
>>>> 
>>>>
>>>> sr = 16000
>>>> kr = 160
>>>> nchnls = 1
>>>>
>>>> instr 1
>>>>  iplk = 0.75
>>>>  kamp = 30000
>>>>  icps = p4;220
>>>>  kpick = 0.75
>>>>  krefl = 0.5
>>>>
>>>>  apluck wgpluck2 iplk, kamp, icps, kpick, krefl
>>>>
>>>>  out apluck
>>>> endin
>>>> 
>>>>
>>>> 
>>>> ; Play Instrument #1 for two seconds.
>>>> ;f0 86400
>>>>
>>>> i1 0 2 300
>>>>
>>>> e
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>>
>>>> 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"
>
>
>
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>