Csound Csound-dev Csound-tekno Search About

[Csnd] input and tuning of wguide1

Date2011-04-08 06:01
FromStefan Thomas
Subject[Csnd] input and tuning of wguide1
Dear community,
I have two questions about wguide1.
The first: in the below quoted example, when playing octaves, it sounds slightly detuned. Is it a bug or has it to do with the excitation noise?
The second: How can I try to imitate different kinds of strings? Which excitation noise should I choose if I e.g. would like to imitiate a long fat or a short thin string?
Here's my short example:

 <CsoundSynthesizer>
;<CsOptions>
;</CsOptions>
; ==============================================
<CsInstruments>

sr    =    48000
ksmps     =     100
nchnls    =    2
0dbfs    =    1
gisine ftgen 0,0,2^10, 10, 1
instr 1   
iamp         ampmidi 1
icps         cpsmidi
anoise         rand iamp
aenv         linseg    0, 0.001, 1, 0.003, 0
ashortnoise    = aenv*anoise
asig wguide1 ashortnoise, icps, 8000, 0.99999
outs asig, asig

endin

</CsInstruments>
; ==============================================
<CsScore>
f 0 36

</CsScore>
</CsoundSynthesizer>



Date2011-04-09 11:57
FromJoseph Sanger
SubjectRe: [Csnd] input and tuning of wguide1
Hello,

RE: the first question,

I'm not an expert on this - and I haven't tried the example (not on 
music computer) - but I believe that waveguides' tuning accuracy is 
dependent on the sample rate. By which I mean that the wavelength is 
always quantized to sample accuracy, as the delay length is measured in 
samples.

It doesn't make much difference until you get to the higher notes, which 
get progressively more and more out of tune. Could this be what you're 
experiencing?

Hopefully someone with greater knowledge can step in and confirm that 
I'm right, and maybe suggest a solution...

Joe


On 08/04/11 14:01, Stefan Thomas wrote:
> Dear community,
> I have two questions about wguide1.
> The first: in the below quoted example, when playing octaves, it 
> sounds slightly detuned. Is it a bug or has it to do with the 
> excitation noise?
> The second: How can I try to imitate different kinds of strings? Which 
> excitation noise should I choose if I e.g. would like to imitiate a 
> long fat or a short thin string?
> Here's my short example:
>
> 
> ;
> ;
> ; ==============================================
> 
>
> sr    =    48000
> ksmps     =     100
> nchnls    =    2
> 0dbfs    =    1
> gisine ftgen 0,0,2^10, 10, 1
> instr 1
> iamp         ampmidi 1
> icps         cpsmidi
> anoise         rand iamp
> aenv         linseg    0, 0.001, 1, 0.003, 0
> ashortnoise    = aenv*anoise
> asig wguide1 ashortnoise, icps, 8000, 0.99999
> outs asig, asig
>
> endin
>
> 
> ; ==============================================
> 
> f 0 36
>
> 
> 
>
>

Date2011-04-09 13:56
FromVictor Lazzarini
SubjectRe: [Csnd] input and tuning of wguide1
I will need to look at the code to see, but it's possible that  
waveguides are not fine-tuned using an interpolation filter. Streson  
is a
waveguide with an allpass interpolation filter.

Victor
On 9 Apr 2011, at 11:57, Joseph Sanger wrote:

> Hello,
>
> RE: the first question,
>
> I'm not an expert on this - and I haven't tried the example (not on  
> music computer) - but I believe that waveguides' tuning accuracy is  
> dependent on the sample rate. By which I mean that the wavelength is  
> always quantized to sample accuracy, as the delay length is measured  
> in samples.
>
> It doesn't make much difference until you get to the higher notes,  
> which get progressively more and more out of tune. Could this be  
> what you're experiencing?
>
> Hopefully someone with greater knowledge can step in and confirm  
> that I'm right, and maybe suggest a solution...
>
> Joe
>
>
> On 08/04/11 14:01, Stefan Thomas wrote:
>> Dear community,
>> I have two questions about wguide1.
>> The first: in the below quoted example, when playing octaves, it  
>> sounds slightly detuned. Is it a bug or has it to do with the  
>> excitation noise?
>> The second: How can I try to imitate different kinds of strings?  
>> Which excitation noise should I choose if I e.g. would like to  
>> imitiate a long fat or a short thin string?
>> Here's my short example:
>>
>> 
>> ;
>> ;
>> ; ==============================================
>> 
>>
>> sr    =    48000
>> ksmps     =     100
>> nchnls    =    2
>> 0dbfs    =    1
>> gisine ftgen 0,0,2^10, 10, 1
>> instr 1
>> iamp         ampmidi 1
>> icps         cpsmidi
>> anoise         rand iamp
>> aenv         linseg    0, 0.001, 1, 0.003, 0
>> ashortnoise    = aenv*anoise
>> asig wguide1 ashortnoise, icps, 8000, 0.99999
>> outs asig, asig
>>
>> endin
>>
>> 
>> ; ==============================================
>> 
>> f 0 36
>>
>> 
>> 
>>
>>
>
>
> -- 
> Joseph Sanger
> Blueberry Eikaiwa
> www.bbeikaiwa.com
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"