{"id":7617,"date":"2013-10-14T08:25:59","date_gmt":"2013-10-14T08:25:59","guid":{"rendered":"http:\/\/zerokidz.com\/ideas\/?p=7617"},"modified":"2014-06-17T15:05:25","modified_gmt":"2014-06-17T19:05:25","slug":"pdlib-csoundapi-openframeworks-coreaudio-cinder-and-leap-motion","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=7617","title":{"rendered":"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion"},"content":{"rendered":"<div><\/div>\n<p class=\"lead\">Notes on developing an architecture for Leap Motion &#8216;Muse&#8217;.<\/p>\n<ol>\n<li>pdlib is the vehicle for the Pd sound engine in RJDJ. It runs Pd patches in iOS and Android &#8211; but also has potential in MacOS, Windows, and Linux<\/li>\n<li>After many frustrating attempts I was able to get only as far as getting a simple pdlib example from Rich Eakin to run in Xcode. Couldn&#8217;t get it running under Cinder. The code is a hodgepodge of c, c++, and obj-c so these projects can easily get bogged down in compiler and linker errors.<\/li>\n<li>I was able to get Chris Adamson&#8217;s chapter 8 input\/output example running in Mac OS by using updated files from his blog.<\/li>\n<li>By merging some of Adamson&#8217;s and Eakin&#8217;s code we got audio output but not input &#8211; although I see no reason it couldn&#8217;t be done.<\/li>\n<li>At some point I decided to try openframeworks instead of Cinder. Within about 10 minutes I had ofxPd (Dan Wilcox) addon running input and output in Pd.<\/li>\n<li>Next I got a leapMotion example running from an ofxLeap archive.<\/li>\n<li>Today after much confusion, I got the csoundapi~ source code link (its in Csound archive, not in Pd) And then using the Csound.Framework and a few include files, along with great instructions from oxfPd author &#8211; got csoundapi~ running in pdlib.<\/li>\n<li>Next I duplicated the ofxLeap example and tried to add in the ofxPd code. This worked &#8211; but the instructions aren&#8217;t complete. You need to add the lib folder and the extras folder (which doesn&#8217;t add folders ending with tilde when you drag and drop the parent folder) But I have a working example now &#8211; The most important thing to remember with the ofx projects is NOT TO LET XCODE UPDATE VALID PROJECT SETTINGS. I&#8217;m not sure which setting that ofx doesn&#8217;t like &#8211; but once you update the settings you are screwed and not even a snapshot restore will fix it.<\/li>\n<li>The final result is an app which uses leap hand movement to change the pitch of an oscillator in a Pd patch by sending messages via pdlib. The app also uses csoundapi~ external.<\/li>\n<li>Next project should be to clean up and document the pdlib ofx process and try the whole thing on windows and linux.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Notes on developing an architecture for Leap Motion &#8216;Muse&#8217;. pdlib is the vehicle for the Pd sound engine in RJDJ. It runs Pd patches in iOS and Android &#8211; but also has potential in MacOS, Windows, and Linux After many frustrating attempts I was able to get only as far as getting a simple pdlib &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=7617\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion&#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,143],"tags":[245,246,190],"class_list":["post-7617","post","type-post","status-publish","format-standard","hentry","category-development","category-interactive-media-art","tag-c","tag-libpd","tag-portfolio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion - 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=7617\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion - reactive music\" \/>\n<meta property=\"og:description\" content=\"Notes on developing an architecture for Leap Motion &#8216;Muse&#8217;. pdlib is the vehicle for the Pd sound engine in RJDJ. It runs Pd patches in iOS and Android &#8211; but also has potential in MacOS, Windows, and Linux After many frustrating attempts I was able to get only as far as getting a simple pdlib &hellip; Continue reading &quot;pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=7617\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2013-10-14T08:25:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-06-17T19:05:25+00:00\" \/>\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=7617#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=7617\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion\",\"datePublished\":\"2013-10-14T08:25:59+00:00\",\"dateModified\":\"2014-06-17T19:05:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=7617\"},\"wordCount\":395,\"keywords\":[\"c++\",\"libpd\",\"portfolio\"],\"articleSection\":[\"development\",\"interactive media art\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=7617\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=7617\",\"name\":\"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"datePublished\":\"2013-10-14T08:25:59+00:00\",\"dateModified\":\"2014-06-17T19:05:25+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=7617#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=7617\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=7617#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion\"}]},{\"@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":"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion - 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=7617","og_locale":"en_US","og_type":"article","og_title":"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion - reactive music","og_description":"Notes on developing an architecture for Leap Motion &#8216;Muse&#8217;. pdlib is the vehicle for the Pd sound engine in RJDJ. It runs Pd patches in iOS and Android &#8211; but also has potential in MacOS, Windows, and Linux After many frustrating attempts I was able to get only as far as getting a simple pdlib &hellip; Continue reading \"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion\"","og_url":"https:\/\/reactivemusic.net\/?p=7617","og_site_name":"reactive music","article_published_time":"2013-10-14T08:25:59+00:00","article_modified_time":"2014-06-17T19:05:25+00:00","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=7617#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=7617"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion","datePublished":"2013-10-14T08:25:59+00:00","dateModified":"2014-06-17T19:05:25+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=7617"},"wordCount":395,"keywords":["c++","libpd","portfolio"],"articleSection":["development","interactive media art"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=7617","url":"https:\/\/reactivemusic.net\/?p=7617","name":"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"datePublished":"2013-10-14T08:25:59+00:00","dateModified":"2014-06-17T19:05:25+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=7617#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=7617"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=7617#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"pdlib, csoundapi, openframeworks, coreAudio, Cinder, and Leap Motion"}]},{"@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\/7617","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=7617"}],"version-history":[{"count":10,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/7617\/revisions"}],"predecessor-version":[{"id":14916,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/7617\/revisions\/14916"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}