yep, that does the trick :) now you can set pd&#39;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.<div><br></div><div>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?</div>
<div><br></div><div>thanks</div><div><br></div><div><br><br><div class="gmail_quote">2013/2/1 Roman Haefeli <span dir="ltr">&lt;<a href="mailto:reduzent@gmail.com" target="_blank">reduzent@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Fre, 2013-02-01 at 02:58 -0200, Alexandre Torres Porres wrote:<br>
&gt; Hi there, I see now you can easliy change pd&#39;s sample rate from<br>
&gt; preferences while the patches are running, this is a new thing, isn&#39;t<br>
&gt; it?<br>
<br>
</div>Oh, I never tried to change the sampling rate while Pd is running.<br>
Interesting. Thanks for bringing it up!<br>
<div class="im"><br>
&gt; anyway, can you change the sample rate from patch via messages?<br>
<br>
</div>It seems so, yes. Actually, you can intercept the settings you configure<br>
to the audio dialog simply with a:<br>
<br>
[r pd]<br>
|<br>
[print]<br>
<br>
Those same messages can be sent to [s pd] in order to change audio<br>
settings.<br>
<br>
When hitting apply, I get:<br>
<br>
audio-dialog 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 48000 25 -1 64<br>
<br>
(To guess which parameter represents the sampling rate is left to the<br>
reader ;-)<br>
<div class="im"><br>
&gt; And also, can you learn, somehow, the sample rate from a sound file?<br>
&gt; Other softwares seem to do that easily, is there an object in Pd for<br>
&gt; that? Noy in vanilla I believe, right?<br>
<br>
</div>[iemlib/soundfile_info]<br>
<br>
(works for WAV files)<br>
<br>
Roman<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br></div>