{"id":8692,"date":"2013-12-23T11:56:52","date_gmt":"2013-12-23T11:56:52","guid":{"rendered":"http:\/\/zerokidz.com\/ideas\/?p=8692"},"modified":"2014-06-24T20:46:32","modified_gmt":"2014-06-25T00:46:32","slug":"rtty-at-300-bps-in-max","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=8692","title":{"rendered":"RTTY at 300+ bps in Max"},"content":{"rendered":"<h5>notes<\/h5>\n<p>After a few vexing timing issues I have been able to send and decode RTTY (technically AFSK audio frequency shift keying ) in Max at 300 baud. Click hear to listen to an example of a 13 word message at 300 bps (300 baud)<\/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\/12\/max-rtty-300bps.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>The js object adds significant delays (on the order of a few milliseconds) &#8211; so I replaced the encoder with a coll and that cleaned up the timing problems when encoding. This patch demonstrates the issue:<\/p>\n<p><a href=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-8694\" title=\"Screen Shot 2013-12-23 at 6.43.10 AM\" src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM-280x300.png\" alt=\"\" width=\"280\" height=\"300\" srcset=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM-280x300.png 280w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM.png 589w\" sizes=\"auto, (max-width: 280px) 100vw, 280px\" \/><\/a><\/p>\n<p>Also\u2026 You can use threshold~ instead of snapshot~to feed binary pulse amplitude detection logic into edge~ &#8211; but you need to run the signal through average~ to prevent the amplitude from repeatedly dropping to zero at the signal frequency. Like this:<\/p>\n<p><a href=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.48.23-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-8695\" title=\"Screen Shot 2013-12-23 at 6.48.23 AM\" src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.48.23-AM-166x300.png\" alt=\"\" width=\"166\" height=\"300\" srcset=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.48.23-AM-166x300.png 166w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.48.23-AM.png 179w\" sizes=\"auto, (max-width: 166px) 100vw, 166px\" \/><\/a><\/p>\n<p>Is it better than snapshot~? it seems to be, but who knows &#8211; at these speeds it would probably be better to write the whole thing in gen~<\/p>\n<p>There are a few other things &#8211; like using counter~ instead of phasor~ to drive the decoder clock. This allows you to restart the clock, when the onset of the start bit is detected &#8211; and you can add a variable amount of delay to find optimal point in the signal vector to read the pulse. At 300 bps, at 96k SR, each pulse is 320 samples (3.1 milliseconds) &#8211;<\/p>\n<p>I&#8217;ll write more on this later &#8211;<\/p>\n<p>The Katja Vetter article on Beat-Slicing was helpful &#8211; along with several Max tutorials on Audio control rates, and envelope followers.<\/p>\n<p>Local Patches are in;<\/p>\n<p>tkzic\/ max teaching examples\/<\/p>\n<ul>\n<li>rtty-send10.maxpat<\/li>\n<li>rtty-recv9a.maxpat<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>notes After a few vexing timing issues I have been able to send and decode RTTY (technically AFSK audio frequency shift keying ) in Max at 300 baud. Click hear to listen to an example of a 13 word message at 300 bps (300 baud) The js object adds significant delays (on the order of &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=8692\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;RTTY at 300+ bps in Max&#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":[21,28],"tags":[345,296,190,57],"class_list":["post-8692","post","type-post","status-publish","format-standard","hentry","category-dsp","category-maxmsp","tag-maxmsp","tag-notebook","tag-portfolio","tag-radio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>RTTY at 300+ bps in Max - 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=8692\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RTTY at 300+ bps in Max - reactive music\" \/>\n<meta property=\"og:description\" content=\"notes After a few vexing timing issues I have been able to send and decode RTTY (technically AFSK audio frequency shift keying ) in Max at 300 baud. Click hear to listen to an example of a 13 word message at 300 bps (300 baud) The js object adds significant delays (on the order of &hellip; Continue reading &quot;RTTY at 300+ bps in Max&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=8692\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2013-12-23T11:56:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-06-25T00:46:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM-280x300.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=8692#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"RTTY at 300+ bps in Max\",\"datePublished\":\"2013-12-23T11:56:52+00:00\",\"dateModified\":\"2014-06-25T00:46:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692\"},\"wordCount\":272,\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/12\\\/Screen-Shot-2013-12-23-at-6.43.10-AM-280x300.png\",\"keywords\":[\"Max\\\/MSP\",\"notebook\",\"portfolio\",\"radio\"],\"articleSection\":[\"DSP\",\"Max\\\/MSP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692\",\"name\":\"RTTY at 300+ bps in Max - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/12\\\/Screen-Shot-2013-12-23-at-6.43.10-AM-280x300.png\",\"datePublished\":\"2013-12-23T11:56:52+00:00\",\"dateModified\":\"2014-06-25T00:46:32+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=8692\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692#primaryimage\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/12\\\/Screen-Shot-2013-12-23-at-6.43.10-AM.png\",\"contentUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2013\\\/12\\\/Screen-Shot-2013-12-23-at-6.43.10-AM.png\",\"width\":\"589\",\"height\":\"630\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=8692#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RTTY at 300+ bps in Max\"}]},{\"@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":"RTTY at 300+ bps in Max - 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=8692","og_locale":"en_US","og_type":"article","og_title":"RTTY at 300+ bps in Max - reactive music","og_description":"notes After a few vexing timing issues I have been able to send and decode RTTY (technically AFSK audio frequency shift keying ) in Max at 300 baud. Click hear to listen to an example of a 13 word message at 300 bps (300 baud) The js object adds significant delays (on the order of &hellip; Continue reading \"RTTY at 300+ bps in Max\"","og_url":"https:\/\/reactivemusic.net\/?p=8692","og_site_name":"reactive music","article_published_time":"2013-12-23T11:56:52+00:00","article_modified_time":"2014-06-25T00:46:32+00:00","og_image":[{"url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM-280x300.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=8692#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=8692"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"RTTY at 300+ bps in Max","datePublished":"2013-12-23T11:56:52+00:00","dateModified":"2014-06-25T00:46:32+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=8692"},"wordCount":272,"image":{"@id":"https:\/\/reactivemusic.net\/?p=8692#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM-280x300.png","keywords":["Max\/MSP","notebook","portfolio","radio"],"articleSection":["DSP","Max\/MSP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=8692","url":"https:\/\/reactivemusic.net\/?p=8692","name":"RTTY at 300+ bps in Max - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=8692#primaryimage"},"image":{"@id":"https:\/\/reactivemusic.net\/?p=8692#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM-280x300.png","datePublished":"2013-12-23T11:56:52+00:00","dateModified":"2014-06-25T00:46:32+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=8692#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=8692"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/reactivemusic.net\/?p=8692#primaryimage","url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM.png","contentUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2013\/12\/Screen-Shot-2013-12-23-at-6.43.10-AM.png","width":"589","height":"630"},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=8692#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"RTTY at 300+ bps in Max"}]},{"@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\/8692","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=8692"}],"version-history":[{"count":13,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/8692\/revisions"}],"predecessor-version":[{"id":16718,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/8692\/revisions\/16718"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}