hi,
How can i recive the sample lenght from the soundfiler in a table.
what could i write in the properties window of the table in order to have
the value automaticaly.
thanks for your answer ++
Recive the sample lenght from soundfiler in a table
hi,
How can i recive the sample lenght from the soundfiler in a table.
what could i write in the properties window of the table in order to have
the value automaticaly.
thanks for your answer ++
When you load a file using [soundfiler], it gives you the size of the file in samples. If you need the table to automatically resize the table to fit the sample, use the -resize flag:
[read -resize mysound.wav myarray1(
|
[soundfiler]
|
[0\ <--size in samples
Ok thank you so much
Technically soundfiler returns the number of samples it filled in the table. So if you don't use the -resize flag it will only return the size of the file if it is larger or of the same size as the table. If the table is smaller it'll return the table's size.
It's a tricky distinction.
Oops! Looks like something went wrong!