I know that if I use soundfiler with the message "read -resize soundfile.wav array". I can get the size of the soundfile. However, this method is limited to short wavfile. I am trying to load 30 minutes long soundfile into pure data. I can read it with readsf (thank to the help of this forum).
However, readsf will not give me the size of the file. It will just bang at the end of the file.
I have found a clumsy way. but I am open to any better solution.
I am using readsf~ with very large file that I would like to start at different points.
So far I am using the message
"open filename.wav $1, 1" with a number box as input.
This works fine, but for some reason, I would like to separate this message into two:
"open filename.wav" and then a second message that says "start at sample 500"
I am struggling with the second part. The message "start" will always start from 0, as well as any other integer.
Is there another way?
I have created a patch that can be loaded and controlled via a canvas dialog (with a graph on parents activated). This method works nicely to edit numbers but not messages.
Basically, I want to have a patch in which the user can enter the name of a sound file to be loaded and send to readsf with that message:
"open file_name.wav $1, 1"
This will be triggered by a number box that will start the file at a specified place.
I cannot find a user-friendly way to edit the file_name (without editing the sub patch.)