{"id":3858,"date":"2015-11-12T20:11:14","date_gmt":"2015-11-12T20:11:14","guid":{"rendered":"http:\/\/astoryisnotatree.net\/?p=3858"},"modified":"2020-02-05T21:29:34","modified_gmt":"2020-02-05T21:29:34","slug":"conference-project-update-hit","status":"publish","type":"post","link":"https:\/\/astoryisnotatree.net\/?p=3858","title":{"rendered":"Interactive City: Hit!"},"content":{"rendered":"<figure id=\"attachment_3859\" aria-describedby=\"caption-attachment-3859\" style=\"width: 555px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2015\/11\/demo.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3859\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2015\/11\/demo.gif\" alt=\"Interface demo\" width=\"555\" height=\"312\" \/><\/a><figcaption id=\"caption-attachment-3859\" class=\"wp-caption-text\">Interface demo<\/figcaption><\/figure>\n<p>So far, I learned how to use the Sonia library in Processing to monitor the level of sound input from my laptop microphone. In the gif above, I try to simulate a belt that transports shapes from left to right. Every time the microphone detects a \u201cclap\u201d, the shape in the center will be colored, while the volume of clapping sound as a parameter to determine the color\u2019s hue.<\/p>\n<p>The Sonia library allows me to get the sound level of the microphone input. I set up two thresholds to determine the action of \u201cclapping\u201d: if the sound level gets above a threshold, the program will consider someone is \u201cclapping\u201d; after clapping, if the sound level drops below a threshold, the program will convert the status from \u201cclapping\u201d to \u201cnot clapping\u201d.<\/p>\n<figure id=\"attachment_3860\" aria-describedby=\"caption-attachment-3860\" style=\"width: 625px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2015\/11\/code-screenshot.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-3860 size-large\" src=\"http:\/\/astoryisnotatree.net\/wp-content\/uploads\/2015\/11\/code-screenshot-912x1024.png\" alt=\"A screenshot of my threshold code. \" width=\"625\" height=\"701\" srcset=\"https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2015\/11\/code-screenshot-912x1024.png 912w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2015\/11\/code-screenshot-267x300.png 267w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2015\/11\/code-screenshot-624x699.png 624w, https:\/\/astoryisnotatree.net\/wp-content\/uploads\/2015\/11\/code-screenshot.png 1282w\" sizes=\"auto, (max-width: 625px) 100vw, 625px\" \/><\/a><figcaption id=\"caption-attachment-3860\" class=\"wp-caption-text\">A screenshot of my threshold code.<\/figcaption><\/figure>\n<p>I plan to use this interface to simulate an interactive drum-hitting experience. I need to add more parameters into the program as well as work on the feedback of this interface.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So far, I learned how to use the Sonia library in Processing to monitor the level of sound input from my laptop microphone. In the gif above, I try to simulate a belt that transports shapes from left to right&#8230;.<\/p>\n","protected":false},"author":66,"featured_media":3859,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[168],"tags":[39,48,50,179,83],"class_list":["post-3858","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-interactive-city","tag-conference-project","tag-interactive","tag-conference","tag-interactive-city","tag-conference-post-2","wpcat-168-id"],"_links":{"self":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts\/3858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/users\/66"}],"replies":[{"embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3858"}],"version-history":[{"count":3,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts\/3858\/revisions"}],"predecessor-version":[{"id":13019,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/posts\/3858\/revisions\/13019"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=\/wp\/v2\/media\/3859"}],"wp:attachment":[{"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3858"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3858"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/astoryisnotatree.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}