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
#N canvas 0 0 609 313 10;
#X obj 42 137 #in;
#X obj 42 157 #to_f;
#X floatatom 42 177 8 0 0 0 - - -;
#X obj 157 195 #in;
#X obj 157 235 #to_l;
#X obj 157 215 #inner (24 16 8 0) \, op <<;
#X msg 52 25 symbol /home/matju/lib/pd-extended/doc/sound/bell.aiff
;
#X floatatom 157 255 8 0 0 0 - - -;
#X text 167 143 other versions of GridFlow;
#X text 48 84 GridFlow 9.14 \, 3 nov 2011 and later;
#X msg 157 162 open grid \$1 \, headerless 4 \, type b \, seek_byte
22 \, bang \, close;
#X msg 42 104 open grid \$1 \, headerless \, type i \, endian big \,
seek_byte 22 \, bang \, close;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 3 0 5 0;
#X connect 4 0 7 0;
#X connect 5 0 4 0;
#X connect 6 0 10 0;
#X connect 6 0 11 0;
#X connect 10 0 3 0;
#X connect 11 0 0 0;
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to