Help with scaling/ratios, expr!

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!