Hi,
I'm trying to build a sampler that can record up to 30 seconds of audio, but I can't seem to figure out how I can increase the sample size of my tables.
any help would be awesome.
Longer samples using tabwrite~ or tabread4~?
Hi,
I'm trying to build a sampler that can record up to 30 seconds of audio, but I can't seem to figure out how I can increase the sample size of my tables.
any help would be awesome.
if you want to load soundfiles a simple method is to "override" the default size (400000 elements) of the table during its creation wth the"-maxsize" flag. try [read -resize -maxsize 1323000 myFile.wav myTable(
where 1323000 is 30sec samples working at 44.1kHz resolution
-maxsize only works up to a few minutes. I forget exactly how long.. but I want to say it maxes out at around 5 minutes or so.
If you are working with longer files you need to resize the table/array directly before loading longer files. You can do this by sending a "resize" message to your table/array (see the above link).
Oops! Looks like something went wrong!