#Is it possible to make seamless fade out and fade in music player like in spotify?

1 messages · Page 1 of 1 (latest)

edgy cargo
#

LIke i've tried with everything to get 5 seconds mix seamless fade in/out smooth transition beetwen songs like in spotify and all i get is:
song playing even if paused
mutiple songs playing

I will be very grateful if Anyone helps me.

I've been trying four hours and i can't get it to work. i don't know how to do it.

stuck cairnBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

azure edge
#

Crossfade is basically fading one song out and fading in another.

#

So you just have to modify the original audio playing to the user to fade in first couple of seconds and fade out last couple of seconds.

#

This can be done with some audio manipulation library, maybe something like howler.js or tone.js.

edgy cargo
#

I've tried with howler and I tried with audioContext both has problems

#

I've did a pretty good script for audioContext but it seems very glitchy

#

Like progress bar is going 4:00/3:01

Songs are playing multiple after some time