Help with scaling/ratios, expr!

Apr 1, 2012 at 4:20pm

Help with scaling/ratios, expr!

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

#62707
Apr 1, 2012 at 4:27pm

[expr 1/$f1] ?

#226457
Apr 1, 2012 at 7:19pm

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

#226458
Apr 1, 2012 at 8:55pm

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

: )

#226459
Apr 3, 2012 at 6:28am

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…

#226460

You must be logged in to reply to this topic.