{"id":601,"date":"2022-04-14T15:54:06","date_gmt":"2022-04-14T19:54:06","guid":{"rendered":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/?p=601"},"modified":"2022-04-14T15:54:24","modified_gmt":"2022-04-14T19:54:24","slug":"get-hits-with-some-megahits-updates","status":"publish","type":"post","link":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/zchen10\/get-hits-with-some-megahits-updates\/","title":{"rendered":"Get Hit with some MegaHits updates! ;)"},"content":{"rendered":"\n<p>Last week I was able to get the sound working and synced with the light animation.<\/p>\n\n\n\n<p>The first version of the code was a complete mess and I was not able to make the light and audio work together because the strategy I used was incorrect. In my second rewrite, I used the independent mode of the audio controller and successfully synced the audio and the LED.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-content\/uploads\/sites\/23\/2022\/04\/image-6.png\"><img loading=\"lazy\" decoding=\"async\" width=\"412\" height=\"123\" src=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-content\/uploads\/sites\/23\/2022\/04\/image-6.png\" alt=\"\" class=\"wp-image-602\" \/><\/a><\/figure>\n\n\n\n<p>Here&#8217;s a video of the sound and LED working together.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video controls src=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-content\/uploads\/sites\/23\/2022\/04\/VID_20220413_182309.mp4\"><\/video><\/figure>\n\n\n\n<p>Also, to get the RNG going, I used the IC&#8217;s 96-bits unique identifier as a seed. But somebody said that using a floating ADC is a better option. I should do that instead since MegaHits have multiple ADC inputs.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last week I was able to get the sound working and synced with the light animation. The first version of the code was a complete mess and I was not able to make the light and audio work together because the strategy I used was incorrect. In my second rewrite, I used the independent mode&#8230; <\/p>\n<div class=\"link-more\"><a href=\"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/zchen10\/get-hits-with-some-megahits-updates\/\">Read More<\/a><\/div>\n","protected":false},"author":232,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"cybocfi_hide_featured_image":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-601","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/posts\/601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/users\/232"}],"replies":[{"embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/comments?post=601"}],"version-history":[{"count":2,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/posts\/601\/revisions"}],"predecessor-version":[{"id":605,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/posts\/601\/revisions\/605"}],"wp:attachment":[{"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/media?parent=601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/categories?post=601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.joshuarosenstock.com\/teaching\/lightart-d22\/wp-json\/wp\/v2\/tags?post=601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}