Is it possible to create very large arrays without -maxsize from [soundfiler] (for a few minutes of audio, for example)?
-
Use -maxsize for arrays without [soundfiler]?
-
@Jona In 32-bit Pd I found that the maximum arraysize was 1.682e+007 and I don't think that could be increased using -maxsize.
That gave a maximum array length of about 380 seconds at 44.1K.
If using an onset with [tabread4~] accuracy was apparently good (exact integer of index) up to 8 million samples (190 seconds at 44.1K) as the index was set with 64-bit precision.In 64-bit Pd I remember Miller writing that the arraysize could be 4 billion but that is a pretty vague memory....... and the onset would still only be accurate to 190 seconds.
And maybe the -maxsize flag is required to extend the array beyond the old 32-bit limit..... but I have not experimented with that.I have only used -maxsize to dice very long audio files with [soundfiler] in 32-bit Pd...... then playing the parts sequentially.
And it is a flag understood by [soundfiler] only....... I cannot find a reference to it anywhere else in Pd (by text search within files).
David. -
@whale-av thank you. Yes, something like 380 seconds seems to be the limit...
-
I am pretty sure the need for using maxsize was removed a few versions back. But I might remeber incorrectly.
But since PD is 32 bit there will be some issues with reading back files larger than 190 seconds.
Here is a pretty good explanation why it is like that by Katjaa:
EDIT:
Hmm, for some reason the YT link does not work. Admin, heeeelp!You can for now go to youtube and search for " Precision matters" and watch the first video, by instantdecomposer.
-
Actually I was sending the array as a list and didnt set the array directly (with ofxPd), which was the problem. Now it is possible to load large arrays without -maxsize:
https://forum.pdpatchrepo.info/topic/13803/emscriptenaudioplayer