{"id":5569,"date":"2013-02-20T22:56:45","date_gmt":"2013-02-20T22:56:45","guid":{"rendered":"http:\/\/zerokidz.com\/ideas\/?p=5569"},"modified":"2013-02-26T04:43:08","modified_gmt":"2013-02-26T04:43:08","slug":"csound-in-pure-data-on-raspberry-pi","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=5569","title":{"rendered":"Csound in Pure Data on Raspberry-Pi"},"content":{"rendered":"<p>Today I got Csound running inside Pure Data (using the [csoundapi~] object) on Raspberry-Pi.<\/p>\n<p>These instructions assume you have already installed pd-extended on R-Pi. See this post to learn how.\u00a0<a href=\"https:\/\/reactivemusic.net\/?p=4930\">https:\/\/reactivemusic.net\/?p=4930<\/a><\/p>\n<p>Install Csound<\/p>\n<pre class=\"brush: actionscript3; gutter: true\"># sudo apt-get install cloud<\/pre>\n<p>Install csoundapi~<\/p>\n<pre class=\"brush: actionscript3; gutter: true\"># sudo apt-get install pd-csound<\/pre>\n<p>Copy csoundapi~ library into the pd-extended extras folder<\/p>\n<pre class=\"brush: actionscript3; gutter: true\"># cd \/usr\/lib\/pd\/csound\/extras\r\n# sudo cp csoundapi~.pd_linux ..\/..\/pd-extended\/extra<\/pre>\n<p>Here&#8217;s a test patch:<\/p>\n<p><a href=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-5570\" title=\"Screen Shot 2013-02-20 at 5.47.22 PM\" src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM-300x134.png\" alt=\"\" width=\"300\" height=\"134\" srcset=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM-300x134.png 300w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM-500x224.png 500w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM.png 678w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Here&#8217;s the Csound source file (should be in the same folder as the test patch)<\/p>\n<pre class=\"brush: actionscript3; gutter: true\">&lt;CsoundSynthesizer&gt;\r\n&lt;CsOptions&gt;\r\n&lt;\/CsOptions&gt;\r\n&lt;CsInstruments&gt;\r\n;Example by Joachim Heintz\r\n\r\nsr = 44100\r\nnchnls = 2\r\n0dbfs = 1\r\nksmps = 8\r\n\r\ngiSine    ftgen     0, 0, 2^10, 10, 1\r\n\r\ninstr 1\r\nkFreq     invalue   &quot;freq&quot;\r\nkAmp      invalue   &quot;amp&quot;\r\naSin      oscili    kAmp, kFreq, giSine\r\n          outs      aSin, aSin\r\nendin\r\n\r\n&lt;\/CsInstruments&gt;\r\n&lt;CsScore&gt;\r\ni 1 0 10000\r\n&lt;\/CsScore&gt;\r\n&lt;\/CsoundSynthesizer&gt;<\/pre>\n<p>Here are the source files:<\/p>\n<p><a href=\"pd-extended -nogui -noadc cstest2.pd\">http:\/\/zerokidz.com\/rpi\/csound\/cstest2.pd<\/a><\/p>\n<p><a href=\"http:\/\/zerokidz.com\/rpi\/csound\/control.csd\">http:\/\/zerokidz.com\/rpi\/csound\/control.csd<\/a><\/p>\n<p>Here&#8217;s the command line to run the test:<\/p>\n<pre class=\"brush: actionscript3; gutter: true\"># pd-extended -nogui -noadc cstest2.pd<\/pre>\n<p>Here are general instructions on running csound in Pure Data\u00a0from Victor Lazzarini:<\/p>\n<p><a href=\"http:\/\/booki.flossmanuals.net\/csound\/_draft\/_v\/1.0\/csound-in-pd\/\">http:\/\/booki.flossmanuals.net\/csound\/_draft\/_v\/1.0\/csound-in-pd\/<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I got Csound running inside Pure Data (using the [csoundapi~] object) on Raspberry-Pi. These instructions assume you have already installed pd-extended on R-Pi. See this post to learn how.\u00a0https:\/\/reactivemusic.net\/?p=4930 Install Csound # sudo apt-get install cloud Install csoundapi~ # sudo apt-get install pd-csound Copy csoundapi~ library into the pd-extended extras folder # cd \/usr\/lib\/pd\/csound\/extras &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=5569\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Csound in Pure Data on Raspberry-Pi&#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":[143,9],"tags":[79,128,190,172],"class_list":["post-5569","post","type-post","status-publish","format-standard","hentry","category-interactive-media-art","category-music-production","tag-csound","tag-pd","tag-portfolio","tag-raspberry-pi"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Csound in Pure Data on Raspberry-Pi  - 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=5569\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Csound in Pure Data on Raspberry-Pi  - reactive music\" \/>\n<meta property=\"og:description\" content=\"Today I got Csound running inside Pure Data (using the [csoundapi~] object) on Raspberry-Pi. These instructions assume you have already installed pd-extended on R-Pi. See this post to learn how.\u00a0https:\/\/reactivemusic.net\/?p=4930 Install Csound # sudo apt-get install cloud Install csoundapi~ # sudo apt-get install pd-csound Copy csoundapi~ library into the pd-extended extras folder # cd \/usr\/lib\/pd\/csound\/extras &hellip; Continue reading &quot;Csound in Pure Data on Raspberry-Pi&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=5569\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2013-02-20T22:56:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-02-26T04:43:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM-300x134.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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"Csound in Pure Data on Raspberry-Pi\",\"datePublished\":\"2013-02-20T22:56:45+00:00\",\"dateModified\":\"2013-02-26T04:43:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569\"},\"wordCount\":123,\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/02\\\/Screen-Shot-2013-02-20-at-5.47.22-PM-300x134.png\",\"keywords\":[\"csound\",\"Pd\",\"portfolio\",\"raspberry pi\"],\"articleSection\":[\"interactive media art\",\"music production\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569\",\"name\":\"Csound in Pure Data on Raspberry-Pi - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/02\\\/Screen-Shot-2013-02-20-at-5.47.22-PM-300x134.png\",\"datePublished\":\"2013-02-20T22:56:45+00:00\",\"dateModified\":\"2013-02-26T04:43:08+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=5569\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569#primaryimage\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/02\\\/Screen-Shot-2013-02-20-at-5.47.22-PM.png\",\"contentUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/02\\\/Screen-Shot-2013-02-20-at-5.47.22-PM.png\",\"width\":\"678\",\"height\":\"304\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=5569#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Csound in Pure Data on Raspberry-Pi\"}]},{\"@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":"Csound in Pure Data on Raspberry-Pi  - 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=5569","og_locale":"en_US","og_type":"article","og_title":"Csound in Pure Data on Raspberry-Pi  - reactive music","og_description":"Today I got Csound running inside Pure Data (using the [csoundapi~] object) on Raspberry-Pi. These instructions assume you have already installed pd-extended on R-Pi. See this post to learn how.\u00a0https:\/\/reactivemusic.net\/?p=4930 Install Csound # sudo apt-get install cloud Install csoundapi~ # sudo apt-get install pd-csound Copy csoundapi~ library into the pd-extended extras folder # cd \/usr\/lib\/pd\/csound\/extras &hellip; Continue reading \"Csound in Pure Data on Raspberry-Pi\"","og_url":"https:\/\/reactivemusic.net\/?p=5569","og_site_name":"reactive music","article_published_time":"2013-02-20T22:56:45+00:00","article_modified_time":"2013-02-26T04:43:08+00:00","og_image":[{"url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM-300x134.png","type":"","width":"","height":""}],"author":"Tom Zicarelli","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tom Zicarelli","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/reactivemusic.net\/?p=5569#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=5569"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"Csound in Pure Data on Raspberry-Pi","datePublished":"2013-02-20T22:56:45+00:00","dateModified":"2013-02-26T04:43:08+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=5569"},"wordCount":123,"image":{"@id":"https:\/\/reactivemusic.net\/?p=5569#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM-300x134.png","keywords":["csound","Pd","portfolio","raspberry pi"],"articleSection":["interactive media art","music production"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=5569","url":"https:\/\/reactivemusic.net\/?p=5569","name":"Csound in Pure Data on Raspberry-Pi - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=5569#primaryimage"},"image":{"@id":"https:\/\/reactivemusic.net\/?p=5569#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM-300x134.png","datePublished":"2013-02-20T22:56:45+00:00","dateModified":"2013-02-26T04:43:08+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=5569#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=5569"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/reactivemusic.net\/?p=5569#primaryimage","url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM.png","contentUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/02\/Screen-Shot-2013-02-20-at-5.47.22-PM.png","width":"678","height":"304"},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=5569#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"Csound in Pure Data on Raspberry-Pi"}]},{"@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\/5569","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=5569"}],"version-history":[{"count":4,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/5569\/revisions"}],"predecessor-version":[{"id":5572,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/5569\/revisions\/5572"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}