{"id":6243,"date":"2013-03-24T01:56:54","date_gmt":"2013-03-24T01:56:54","guid":{"rendered":"http:\/\/zerokidz.com\/ideas\/?p=6243"},"modified":"2014-06-24T20:54:59","modified_gmt":"2014-06-25T00:54:59","slug":"domain-ping-machine-in-web-audio","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=6243","title":{"rendered":"domain ping machine in Web Audio"},"content":{"rendered":"<p>A &#8216;mini&#8217; version of the Google domain ping synthesizer from the internet-sensors collection (Using the Mashape API). This one runs in Web Audio, using the Web Audio Playground with OSC.<\/p>\n<p><a href=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-6244\" title=\"Screen Shot 2013-03-23 at 9.35.20 PM\" src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM-300x182.png\" alt=\"\" width=\"300\" height=\"182\" srcset=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM-300x182.png 300w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM-1024x621.png 1024w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM-494x300.png 494w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM.png 1150w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Looks like a card game. Anyway it sounds cool. Doesn&#8217;t have the panning of the original, but it has an organic sound due to portamento in frequency changes, and more &#8216;beating&#8217;. Here&#8217;s a short excerpt.<\/p>\n\t<audio id=\"wp_mep_1\"      controls=\"controls\" preload=\"none\"  >\r\n\t\t\r\n\t\t<source src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/wapPing1.mp3\" type=\"audio\/mp3\" \/>\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t<\/audio>\r\n<script type=\"text\/javascript\">\r\njQuery(document).ready(function($) {\r\n\t$('#wp_mep_1').mediaelementplayer({\r\n\t\tm:1\r\n\t\t\r\n\t\t,features: ['playpause','current','progress','duration','volume','tracks','fullscreen']\r\n\t\t,audioWidth:400,audioHeight:30\r\n\t});\r\n});\r\n<\/script>\r\n\n<p>Another example of Max controlling WAP <a href=\"https:\/\/reactivemusic.net\/?p=6193\">https:\/\/reactivemusic.net\/?p=6193<\/a><\/p>\n<h4>download<\/h4>\n<p><a href=\"https:\/\/github.com\/tkzic\/WebAudio\">https:\/\/github.com\/tkzic\/WebAudio<\/a><\/p>\n<p>folder is: WebAudio\/osctest\/<\/p>\n<h4>files<\/h4>\n<ul>\n<li>wapOSCserver-ping.rb<\/li>\n<li><span style=\"line-height: 1.6;\">wapPingTest.maxpat<\/span><\/li>\n<li>WAP patch: &#8211; ping2 (5 osc&#8217;s -&gt; 5 gains, -&gt; 1 master gain) &#8211; ping2.json<\/li>\n<li>Web Page: WebAudio\/index.html<\/li>\n<\/ul>\n<h3>instructions<\/h3>\n<p>update: you can run an online version of WAP Web client at <a href=\"http:\/\/zerokidz.com\/wap\/index.html\">http:\/\/zerokidz.com\/wap\/index.html<\/a> &#8211; If you load this page, skip to step 3.<\/p>\n<p><span style=\"line-height: 1.6;\">1. run the node webserver in WebAudio<br \/>\n<\/span><\/p>\n<div class=\"panel\">\n<p>node nodeserver.js<\/p>\n<\/div>\n<p><span style=\"line-height: 1.6;\">(it will run on localhost port 8081 &#8211; for example http:\/\/127.0.0.1:8081)<\/span><\/p>\n<p><span style=\"line-height: 1.6;\">2. In Chrome web browser, run: <a href=\"http:\/\/192.168.1.104:8081\/web-audio-api\/WebAudio-fork\/WebAudio\/index.html\">127.0.0.1:8081\/index.html<\/a><\/span><\/p>\n<p><span style=\"line-height: 1.6;\">3. From a terminal window, go to the osctest\/ folder and start the server by typing:<\/span><\/p>\n<div class=\"panel\">\n<p>.\/wapOSCserver-ping.rb<\/p>\n<\/div>\n<p>4. Load the Max patch:<\/p>\n<div class=\"panel\">\n<p>wapPingTest.maxpat<\/p>\n<\/div>\n<p>5. In Chrome, click the OSC button &#8211; the ruby server should open a socket connection<\/p>\n<p>6. Also in Chrome, load the patch: <strong>ping2<\/strong> (note that there is a json copy of this patch ping2.json that can be pasted in, if it doesn&#8217;t show up in the menu)<\/p>\n<p>6.5 In WAP, Click the square buttons on the 5 Oscillators to start them playing. You should hear sounds at this point.<\/p>\n<p>7. Now back in Max patch &#8211; click green toggle to start polling and you probably want to increase the polling rate to about 50 ms instead of 1000 ms<\/p>\n<h5>suggestions<\/h5>\n<ul>\n<li><span style=\"line-height: 1.6;\">If it doesn&#8217;t seem like there is much action in the patch, try adjusting the FREQ_MULT and GAIN_MULT inside the ruby script.<\/span><\/li>\n<li><span style=\"line-height: 1.6;\">You will probably also want to open the developer javascript console in Chrome to see what is going on.<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>A &#8216;mini&#8217; version of the Google domain ping synthesizer from the internet-sensors collection (Using the Mashape API). This one runs in Web Audio, using the Web Audio Playground with OSC. Looks like a card game. Anyway it sounds cool. Doesn&#8217;t have the panning of the original, but it has an organic sound due to portamento &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=6243\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;domain ping machine in Web Audio&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[230,21,143,275,28],"tags":[345,190,164],"class_list":["post-6243","post","type-post","status-publish","format-standard","hentry","category-development","category-dsp","category-interactive-media-art","category-internet-sensors","category-maxmsp","tag-maxmsp","tag-portfolio","tag-web-audio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>domain ping machine in Web Audio  - reactive music<\/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:\/\/reactivemusic.net\/?p=6243\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"domain ping machine in Web Audio  - reactive music\" \/>\n<meta property=\"og:description\" content=\"A &#8216;mini&#8217; version of the Google domain ping synthesizer from the internet-sensors collection (Using the Mashape API). This one runs in Web Audio, using the Web Audio Playground with OSC. Looks like a card game. Anyway it sounds cool. Doesn&#8217;t have the panning of the original, but it has an organic sound due to portamento &hellip; Continue reading &quot;domain ping machine in Web Audio&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=6243\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-24T01:56:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-06-25T00:54:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM-300x182.png\" \/>\n<meta name=\"author\" content=\"Tom Zicarelli\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom Zicarelli\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"domain ping machine in Web Audio\",\"datePublished\":\"2013-03-24T01:56:54+00:00\",\"dateModified\":\"2014-06-25T00:54:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243\"},\"wordCount\":346,\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/03\\\/Screen-Shot-2013-03-23-at-9.35.20-PM-300x182.png\",\"keywords\":[\"Max\\\/MSP\",\"portfolio\",\"web audio\"],\"articleSection\":[\"development\",\"DSP\",\"interactive media art\",\"internet-sensors\",\"Max\\\/MSP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243\",\"name\":\"domain ping machine in Web Audio - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/03\\\/Screen-Shot-2013-03-23-at-9.35.20-PM-300x182.png\",\"datePublished\":\"2013-03-24T01:56:54+00:00\",\"dateModified\":\"2014-06-25T00:54:59+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=6243\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243#primaryimage\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/03\\\/Screen-Shot-2013-03-23-at-9.35.20-PM.png\",\"contentUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/03\\\/Screen-Shot-2013-03-23-at-9.35.20-PM.png\",\"width\":\"1150\",\"height\":\"698\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=6243#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"domain ping machine in Web Audio\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/\",\"name\":\"reactive music\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/reactivemusic.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\",\"name\":\"Tom Zicarelli\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"caption\":\"Tom Zicarelli\"},\"sameAs\":[\"http:\\\/\\\/tomzicarelli.com\"],\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"domain ping machine in Web Audio  - reactive music","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:\/\/reactivemusic.net\/?p=6243","og_locale":"en_US","og_type":"article","og_title":"domain ping machine in Web Audio  - reactive music","og_description":"A &#8216;mini&#8217; version of the Google domain ping synthesizer from the internet-sensors collection (Using the Mashape API). This one runs in Web Audio, using the Web Audio Playground with OSC. Looks like a card game. Anyway it sounds cool. Doesn&#8217;t have the panning of the original, but it has an organic sound due to portamento &hellip; Continue reading \"domain ping machine in Web Audio\"","og_url":"https:\/\/reactivemusic.net\/?p=6243","og_site_name":"reactive music","article_published_time":"2013-03-24T01:56:54+00:00","article_modified_time":"2014-06-25T00:54:59+00:00","og_image":[{"url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM-300x182.png","type":"","width":"","height":""}],"author":"Tom Zicarelli","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tom Zicarelli","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/reactivemusic.net\/?p=6243#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=6243"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"domain ping machine in Web Audio","datePublished":"2013-03-24T01:56:54+00:00","dateModified":"2014-06-25T00:54:59+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=6243"},"wordCount":346,"image":{"@id":"https:\/\/reactivemusic.net\/?p=6243#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM-300x182.png","keywords":["Max\/MSP","portfolio","web audio"],"articleSection":["development","DSP","interactive media art","internet-sensors","Max\/MSP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=6243","url":"https:\/\/reactivemusic.net\/?p=6243","name":"domain ping machine in Web Audio - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=6243#primaryimage"},"image":{"@id":"https:\/\/reactivemusic.net\/?p=6243#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM-300x182.png","datePublished":"2013-03-24T01:56:54+00:00","dateModified":"2014-06-25T00:54:59+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=6243#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=6243"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/reactivemusic.net\/?p=6243#primaryimage","url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM.png","contentUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/03\/Screen-Shot-2013-03-23-at-9.35.20-PM.png","width":"1150","height":"698"},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=6243#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"domain ping machine in Web Audio"}]},{"@type":"WebSite","@id":"https:\/\/reactivemusic.net\/#website","url":"https:\/\/reactivemusic.net\/","name":"reactive music","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/reactivemusic.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571","name":"Tom Zicarelli","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","caption":"Tom Zicarelli"},"sameAs":["http:\/\/tomzicarelli.com"],"url":"https:\/\/reactivemusic.net\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/6243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6243"}],"version-history":[{"count":25,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/6243\/revisions"}],"predecessor-version":[{"id":16725,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/6243\/revisions\/16725"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}