{"id":2409,"date":"2022-03-28T21:58:36","date_gmt":"2022-03-29T01:58:36","guid":{"rendered":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/?p=2409"},"modified":"2022-03-28T22:10:49","modified_gmt":"2022-03-29T02:10:49","slug":"assignment-7-sound","status":"publish","type":"post","link":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/?p=2409","title":{"rendered":"Assignment 7: Sound with Meaning"},"content":{"rendered":"<p>To develop &#8216;sound with meaning,&#8217; I wrote a sketch using the tone() function to replicate the &#8216;wah wah wah&#8217; trombone sound. Sketch and video below.<\/p>\n<p><iframe loading=\"lazy\" title=\"Sound Assignment 07\" width=\"840\" height=\"473\" src=\"https:\/\/www.youtube.com\/embed\/1qOPTaWGlQs?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">void setup() {\r\n\r\n  tone(7, 293.66, 1000);\r\n  delay(1000);\r\n  noTone(7);\r\n  delay(500);\r\n  tone(7,277.18,1000);\r\n  delay(1000);\r\n  noTone(7);\r\n  delay(500);\r\n  tone(7,261.63,1000);\r\n  delay(1000);\r\n  noTone(7);\r\n  delay(500);\r\n  tone(7,246.94,3000);\r\n  delay(1500);\r\n  noTone(7);\r\n  delay(3000);\r\n}\r\n\r\nvoid loop() {\r\n\r\n\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>I had a 60 hertz hum with the original power supply I used the first time around. Switching to another power reduced the issue, but it&#8217;s still there.<\/p>\n<p><strong>Resources<\/strong><\/p>\n<p>More background on the Teensy audio library and MQS:<\/p>\n<p>https:\/\/melp242.blogspot.com\/2020\/10\/audio-output-on-teensy-4x-boards.html<\/p>\n<p>Note frequencies:<\/p>\n<p>https:\/\/pages.mtu.edu\/~suits\/notefreqs.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To develop &#8216;sound with meaning,&#8217; I wrote a sketch using the tone() function to replicate the &#8216;wah wah wah&#8217; trombone sound. Sketch and video below. &nbsp; void setup() { tone(7, 293.66, 1000); delay(1000); noTone(7); delay(500); tone(7,277.18,1000); delay(1000); noTone(7); delay(500); tone(7,261.63,1000); delay(1000); noTone(7); delay(500); tone(7,246.94,3000); delay(1500); noTone(7); delay(3000); } void loop() { } &nbsp; I had &hellip; <a href=\"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/?p=2409\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Assignment 7: Sound with Meaning&#8221;<\/span><\/a><\/p>\n","protected":false},"author":28,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"video","meta":[],"categories":[17,1],"tags":[],"_links":{"self":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/posts\/2409"}],"collection":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/users\/28"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2409"}],"version-history":[{"count":6,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/posts\/2409\/revisions"}],"predecessor-version":[{"id":2439,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=\/wp\/v2\/posts\/2409\/revisions\/2439"}],"wp:attachment":[{"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2409"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2409"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.ideate.cmu.edu\/48-339\/s2022\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2409"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}