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.
On Fre, 2013-02-01 at 02:58 -0200, Alexandre Torres Porres wrote:Oh, I never tried to change the sampling rate while Pd is running.
> 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?
Interesting. Thanks for bringing it up!
It seems so, yes. Actually, you can intercept the settings you configure
> anyway, can you change the sample rate from patch via messages?
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 ;-)
[iemlib/soundfile_info]
> 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?
(works for WAV files)
Roman
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list