{"id":10479,"date":"2014-04-20T19:15:26","date_gmt":"2014-04-20T19:15:26","guid":{"rendered":"http:\/\/zerokidz.com\/ideas\/?p=10479"},"modified":"2014-06-24T03:40:21","modified_gmt":"2014-06-24T07:40:21","slug":"rtlsdr-pd-linux","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=10479","title":{"rendered":"rtlsdr, Pd, linux"},"content":{"rendered":"<h5>notes<\/h5>\n<p>Today was able to get the rtlsdr~ object running in Pd on Ubuntu 14.04 on a Macbook pro.<\/p>\n<p>Audio quality seems rough. The only driver I could get to work was Alsa at 44.1KHz &#8211; may be able to get help with this from Pd community.<\/p>\n<p>Ended up using 64bit libraries for librtlsdr and libusb-1.0 . In fact, needed to using the shared (.so) libraries, not the static ones (.a) due to a weird linker error. Its possible that it happened due to mixing shared and static and I might try again using both static for these 2 libs.<\/p>\n<p>See notes from previous post about issues with USB capture, and non-root user in Linux &#8211; there are 2 flags on the cmake for rtlsdr that might help resolve both of these, but I wasn&#8217;t having any luck and needed to use the method described in previous post.<\/p>\n<p>The source code for linux version is in the \/usr\/lib\/pd-extended\/extra\/rtlsdr~ folder &#8211; and the test pd file is in ~\/pd\/rtlSDR-block.pd, along with some abstractions.<\/p>\n<p>There is also a makefile to build a local version of rtl_fm (rtl_fm3.c) in ~\/rtl-sdr-new\/rtl-sdr\/rtl-fm3\/<\/p>\n<p>This makefile mixes the static and shared libs with no problem&#8230; hmm&#8230;?<\/p>\n<div class=\"panel\">\n<p>next<\/p>\n<\/div>\n<p>Need to package this stuff up and send it to pdsdr github with source for Max\/Pd on mac and Pd on linux. + instructions&#8230; etc.,<\/p>\n<p>Would like to try running on r-pi &#8211; but will need to adapt the test patch to receive Osc messages because there is no gui on r-pi<\/p>\n<p>Also I am some skeptical about running at low sample rates for audio &#8211; we&#8217;ll see&#8230;<\/p>\n<div class=\"panel callout\">\n<p>another note<\/p>\n<\/div>\n<p>Just thinking, that even if I am not able to run rtlsdr~ on r-pi that we could adapt rtl_fm so it receives control input from Pd using Osc and work that way&#8230;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>notes Today was able to get the rtlsdr~ object running in Pd on Ubuntu 14.04 on a Macbook pro. Audio quality seems rough. The only driver I could get to work was Alsa at 44.1KHz &#8211; may be able to get help with this from Pd community. Ended up using 64bit libraries for librtlsdr and &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=10479\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;rtlsdr, Pd, linux&#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,249],"tags":[296,128,190,57,254,243],"class_list":["post-10479","post","type-post","status-publish","format-standard","hentry","category-development","category-dsp","category-pd-2","tag-notebook","tag-pd","tag-portfolio","tag-radio","tag-rtl-sdr","tag-software-defined-radio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>rtlsdr, Pd, linux - 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=10479\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"rtlsdr, Pd, linux - reactive music\" \/>\n<meta property=\"og:description\" content=\"notes Today was able to get the rtlsdr~ object running in Pd on Ubuntu 14.04 on a Macbook pro. Audio quality seems rough. The only driver I could get to work was Alsa at 44.1KHz &#8211; may be able to get help with this from Pd community. Ended up using 64bit libraries for librtlsdr and &hellip; Continue reading &quot;rtlsdr, Pd, linux&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=10479\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-20T19:15:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-06-24T07:40:21+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=10479#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10479\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"rtlsdr, Pd, linux\",\"datePublished\":\"2014-04-20T19:15:26+00:00\",\"dateModified\":\"2014-06-24T07:40:21+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10479\"},\"wordCount\":316,\"keywords\":[\"notebook\",\"Pd\",\"portfolio\",\"radio\",\"rtl-sdr\",\"software defined radio\"],\"articleSection\":[\"development\",\"DSP\",\"Pd\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10479\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10479\",\"name\":\"rtlsdr, Pd, linux - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"datePublished\":\"2014-04-20T19:15:26+00:00\",\"dateModified\":\"2014-06-24T07:40:21+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10479#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=10479\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10479#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"rtlsdr, Pd, linux\"}]},{\"@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":"rtlsdr, Pd, linux - 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=10479","og_locale":"en_US","og_type":"article","og_title":"rtlsdr, Pd, linux - reactive music","og_description":"notes Today was able to get the rtlsdr~ object running in Pd on Ubuntu 14.04 on a Macbook pro. Audio quality seems rough. The only driver I could get to work was Alsa at 44.1KHz &#8211; may be able to get help with this from Pd community. Ended up using 64bit libraries for librtlsdr and &hellip; Continue reading \"rtlsdr, Pd, linux\"","og_url":"https:\/\/reactivemusic.net\/?p=10479","og_site_name":"reactive music","article_published_time":"2014-04-20T19:15:26+00:00","article_modified_time":"2014-06-24T07:40:21+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=10479#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=10479"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"rtlsdr, Pd, linux","datePublished":"2014-04-20T19:15:26+00:00","dateModified":"2014-06-24T07:40:21+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=10479"},"wordCount":316,"keywords":["notebook","Pd","portfolio","radio","rtl-sdr","software defined radio"],"articleSection":["development","DSP","Pd"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=10479","url":"https:\/\/reactivemusic.net\/?p=10479","name":"rtlsdr, Pd, linux - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"datePublished":"2014-04-20T19:15:26+00:00","dateModified":"2014-06-24T07:40:21+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=10479#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=10479"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=10479#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"rtlsdr, Pd, linux"}]},{"@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\/10479","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=10479"}],"version-history":[{"count":8,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/10479\/revisions"}],"predecessor-version":[{"id":16432,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/10479\/revisions\/16432"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10479"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10479"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10479"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}