Forums > MaxMSP

to the power of power of calculations

April 29, 2011 | 11:03 am

hi i’m trying to get a slider to half a buffer loop size at each step so its only output values can be 2000, 1000, 500, 250, 125 etc. i figure i need a calculation that divides the lenght by 2 to the power of the output of the slider but not sure how to do this in max. can anybody shed some light on this? thanks



EMV
April 29, 2011 | 11:23 am

Here’s two ways in which you can do this:

– Pasted Max Patch, click to expand. –

April 29, 2011 | 11:26 am

thanks mate thats perfect


April 29, 2011 | 11:27 am

[pow] will work

– Pasted Max Patch, click to expand. –

hth
rob

edit: oops, too late. it’s a busy forum :)
like the [expr] better …


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