Skip to content

fade-in/fade-out effect on pause/unpause #76

Description

@mokurin000

This would make the sound more natural than suspend suddenly

Accordingly, we could implement ease-in-out as:

fade in: $\frac{1}{2}(1 - \cos(x\pi))$
fade out: $\frac{1}{2}(1 + \cos(x\pi))$

Which gives curve like:

Image

Also, you may refer to wikipedia for detailed modern approach. cosine function is just the easiest to implement

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions