how can i display the length (in ms) of a loaded sample into buffer~?
[buffer~ sample1 10000]
i wan’t to know and to have displayed what the sample length of the loaded sample is.
Look at [info~ sample1]
now i get the sample length set in buffer. in this case 10000 ms.
the sample loaded is shorter, i wan’t that length. wich is variable offcourse because of different samples.
if i don’t specify a length in buffer~ i getthe actual length of the loaded sample so that’s solved but the problem is that if i change sample info doesn’t change. it only outputs info of the first loaded sample.
use the "replace" message, not "read".
> if i don’t specify a length in buffer~ i getthe actual length of the loaded
> sample so that’s solved but the problem is that if i change sample info
> doesn’t change. it only outputs info of the first loaded sample.
If you use the message "read 0 -1" to load a file into [buffer~] it resizes itself automatically, which you will be able to see in [info~]. Have a look in the [buffer~] reference file to see why.
thanks, didn’t think about that. replace did the job.
C74 RSS Feed | © Copyright Cycling '74