Player Piano Alarm

Nothing is better than being woken up by the sound of beautiful melodies. So I decided to make a script to make my player piano play an assortment of songs every morning. The player piano has a midi in and out port and is connected to a Gnu/Linux machine.

Originally I had this script run in kalarm, but a cron job was actually sufficient. The script adds 10 songs randomly from a folder with midi files to an array and then plays each song in that array. I then used “crontab -e” to write when I wanted this script to execute and voilà, my piano plays every morning for me, and that is music to my ears 🎵 ^_^