{"id":587,"date":"2023-01-09T21:53:55","date_gmt":"2023-01-09T21:53:55","guid":{"rendered":"https:\/\/www.explodingart.com\/arb\/?p=587"},"modified":"2023-01-12T02:54:10","modified_gmt":"2023-01-12T02:54:10","slug":"diddly-code","status":"publish","type":"post","link":"https:\/\/www.explodingart.com\/arb\/2023\/01\/09\/diddly-code\/","title":{"rendered":"Diddley Code"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This was my submission to the <a href=\"https:\/\/genuary.art\/\">Genuary 2023<\/a> prompt &#8216;generative music&#8217;. Inspired by awesome performances on the single-string <a href=\"https:\/\/en.wikipedia.org\/wiki\/Diddley_bow\">diddley bow<\/a>, this work generates its sound and performance in the web browser. Using the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/API\/Web_Audio_API\">Web Audio API<\/a> found in all modern browsers, Diddley Code is pure Javascript, with no external libraries. Simple but effective. <\/p>\n\n\n\n<center><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.explodingart.com\/genuary\/\" title=\"Diddley Bow\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" allowfullscreen=\"\"><\/iframe><\/center>\n\n\n\n<p class=\"wp-block-paragraph\">The code implements a Karplus-Strong plucked string algorithm that is filtered to provide timbral variety, especially evident in the muted notes. A semi-stochastic one-bar rhythmic groove plays repeatedly with a slight shuffle feel. Diddley Bow was coded as a fun, quick, holiday project. Make sure to check out all the other Generative Music <a href=\"https:\/\/app.joyn.xyz\/contest\/genuary-day-gallery-generative-music-09d66f6e5482\">submissions<\/a> as well.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Click the embedded site above or visit <a href=\"https:\/\/www.explodingart.com\/genuary\/\">here<\/a> for never-ending real-time playback, or listen to the recorded excerpt below.<\/p>\n\n\n\n<figure class=\"wp-block-audio\"><audio controls src=\"https:\/\/www.explodingart.com\/arb\/wp-content\/uploads\/2023\/01\/Diddley-Code-demo.mp3\"><\/audio><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>This was my submission to the Genuary 2023 prompt &#8216;generative music&#8217;. Inspired by awesome performances on the single-string diddley bow, this work generates its sound and performance in the web browser. Using the Web Audio &hellip;<\/p>\n","protected":false},"author":1,"featured_media":591,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2],"tags":[],"class_list":["post-587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-code","category-music"],"_links":{"self":[{"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":12,"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":604,"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/posts\/587\/revisions\/604"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/media\/591"}],"wp:attachment":[{"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/categories?post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.explodingart.com\/arb\/wp-json\/wp\/v2\/tags?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}