albertz / music-player

Music player - endlessly plays your music
http://albertz.github.io/music-player/
BSD 2-Clause "Simplified" License
492 stars 59 forks source link

fading #31

Open albertz opened 11 years ago

albertz commented 11 years ago

Fading in, fading out, mixing together. I am thinking about 3 options:

The fading itself is just linear? At start of fadeOut, it is 100% and at the end, it is 0%. Or maybe some sigmoid function? Or Sine? Or configurable? Maybe the dB linear, so it becomes logarithmic.

Maybe also MixRamp (see also here)? mpd crossfade code cross_fade_calc with MixRamp info / mixramp_interpolate, initial mpd MixRamp commit, mpd pcm mixing code, mixramp.c analyzing / tagger code