Forums > MaxMSP

Help with scaling/ratios, expr!

Apr 01 2012 | 4:20 pm


I’m designing a patch in which the length of the waveform~ display changes according to the speed of the groove~’s playback. I’m using a float connected to the sig~ object, as standard, to manipulate the playback speed, but I can not figure out how to use the expr object in a manner which works for me!

I basically want to say, for example:

When playback = 1, no change;
When playback = 0.5, *2;
When playback = 2, /2.

I want it to be adjustable to all numbers, not just to the above ones.

I know that it’s not too difficult but my math skills are poor!

Thanks : )

Apr 01 2012 | 4:27 pm

[expr 1/$f1] ?

Apr 01 2012 | 7:19 pm

Math skills might be poor, but this is a classic example of a GOOD way to post a forum query!

expected functionality
quick solutions

Apr 01 2012 | 8:55 pm

Thanks very much guys! I can’t believe I couldn’t figure this out!

: )

Apr 03 2012 | 6:28 am

see also [gizmo~] so you can decide how much (if any) you want the pitch to change when you change the [sig~] rate…another dimension to play with…

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

Forums > MaxMSP