ok… I try to describe what I want to make.
I plan to create a special door sound system…
I want that the player is able to rotate a door via mouse imput (back and forward).
the door can rotate … let us say 120° degrees. that is the maximum. minimum is 0° degrees.
what I want to achieve is that there should be a squeaking sound BUT it should not play the sound fully when I grab the door and move it. it should play with the speed that the door rotates (audio pitch) + it should be perfectly fit with the door rotation degrees.
that means I would need normalized variables. like if the sound is at normal speed 3 seconds long. then the sound time (or position) normalized would be:
0.00 seconds = 0
1.50 seconds = 0.5
3.00 seconds = 1
and the door rotation degree normalized would be:
0° = 0
60° = 0.5
120° = 1
SOOOO…
Is it somehow possible to normalize the sound like I wrote above that it plays with the normalized speed?