[Csnd] input and tuning of wguide1
| Date | 2011-04-08 06:01 |
| From | Stefan 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> |
| Date | 2011-04-09 11:57 |
| From | Joseph Sanger |
| Subject | Re: [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: > > |
| Date | 2011-04-09 13:56 |
| From | Victor Lazzarini |
| Subject | Re: [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: >> >> |