Re: [Csnd] Another Android Question
Date | 2013-02-05 20:55 |
From | "Art Hunkins" |
Subject | Re: [Csnd] Another Android Question |
Then is setting a .csd's SR to that of an input
file as simple as:
isr filesr "1.wav"
sr = isr
in the orchestra header?
If so, would it be possible to set the .csd SR, for
example, to the larger of two input files SR's with this code:
isr1 filesr "1.wav"
isr2 filesr "2.wav" isr = (isr1 >= isr2? isr1: isr2)
sr = isr
We'd like to set our .csd SR equal to the highest input file SR.
Art Hunkins
|
Date | 2013-02-05 22:12 |
From | Victor |
Subject | Re: [Csnd] Another Android Question |
No, because before filesr is run, the sampling rate must be set. What you can do is run Csound with filesr, report the sr back to the app, then start csound again with the desired sr.
|
Date | 2013-02-06 00:42 |
From | Roger Kelly |
Subject | Re: [Csnd] Another Android Question |
Interesting problem, it's basically that you are trying to output a file using 'fout' at the same sample rate or the source file? Is there any change srconv is packaged up as part of csoundlib on Android? If so you could just post process the file also and convert the sample rate. On Tue, Feb 5, 2013 at 4:12 PM, Victor <Victor.Lazzarini@nuim.ie> wrote:
|