Forums > Max For Live

[waveform~] and live.numbox

October 20, 2013 | 1:25 pm

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
October 21, 2013 | 12:48 am

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


October 21, 2013 | 1:51 am

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
October 21, 2013 | 5:39 am

here an example:

<code>

– Pasted Max Patch, click to expand. –

</code>


October 21, 2013 | 2:06 pm

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:)


Viewing 5 posts - 1 through 5 (of 5 total)