Skip to content

Fade Out at end of sound, rather than whole duration? #674

Open
@Patronics

Description

@Patronics

Is there any way to apply a fade-out to the end of a tone, rather than fading from the beginning through the end? This would better match the behavior of fade_in, which can be given a short duration to quickly fade the audio in. Providing fade_out a similarly short duration just leads to the tone rapidly fading out at the start, rather than doing a quick fade at the end.

Here's the project I'm working with using rodio, with the logic that almost works for the fading, except for the aforementioned issue with the fade_out. It's easier to hear the issue if you increase the TONE_DURATION constant to 5 seconds, where it's very clear the fade isn't behaving as desired.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions