if(onbeat(!music.player.playing), music.player.song(randint(0,music.player.nbsongs-1))&music.player.restart(), 0)
It also allows me to add new songs to the playlist without having to change any of the programming.
There is one more tweak I'm would like to add.
With the set time of 10PM for the shutdown, it will shutdown in the middle of the song.
I want to get the current time and if the length of the next song plus the current time is greater than 10PM, pause the player so it won't get cut off in the middle of the song, otherwise keep playing songs.
Based on what you mentioned previously, I've been trying to figure out how to do the statement:
If ([get the current time]+music.player.songlength>[10PM {or probably 79,200?],music.player.playing(0), 0)
I see the variables for time.hour, time.minute and time.second, but I don't see one for just getting the complete computer time.
Other than that, I think I've got the last part of the for my lights together for this Christmas.
Thank you!
Doug