[prev in list] [next in list] [prev in thread] [next in thread] 

List:       amarok
Subject:    Re: Fade out on pause, Fade in from play
From:       "Zach Dwiel" <zdwiel () wustl ! edu>
Date:       2007-07-24 16:58:52
Message-ID: fdd7f7540707240958n7d209816yb223d45bbeb6cbb0 () mail ! gmail ! com
[Download RAW message or body]

Hey, I was thinking about this feature also.  However, it seems like
it could also be annoying in cases where you want precise control over
the timing of the pause.  In most cases, it would be a nice feature.
This could be resolved by starting playback slightly ahead of the time
that you hit pause:

              time
pre-pause  |---------|...          |
pause      |         |             |
post-pause |      ...|-------------|

|   is the pause
... is fading
--- is playing

This may be far more complicated than necessary...

Also, it might be worth considering a scenario where for some reason
(had the volume up way too loud) you want a fast way to stop the sound
now.  If both pause and stop both have a fade, there would be no good
way to do this in Amarok - you would need to turn off your speakers or
use other master volume level.

It would be nice to figure out a good way to include this feature.
There have been many times where I wished it was available.

On 7/19/07, level1 <premiersullivan@gmail.com> wrote:
> Hi, I don't know if some one has already thought of this, or if amarok 2.0
> will still have the "fade out" feature, but could we add a feature to fade
> the music out when the user pauses?  This fade should be done very quickly
> (<1500ms?), I would guess.  I already wrote a little shell script for amarok
> 1.4 as a proof of concept, check it out:
>
>
> if( $(dcop amarok player isPlaying) = true)
> then
>         echo "Fading out"
>         for((i=100;i>60;i-=5))
>         do
>                 dcop amarok player setVolume $i
>                 sleep 0.01
>         done
>         for((i=60;i>30;i-=10))
>         do
>                 dcop amarok player setVolume $i
>                 sleep 0.01
>         done
>         for((i=30;i>=0;i-=15))
>         do
>                 dcop amarok player setVolume $i
>                 sleep 0.01
>         done
>         dcop amarok player playPause
> else
>         echo "Fading in"
>         dcop amarok player setVolume 0
>         dcop amarok player playPause
>         for((i=0;i<30;i+=15))
>         do
>                 dcop amarok player setVolume $i
>                 sleep 0.01
>         done
>         for((i=30;i<60;i+=10))
>         do
>                 dcop amarok player setVolume $i
>                 sleep 0.01
>         done
>         for((i=60;i<=100;i+=5))
>         do
>                 dcop amarok player setVolume $i
>                 sleep 0.01
>         done
> fi
>
> Notice that the fade 'tails off" at the end when fading out, and accelerates
> when fading in.  I think this gives a more natural effect; I don't really
> know how the existing (1.4) amarok fade works, but it sounds wrong to me.
>
> I know you are busy on the new amarok, but if you think this is a good idea,
> it seems like it should quick to program.  Either way, I'm sure 2.0 is going
> to be great!  Thanks for all the hard work!
> _______________________________________________
> Amarok mailing list
> Amarok@kde.org
> https://mail.kde.org/mailman/listinfo/amarok
>


-- 
Zach Dwiel
dwiel.net
_______________________________________________
Amarok mailing list
Amarok@kde.org
https://mail.kde.org/mailman/listinfo/amarok
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic