to the power of power of calculations

caunterstrike's icon

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's icon
Max Patch
Copy patch and select New From Clipboard in Max.

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

caunterstrike's icon

thanks mate thats perfect

ergaster's icon

[pow] will work

Max Patch
Copy patch and select New From Clipboard in Max.

hth
rob

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