how to fade audio?

160 views
Skip to first unread message

John DeKoven

unread,
Mar 8, 2014, 5:35:43 PM3/8/14
to tas...@googlegroups.com
I'm trying to figure out a way when I'm playing music to have a task that will fade the music to zero instead of just turning it off.  This is for various show productions I do.  I did some searches and have been racking my brain, but so far here is all I've come up with:

Volume (18)
A1: Media Volume [ Level:10 Display:Off Sound:Off ]
A2: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A3: Media Volume [ Level:9 Display:Off Sound:Off ]
A4: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A5: Media Volume [ Level:8 Display:Off Sound:Off ]
A6: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A7: Media Volume [ Level:7 Display:Off Sound:Off ]
A8: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A9: Media Volume [ Level:6 Display:Off Sound:Off ]
A10: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A11: Media Volume [ Level:5 Display:Off Sound:Off ]
A12: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A13: Media Volume [ Level:4 Display:Off Sound:Off ]
A14: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A15: Media Volume [ Level:3 Display:Off Sound:Off ]
A16: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A17: Media Volume [ Level:2 Display:Off Sound:Off ]
A18: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A19: Media Volume [ Level:1 Display:Off Sound:Off ]
A20: Wait [ MS:0 Seconds:1 Minutes:0 Hours:0 Days:0 ]
A21: Media Volume [ Level:0 Display:Off Sound:Off ]


This actually works fine when I run it and fades as I like.  The problem is that for this to work perfectly I would need my media volume to match level 10 when it's starting.  I guess as a worst case I could create a task to start the music playing at level 10 and make sure the volume is adjusted on the amplifier to be correct.  However, I was wondering if anyone had an idea for a solution where I can just get the fading to start at whatever level I currently have the volume level sent to?

Thanks,
John

Bob Hansen

unread,
Mar 8, 2014, 5:47:19 PM3/8/14
to tas...@googlegroups.com
How about this?

A1: Variable Set %vol To %VOLM
A2: Variable Subtract %vol  Value: 1
A3: Media Volume Level %vol
A4: Wait 1 sec
A5: Goto 2  If %vol > 0

John DeKoven

unread,
Mar 8, 2014, 6:01:40 PM3/8/14
to tas...@googlegroups.com
Thanks Bob.  I've got all the steps except I'm not sure where you are getting step 3 from.

Thanks,
John

John DeKoven

unread,
Mar 8, 2014, 6:03:21 PM3/8/14
to tas...@googlegroups.com
never mind I just figured it out I had to click the two intertwined arrows

John DeKoven

unread,
Mar 8, 2014, 6:08:00 PM3/8/14
to tas...@googlegroups.com
Thanks Bob.  It works great and has also made me understand more Tasker functionality.

Pent

unread,
Mar 9, 2014, 1:45:05 AM3/9/14
to tas...@googlegroups.com

A1: Variable Set %vol To %VOLM
A2: Variable Subtract %vol  Value: 1
A3: Media Volume Level %vol
A4: Wait 1 sec
A5: Goto 2  If %vol > 0

Small improvement:

If %vol > 0
Wait 1 Sec
Goto 2

(removes the unneeded Wait after volume 0 setting)

Pent
Reply all
Reply to author
Forward
0 new messages