ofSoundPlayer - using the getPosition() to control the size of an image?

Hello fellow openframeworks users

I have a rotating image that I want to increase in size as the the sound playing gets further to the end of playing

I know getPosition() returns the current position of the playhead as a float between 0.0 and 1.0.

What C++ topics should I looking into to get this to work?

I suppose I want to get the returned float value to control the int width and int height of the image?

Any pointers would be great

Am relatively new to C++ and openframeworks

Cheers again!