yep, that does the trick :) now you can set pd's sample rate from the workings of the patch while pd is runing!!! according to some wav file at least, other file types would be nice.
I say that checking sample rate is a cool and possible update to vanilla objects like [readsf~]2s or [soundfiler]. At least [readsf~] since its sibling [writesf~] gets a flag to tell about the file sample rate, how complicated or doable would that be miller?
thanks
2013/2/1 Roman Haefeli reduzent@gmail.com
On Fre, 2013-02-01 at 02:58 -0200, Alexandre Torres Porres wrote:
Hi there, I see now you can easliy change pd's sample rate from preferences while the patches are running, this is a new thing, isn't it?
Oh, I never tried to change the sampling rate while Pd is running. Interesting. Thanks for bringing it up!
anyway, can you change the sample rate from patch via messages?
It seems so, yes. Actually, you can intercept the settings you configure to the audio dialog simply with a:
[r pd] | [print]
Those same messages can be sent to [s pd] in order to change audio settings.
When hitting apply, I get:
audio-dialog 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 48000 25 -1 64
(To guess which parameter represents the sampling rate is left to the reader ;-)
And also, can you learn, somehow, the sample rate from a sound file? Other softwares seem to do that easily, is there an object in Pd for that? Noy in vanilla I believe, right?
[iemlib/soundfile_info]
(works for WAV files)
Roman
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list