0

How to get a clock program to play different songs at different times of day

https://code.sololearn.com/WblC5EueE2cN/?ref=app What I’m trying to do is get that program to play say metal in the morning and classic at night, as if to wake you up in the morning and calm you down at night So say I want it to play metal at 7:00 am, how do I go about programming that in

16th Jan 2019, 2:25 PM
Collin Vickery
Collin Vickery - avatar
1 Réponse
+ 1
Make an audio tag and use the play() function to play different songs at different times. You could use switch and hard code the audio sources or use an array of source.
16th Jan 2019, 5:30 PM
Akib
Akib - avatar