[PD] soundfiler is slow; readsf~ no filelength

Samuel Burt composer.samuel.burt at gmail.com
Sun Nov 6 14:38:11 CET 2011


I installed a new version of gridflow. I'm happy to say it is so much easier to do than it used to be.

Gridflow is giving me this message: 
error: method 'endian' not found for inlet 0 in class '#io.grid'

When I search for the error, Pd goes here:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Screen shot 2011-11-06 at 11.11.6  8.36 .png
Type: image/png
Size: 49406 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20111106/3e1fe83a/attachment-0001.png>
-------------- next part --------------

It highlights the receiving of $0-placeholder. Any idea why?

It isn't giving me the number of samples, yet. It just prints the error and outputs 0.

Samuel Burt





On Nov 4, 2011, at 2:29 , Mathieu Bouchard wrote:

> 
> Here's the actual attachment...
> 
> Le 2011-11-03 ? 21:18:00, Mathieu Bouchard a ?crit :
>> Le 2011-11-03 ? 19:04:00, Samuel Burt a ?crit :
>> 
>>> Thanks, Hans, but iemlib/soundfile_info is also giving me the error.
>>> soundfile_info_read-error:  /filepath/growl.oeoeoe.01.aif is no RIFF-WAVE-file
>> 
>> I made this patch (attached) that does it either the long way (for current releases of GridFlow) or the short way (with a feature I re-added to GridFlow today).
>> 
>> The trick is to open the file, skip the first 22 bytes, and then read the next 4 bytes as a 32-bit number with the most important byte first (?big-endian?).
>> 
>> However, because the command for reversing the order of the bytes was missing, I had to make my own converter by taking 4 separate bytes...
>> 
>> Anyway. Now you have something that works, and it's easy to add to your patches. It does basically the same thing that [soundfiler] does, but without reading the actual sound.
>> 
>> You need to install GridFlow from http://gridflow.ca/
> 
> ______________________________________________________________________
> | Mathieu BOUCHARD ----- t?l?phone : +1.514.383.3801 ----- Montr?al, QC<aiff.pd>



More information about the Pd-list mailing list