fade_inout

Function
fade_inout(
    states: State | list[State],
    at: float | list[float] | None = None,
    hold_duration: float | None = None,
    fade_duration: float | None = None
) -> list[KeyState]

Fade in, hold, then fade out.

Parameters

states
State to fade, or list of states.
at
Center time of the hold, or list of times (same length as states).
hold_duration
Duration of the hold period.
fade_duration
Duration of each fade (in and out).