csound api method for sample-rate overwrite
Date | 2015-06-27 20:46 |
From | peiman khosravi |
Subject | csound api method for sample-rate overwrite |
Attachments | None None |
Hello, I've seen "MYFLT CSOUND_PARAMS::sample_rate_override" in the api documentation but cannot find any examples of it being used in java. Any idea really appreciated. Many Thanks Peiman |
Date | 2015-06-27 20:55 |
From | Victor Lazzarini |
Subject | Re: csound api method for sample-rate overwrite |
best to use -r as in csoundSetOption(csound, “-r22050”); to avoid pointers etc ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 27 Jun 2015, at 20:46, peiman khosravi |
Date | 2015-06-28 09:31 |
From | peiman khosravi |
Subject | Re: csound api method for sample-rate overwrite |
Attachments | None None |
Thanks Victor, The problem is that if I set the -r flag to anything other than the sr defined in the csd header, compile fails. I've tried --sample-rate too and the same thing happens. So I tried it in the terminal and this is the error I get: sr = 44100, kr = 4800, ksmps = 9.1875 error: invalid ksmps value So it looks like that kr is not changed accordingly, relative to the new sr. I suppose it's not a bug really but perhaps worth making a note in the manual entry for the -r flag. It works when ksmps is also stated explicitly with the ksmps flag. Thanks Peiman On 27 June 2015 at 20:55, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote: best to use -r as in |
Date | 2015-06-28 09:52 |
From | Victor Lazzarini |
Subject | Re: csound api method for sample-rate overwrite |
Attachments | None None |
This is because if you override one, the system does not try to second guess what you want. So you need to override both if their ratio is not integral. If you do that, it will work. Note that this would be the case whatever method you used to set the sr. Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2015-06-28 13:25 |
From | peiman khosravi |
Subject | Re: csound api method for sample-rate overwrite |
Attachments | None None |
Thanks Victor that makes sense. All working fine! On 28 June 2015 at 09:52, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|