You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Yes you can but its not particularly clear how to do that. It could do with an example, I'll go ahead and add one.
Looking into it yes its possible by duplicating your source and using skip_duration and take_duration. I found that a little troublesome especially since skip duration takes some time since it literally skips every single sample until its gets to the right point.
I wrote a new source #675 for this, this also adds an example for fadeout_end. It does still need review and discussion by the other maintainers.
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.
The text was updated successfully, but these errors were encountered: