[waveform~] and live.numbox

kmll's icon

When creating a [waveform~] object for a buffer the numberboxes connected to outlet 3 and 4 is automatically adjusted to the length of the sample in the buffer. However I want to use a live.numbox to map a controller to these numbers but the live.numbox is not scaled automatically. Any suggestions on how to workaround this?

Jan M's icon

Hi KMLL,
Live parameters cannot change range dynamically. However you can use live.numboxes with a normalized range (i.e. 0. - 1.) and scale the output according to your buffer range.

j

kmll's icon

Thanks for the reply Jan! This sounds like a good workaround:) However I am not quite sure how to accomplish this. Hope it is OK that I ask if you can please elaborate how I can accomplish this scaling?

Jan M's icon
Max Patch
Copy patch and select New From Clipboard in Max.

here an example:

kmll's icon

Thank you so much for the example. I was not aware of the info~ object and I think it will be very useful in the future:)