{"id":886,"date":"2019-10-20T18:10:43","date_gmt":"2019-10-20T18:10:43","guid":{"rendered":"https:\/\/thinkcolorful.org\/?p=886"},"modified":"2020-07-30T12:17:14","modified_gmt":"2020-07-30T12:17:14","slug":"player-piano-alarm","status":"publish","type":"post","link":"https:\/\/thinkcolorful.org\/?p=886","title":{"rendered":"Player Piano Alarm"},"content":{"rendered":"\n<p>Nothing is better than being woken up by the sound of beautiful melodies. So I decided to make a <a href=\"https:\/\/github.com\/ephemeralwaves\/PlayerPianoScript\/blob\/master\/pmidihi.sh\">script<\/a> 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. <\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1280 \/ 720;\" width=\"1280\" controls src=\"https:\/\/thinkcolorful.org\/wp-content\/uploads\/2019\/10\/playerpiano.mp4\"><\/video><\/figure>\n\n\n\n<p>Originally I had this script run in kalarm, but a cron job was actually sufficient. The <a href=\"https:\/\/github.com\/ephemeralwaves\/PlayerPianoScript\/blob\/master\/pmidihi.sh\">script<\/a> adds 10 songs randomly from a folder with midi files to an array and then plays each song in that array. I then used &#8220;crontab -e&#8221; to write when I wanted this script to execute and voil\u00e0, my piano plays every morning for me, and that is music to my ears \ud83c\udfb5 ^_^<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nothing is better than being woken up by the sound of beautiful melodies. So I decided to make a&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":936,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,10],"tags":[],"class_list":["post-886","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-music","category-programming"],"_links":{"self":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts\/886","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=886"}],"version-history":[{"count":7,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts\/886\/revisions"}],"predecessor-version":[{"id":896,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts\/886\/revisions\/896"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/media\/936"}],"wp:attachment":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}