Print Buffer Size

t.a's icon

Hello,

I have a rather simple question but I can't figure it out. I want to print the buffer size of every new sample I load. This can be done if I open the buffer window and click with my mouse on the end of the waveform. Is there a way to make it automatically? Each time I load a new sample into the buffer to get the new buffer size on the print window

thanks in advance

Matthias's icon

You should check out the info~ object. This provides you with lots of information about the referenced buffer~ object.

buffer~ has an outlet which outputs a bang when the file read operation is complete (rightmost outlet, if I'm not mistaken). Hook that one up to the first inlet of the info~ object to trigger information output.

All the best,
Matthias

t.a's icon

Thanks Matthias that was exaclty what I was looking for ;)