- #1
VMail
- 11
- 0
This more of a maths question rather than a physics one, but I do remember doing something similar is my physics course.
Basically I trying to write a fade in and fade out function
for a volume control but I am stuck on the maths part. Thats where I
need you.
I've tryed a linear fade, but that does not sound good
so y = volume (0-100)
and x = time (0.5)
time is fixed to 0.5sec but can alter slightly if needed
volume will be one value from 0 to 100, but I don't know what the
volume will be until the function is needed
Basically I trying to write a fade in and fade out function
for a volume control but I am stuck on the maths part. Thats where I
need you.
I've tryed a linear fade, but that does not sound good
so y = volume (0-100)
and x = time (0.5)
time is fixed to 0.5sec but can alter slightly if needed
volume will be one value from 0 to 100, but I don't know what the
volume will be until the function is needed