Page 1 of 1

[MOD] New function added: Volume fade over time

PostPosted: 04 Feb 2015, 11:04
by cyber7
Ok guys
for you have been following my blog and postings will see that I have been looking at creating a player that will enable me to fade/slide volume over time. I have now written a function that enables you to do just that. Following my logic, you can also add additional screens/functions into RuneAudio. I will be looking at changing to a specific playlist at a pre-specified time.

Here is the screenshot:
fade.jpg
Screenshot
fade.jpg (61.69 KiB) Viewed 13643 times


Here is the instructions (first by hand if you want to see the logic) then automated with the attached tar file:
By Hand:
Installing Volume Fade Over Time:
1. "pacman -S bc"
2. "vi /var/www/app/templates/header.php"
add after line 79:
<li class="<?=$this->uri(1, 'fade', 'active')?>"><a href="/fade/"><i class="fa fa-volume-up"></i> Fade</a></li>
NOTE: http://fortawesome.github.io/Font-Awesome/icons/ has all the fa-FONTS
3. dump fade.php into "/var/www/app/templates/"
4. dump "mpc_fade" to /var/www/
5. "cd /var/www/app"
"cp credits_ctl.php fade_ctl.php"
6. "vi /var/www/index.php"
add after line 56:
"'fade',"
without the ""
7. Restart your system

Auto:
1. "pacman -S bc"
2. "cd /var/www"
3. "tar -xvf fade.tar"
4. Restart your system.

cool hey?
cyber7 (aka Aubrey Kloppers; Cape Town; South Africa)

Re: [MOD] New function added: Volume fade over time

PostPosted: 04 Feb 2015, 14:24
by ACX
Well done cyber7, I'm sure this is going to be helpful for many users.
While we find a proper way to integrate this feature in the official releases, I'm moving this topic in the "Feature request" forum marked as [MOD] and as sticky post.

Re: [MOD] New function added: Volume fade over time

PostPosted: 10 Feb 2015, 17:16
by tatoosh
Good one!
The script needs to extend spop deamon feature.

Re: [MOD] New function added: Volume fade over time

PostPosted: 07 Mar 2015, 18:26
by hondagx35
Hi cyber7,
Hi all,

this MOD won't work anymore with RuneAudio 0.4. and the RP2 image.
Please edit the file /srv/http/app/templates/fade.php so it uses sysCmd and sysCmdAsync instead of shell_exec, see also here.

Frank

Re: [MOD] New function added: Volume fade over time

PostPosted: 14 Mar 2015, 12:16
by viklander
Hey Cyber 7
real cool add-on, I missed it badly until then.
Warm regards from sunny (!) northern France

Re: [MOD] New function added: Volume fade over time

PostPosted: 16 Apr 2015, 07:31
by tschinz
Cool feature,

I would like to extent it.

1. Fade up or down
2. sleep, wakeup timer

sleep = music fades down over time to a min level
wakeup = music fades up over time to a max level

Any plans for doing that?

tschinz

Re: [MOD] New function added: Volume fade over time

PostPosted: 06 Oct 2015, 10:43
by Velkam
Hi,

Can anybody regarding files placing on /var/www I am completely new to Linux console and partition. I am unable to access the hidden Linux partition from windows. Linux mint cannot access www folder, says something about bad link. I cannot boot Ubuntu because of kernel panic, do not know the cause. Hod do I place the files there? Is it possible to move the file with console from boot partition to Linux partition?