<div dir="ltr">Hey Oliver,<div><br></div><div>This is a neat trick, however for my purposes [soundfle_info] was being used to extract both the sample rate and sample length to calculate the duration of the file. </div><div><br></div><div>Looks like in order to switch to [soundfiler] I'd have to load the whole file to memory regardless, as the `-skip 1` flag means the left outlet (sample length) of [soundfiler] only outputs '1'.</div><div><br></div><div>Cheers,</div><div>Joe</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 12 May 2018 at 19:37, Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">a new flag for [soundfiler] will make this easier without the need of a dummy buffer <div><br></div><div>see <a href="https://github.com/pure-data/pure-data/pull/193" target="_blank">https://github.com/pure-data/<wbr>pure-data/pull/193</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2018-05-12 14:06 GMT-03:00 oliver <span dir="ltr"><<a href="mailto:oliver@klingt.org" target="_blank">oliver@klingt.org</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Joe White wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
I recently spent a bit of time tracking down why a patch wasn't loading a couple of externals in a windows application that embeds libpd.<br>
<br>
The patch was using /vbap/ [0] and /soundfile_info/ from iemlib [1].<br>
</blockquote>
<br>
hi,<br>
<br>
just the other night i was hacking together a [sound_file] info alternative with purely vanilla objects WITHOUT loading an entire file into RAM.<br>
<br>
the method is basically to use [soundfiler] to load 1 sample of a file into a table with a -skip message, and recalculate the skip position until [soundfiler]'s left outlet outputs 1 (instead of 0).<br>
<br>
all of [soundfile_info]'s other values are also output from [soundfiler]'s right outlet as of PD version 0.48.<br>
<br>
it takes a tad longer than [soundfile_info] to output the soundfile's length, but it's acceptable imho. plus you can use .aiff too !<br>
<br>
best<span class="m_-6756203766726994883HOEnZb"><font color="#888888"><br>
<br>
oliver<br>
</font></span><br></div></div>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/li<wbr>stinfo/pd-list</a><br>
<br></blockquote></div><br></div>
<br>______________________________<wbr>_________________<br>
<a href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/<wbr>listinfo/pd-list</a><br>
<br></blockquote></div><br></div>