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?
anyway, can you change the sample rate from patch via messages?
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?
thanks Alex
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
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
On 02/01/2013 01:34 PM, Alexandre Torres Porres wrote:
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.
there's also my "mediasettings" library (don't know about the inclusion in PdX) that allows to control these things without having to wonder about the weird syntax of the "audio-dialog" message. (and you don't have to worry about the _other_ settings if you only want to change the samplerate)
fgamdrs IOhannes
On 02/01/2013 09:45 AM, IOhannes zmölnig wrote:
On 02/01/2013 01:34 PM, Alexandre Torres Porres wrote:
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.
there's also my "mediasettings" library (don't know about the inclusion in PdX) that allows to control these things without having to wonder about the weird syntax of the "audio-dialog" message. (and you don't have to worry about the _other_ settings if you only want to change the samplerate)
fgamdrs IOhannes
Its included in Pd-extended 0.43.4
.hc