Help with scaling/ratios, expr!

goingdeaf's icon

Hi,

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

Roman Thilenius's icon

[expr 1/$f1] ?

brendan mccloskey's icon

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

problem
+
expected functionality
=
quick solutions

goingdeaf's icon

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

: )

seejayjames's icon

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...