Smooth volume fades over duration
- Handle a PATCH request to smoothly fade the volume over a length of time.
PATCH /instances/instance-1/sources/audio-player-1
{
fade: {
to: 0.00,
duration: 1.00, // seconds
type: "linear" // idea to add later: multiple ramp shapes
}
}
Ideas for the future
-
Include a few "ramping" shapes?
-
Like curve ("valley", parabolic?), inverse curve ("hill", falls off quickly), and linear.
-
Others? Or better ideas for shapes?
-
Edited by Travis