{"id":2579,"date":"2018-12-21T00:00:26","date_gmt":"2018-12-20T23:00:26","guid":{"rendered":"https:\/\/iot.fkainka.de\/?p=2579"},"modified":"2018-11-21T17:00:59","modified_gmt":"2018-11-21T16:00:59","slug":"tag-21-piano-player","status":"publish","type":"post","link":"https:\/\/iot.fkainka.de\/en\/tag-21-piano-player","title":{"rendered":"Day 21: Piano Player"},"content":{"rendered":"<p>The door of day 21 reveals a loudspeaker. We will use it in our experiment today to play some music. We will need a very simple setup for this.<\/p>\n<div id=\"attachment_2580\" style=\"width: 463px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day21_Speaker_Steckplatine.png\"><img aria-describedby=\"caption-attachment-2580\" decoding=\"async\" loading=\"lazy\" class=\" wp-image-2580\" src=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day21_Speaker_Steckplatine-671x1024.png\" alt=\"Versuchsaufbau\" width=\"453\" height=\"691\" data-id=\"2580\" srcset=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day21_Speaker_Steckplatine-671x1024.png 671w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day21_Speaker_Steckplatine-197x300.png 197w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day21_Speaker_Steckplatine-768x1172.png 768w, https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day21_Speaker_Steckplatine.png 879w\" sizes=\"(max-width: 453px) 100vw, 453px\" \/><\/a><p id=\"caption-attachment-2580\" class=\"wp-caption-text\">Setup<\/p><\/div>\n<p>In our experiment we will connect the speaker to one of the board\u2019s two DAC outputs. DAC means <strong>digital\/analogue converter<\/strong> and with this we can generate an analogue signal using digital commands. In our experiment today, we will use it to produce sounds, and to be more precise, we are talking about piano sounds. The notes, pauses and keys are sent via UDP by means of an array of numbers.<\/p>\n<p><iframe style=\"border: none; width: 100%;\" src=\"https:\/\/pastebin.com\/embed_iframe\/LrRJecxv\"><\/iframe>Copy the Node-RED flow of today into your environment, but before using it, you must again disable previous ones. You also need to adjust the IP of the UDP node to reflect the broadcast IP of your board. Then choose the program of today and start the flow.<\/p>\n<p>You will find already predefined songs that you can play via the user interface. But of course, you also have the option to translate or compose songs yourself. There is a text box for this purpose. Just copy your composition into it.<\/p>\n<p>The notes follow the simple note scheme and are entered like this:<\/p>\n<p><strong>NOTE_C1, NOTE_CS1, NOTE_D1, NOTE_DS1, NOTE_E1, NOTE_F1, NOTE_FS1, NOTE_G1, NOTE_GS1, NOTE_A1, NOTE_AS1, NOTE_B1<\/strong><\/p>\n<p>The number following the note is the octave. You can replace 1 using any number from 1 to 7. You can also specify the note span with the prefix BEAT to make it a half, quarter or eighth note. The BEAT attribute always refers to the preceding note. BEAT_1 is the default, so you do not need to write this before each note. The following note spans are used:<\/p>\n<p><strong>BEAT_025, BEAT_05, BEAT_075, BEAT_1, BEAT_125, BEAT_15, BEAT_175, BEAT_2, BEAT_25, BEAT_3, BEAT_4, BEAT_5<\/strong><\/p>\n<p>For example, if you want to play the beginning of Beethoven\u2019s famous 5th Symphony, enter the following text into the window:<\/p>\n<p><strong>NOTE_G5,BEAT_075,NOTE_G5,BEAT_075,NOTE_G5,BEAT_075,NOTE_E5,BEAT_5,<\/strong><\/p>\n<p><strong>NOTE_F5,BEAT_075,NOTE_F5,BEAT_075,NOTE_F5,BEAT_075,NOTE_D5,BEAT_5<\/strong><\/p>\n<p>You don\u2019t have to be a musical genius. Just try a few notes and note spans<sup>\u00a0\u00a0<\/sup>and compose your own song. Or convert a familiar song into this system.<\/p>\n<p>Imagination has no limits.<\/p>","protected":false},"excerpt":{"rendered":"<p>The door of day 21 reveals a loudspeaker. We will use it in our experiment today to play some music. We will need a very simple setup for this. In our experiment we will connect the speaker to one of&#8230;<br \/><a class=\"read-more-button\" href=\"https:\/\/iot.fkainka.de\/en\/tag-21-piano-player\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":2580,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[315,312,313],"tags":[],"jetpack_publicize_connections":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Day 21: Piano Player - Internet of Things with the NanoESP<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/iot.fkainka.de\/tag-21-piano-player\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Day 21: Piano Player - Internet of Things with the NanoESP\" \/>\n<meta property=\"og:description\" content=\"The door of day 21 reveals a loudspeaker. We will use it in our experiment today to play some music. We will need a very simple setup for this. In our experiment we will connect the speaker to one of...Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/iot.fkainka.de\/tag-21-piano-player\" \/>\n<meta property=\"og:site_name\" content=\"Internet of Things with the NanoESP\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-20T23:00:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-11-21T16:00:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day21_Speaker_Steckplatine.png\" \/>\n\t<meta property=\"og:image:width\" content=\"879\" \/>\n\t<meta property=\"og:image:height\" content=\"1341\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"fk\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"fk\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/iot.fkainka.de\/tag-21-piano-player\",\"url\":\"https:\/\/iot.fkainka.de\/tag-21-piano-player\",\"name\":\"Day 21: Piano Player - Internet of Things with the NanoESP\",\"isPartOf\":{\"@id\":\"https:\/\/iot.fkainka.de\/#website\"},\"datePublished\":\"2018-12-20T23:00:26+00:00\",\"dateModified\":\"2018-11-21T16:00:59+00:00\",\"author\":{\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\"},\"breadcrumb\":{\"@id\":\"https:\/\/iot.fkainka.de\/tag-21-piano-player#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/iot.fkainka.de\/tag-21-piano-player\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/iot.fkainka.de\/tag-21-piano-player#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/iot.fkainka.de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tag 21: Piano-Player\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/iot.fkainka.de\/#website\",\"url\":\"https:\/\/iot.fkainka.de\/\",\"name\":\"Internet of Things with the NanoESP\",\"description\":\"The webpage for the Arduino compatible WiFi-Board\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/iot.fkainka.de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a\",\"name\":\"fk\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/iot.fkainka.de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g\",\"caption\":\"fk\"},\"url\":\"https:\/\/iot.fkainka.de\/en\/author\/fk\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Day 21: Piano Player - Internet of Things with the NanoESP","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/iot.fkainka.de\/tag-21-piano-player","og_locale":"en_US","og_type":"article","og_title":"Day 21: Piano Player - Internet of Things with the NanoESP","og_description":"The door of day 21 reveals a loudspeaker. We will use it in our experiment today to play some music. We will need a very simple setup for this. In our experiment we will connect the speaker to one of...Read more","og_url":"https:\/\/iot.fkainka.de\/tag-21-piano-player","og_site_name":"Internet of Things with the NanoESP","article_published_time":"2018-12-20T23:00:26+00:00","article_modified_time":"2018-11-21T16:00:59+00:00","og_image":[{"width":879,"height":1341,"url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day21_Speaker_Steckplatine.png","type":"image\/png"}],"author":"fk","twitter_card":"summary_large_image","twitter_misc":{"Written by":"fk","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/iot.fkainka.de\/tag-21-piano-player","url":"https:\/\/iot.fkainka.de\/tag-21-piano-player","name":"Day 21: Piano Player - Internet of Things with the NanoESP","isPartOf":{"@id":"https:\/\/iot.fkainka.de\/#website"},"datePublished":"2018-12-20T23:00:26+00:00","dateModified":"2018-11-21T16:00:59+00:00","author":{"@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a"},"breadcrumb":{"@id":"https:\/\/iot.fkainka.de\/tag-21-piano-player#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/iot.fkainka.de\/tag-21-piano-player"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/iot.fkainka.de\/tag-21-piano-player#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/iot.fkainka.de\/"},{"@type":"ListItem","position":2,"name":"Tag 21: Piano-Player"}]},{"@type":"WebSite","@id":"https:\/\/iot.fkainka.de\/#website","url":"https:\/\/iot.fkainka.de\/","name":"Internet of Things with the NanoESP","description":"The webpage for the Arduino compatible WiFi-Board","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/iot.fkainka.de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/d3205fdf2649027fc35e240d4f8b285a","name":"fk","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/iot.fkainka.de\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/141cf958a831e66efabf9674e117e8d9?s=96&d=identicon&r=g","caption":"fk"},"url":"https:\/\/iot.fkainka.de\/en\/author\/fk"}]}},"jetpack_featured_media_url":"https:\/\/iot.fkainka.de\/wp-content\/uploads\/2018\/11\/Day21_Speaker_Steckplatine.png","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6McI0-FB","_links":{"self":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/2579"}],"collection":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/comments?post=2579"}],"version-history":[{"count":2,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/2579\/revisions"}],"predecessor-version":[{"id":2582,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/posts\/2579\/revisions\/2582"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media\/2580"}],"wp:attachment":[{"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/media?parent=2579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/categories?post=2579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iot.fkainka.de\/en\/wp-json\/wp\/v2\/tags?post=2579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}