Simple Fade

Suggestions/requests/ideas for RuneAudio core features and functions

Simple Fade

Postby Stwert » 21 Oct 2014, 02:05

I don't know how hard this would be to implement, but one of my favorite features (if not the favorite feature) of Winamp is the simple fade in and out when pausing, resuming, and stopping tracks. Even when I just hit the X and close the program it manages to fade away gently. Most audio players just do the harsh abrupt stop. So that's my humble request.

Just to be more specific, in case it wasn't clear, I believe my desired behaviour would be:
On play, start with no fade.
On pause, fade from current volume to 0 over 0.7 seconds.
On resume, fade from 0 to previous volume over 0.7 seconds.
On track finishing and next track starting, no fade.
On stop, fade from current volume to 0 over 0.7 seconds.

I don't know how long the Winamp fade is, but I figured 0.7 seconds felt about right, albeit overly specific.
Stwert
 
Posts: 42
Joined: 19 Sep 2014, 01:58

Re: Simple Fade

Postby bleu34 » 01 Dec 2014, 10:03

+1 for this one.
And not only for play/pause, but also fadein/out possibility when changing from one song to another.
bleu34
 
Posts: 7
Joined: 26 Sep 2014, 09:02

Re: Simple Fade

Postby ACX » 01 Dec 2014, 12:05

User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Simple Fade

Postby Stwert » 01 Dec 2014, 15:00

I'm less interested in crossfading between songs, I find that really doesn't work for albums that are designed to be gapless and transition smoothly from one song to another. My interest (though I don't speak for everyone of course) is to have a fade out/in on pausing/resuming and stopping.
Stwert
 
Posts: 42
Joined: 19 Sep 2014, 01:58

Re: Simple Fade

Postby ACX » 02 Dec 2014, 00:49

Then I think that the only solution is to look for a MPD plugin...
User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Simple Fade

Postby aj78 » 03 Dec 2014, 00:45

aj78
 
Posts: 51
Joined: 29 Oct 2014, 20:42

Re: Simple Fade

Postby ACX » 03 Dec 2014, 01:36

You should "intercept" the needed commands (play, pause, stop...) adding some conditionals just before this line:
https://github.com/RuneAudio/RuneUI/blo ... ex.php#L72
and adding the execution your bash scripts inside them.
Of course this would only work while you control MPD through the RuneUI, not if you do that with an external MPD client.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Simple Fade

Postby aj78 » 04 Dec 2014, 01:09

Thanks for the pointer. This is my first time coding in php (or working on a browser app) so there's quite a learning curve! I've got a solution that works now. It's a bit rough around the edges and I don't like relying on the bash script so I'll convert the code into php and do a bit of polishing before I submit it (I think the fade behaviour should be optional and non-default, for one thing). Perhaps once I've got it sorted (and improved my php!) there'll be some other junior jobs I can help with.
aj78
 
Posts: 51
Joined: 29 Oct 2014, 20:42

Re: Simple Fade

Postby ACX » 04 Dec 2014, 02:19

Good, any kind of help is truly welcome.
And yes, such feature should absolutely be optional and configurable.
User avatar
ACX
RuneAudio co-founder
 
Posts: 1693
Joined: 29 Nov 2013, 02:25
Location: Udine, Italy

Re: Simple Fade

Postby Stwert » 04 Dec 2014, 16:21

Cool, I'm glad someone is interested and working on this. Thanks aj78!
Stwert
 
Posts: 42
Joined: 19 Sep 2014, 01:58

support RuneAudio Donate with PayPal

Next

Return to Feature request

Who is online

Users browsing this forum: No registered users and 31 guests