{"id":20888,"date":"2024-01-17T01:44:25","date_gmt":"2024-01-17T06:44:25","guid":{"rendered":"https:\/\/reactivemusic.net\/?p=20888"},"modified":"2024-01-17T01:45:01","modified_gmt":"2024-01-17T06:45:01","slug":"max-msp-text-to-morse-code-generator","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=20888","title":{"rendered":"Max\/MSP text to Morse code generator"},"content":{"rendered":"<p>work in progress. not published.<\/p>\n<p>I needed a text to morse code generator in Max for the Twitter streaming map project. There was an ancient one that used [mxj] but its kind of a pain to use that object. I thought it can\u2019t be that difficult to write one? I didn\u2019t really have any idea where to start. Something about the blank Max patch causes brain activity? I went through about 5 different approaches. Eventually came up with this pattern thing, from thinking about the lighted buttons on the tr-808 drum machine.<\/p>\n<p>For example, the letter A is . _ (dot dash)<\/p>\n<p>morse code has rules for spacing:<\/p>\n<p>dot = 1<br \/>\nspace between tones = 1<br \/>\ndash = 3<br \/>\nspace between letters = 3<br \/>\nspace between words = 7<\/p>\n<p>If you think of a drum machine pattern, the pattern for letter A would be: 1 0 1 1 1 0 0 0 \u00a0(with the 3 trailing 0\u2019s for letter spacing)<\/p>\n<p>I made a [coll] with all the letter patterns indexed by ascii codes.<\/p>\n<p>Then just concatenate letter patterns, for a given block of text, \u00a0together into one big list and run it through [zl.nth] clocked by a [metro] and [counter]. the ones and zero\u2019s turn an oscillator on and off.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-20889\" src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM-300x139.png\" alt=\"\" width=\"300\" height=\"139\" srcset=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM-300x139.png 300w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM-1024x475.png 1024w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM-768x356.png 768w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM-1536x712.png 1536w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM.png 1968w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>local file: tkzic\/internetsensors\/twitter-stream2\/morse5.maxpat<\/p>\n","protected":false},"excerpt":{"rendered":"<p>work in progress. not published. I needed a text to morse code generator in Max for the Twitter streaming map project. There was an ancient one that used [mxj] but its kind of a pain to use that object. I thought it can\u2019t be that difficult to write one? I didn\u2019t really have any idea &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=20888\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Max\/MSP text to Morse code generator&#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,273,332],"tags":[344,345,57,32],"class_list":["post-20888","post","type-post","status-publish","format-standard","hentry","category-development","category-max-projects","category-radio-2","tag-dsp","tag-maxmsp","tag-radio","tag-tools"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Max\/MSP text to Morse code generator - 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=20888\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Max\/MSP text to Morse code generator - reactive music\" \/>\n<meta property=\"og:description\" content=\"work in progress. not published. I needed a text to morse code generator in Max for the Twitter streaming map project. There was an ancient one that used [mxj] but its kind of a pain to use that object. I thought it can\u2019t be that difficult to write one? I didn\u2019t really have any idea &hellip; Continue reading &quot;Max\/MSP text to Morse code generator&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=20888\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-17T06:44:25+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-17T06:45:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM-300x139.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=20888#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"Max\\\/MSP text to Morse code generator\",\"datePublished\":\"2024-01-17T06:44:25+00:00\",\"dateModified\":\"2024-01-17T06:45:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888\"},\"wordCount\":206,\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Screenshot-2024-01-17-at-1.39.20-AM-300x139.png\",\"keywords\":[\"DSP\",\"Max\\\/MSP\",\"radio\",\"tools\"],\"articleSection\":[\"development\",\"max-projects\",\"Radio\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888\",\"name\":\"Max\\\/MSP text to Morse code generator - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Screenshot-2024-01-17-at-1.39.20-AM-300x139.png\",\"datePublished\":\"2024-01-17T06:44:25+00:00\",\"dateModified\":\"2024-01-17T06:45:01+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=20888\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888#primaryimage\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Screenshot-2024-01-17-at-1.39.20-AM.png\",\"contentUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/Screenshot-2024-01-17-at-1.39.20-AM.png\",\"width\":1968,\"height\":912},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=20888#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Max\\\/MSP text to Morse code generator\"}]},{\"@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":"Max\/MSP text to Morse code generator - 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=20888","og_locale":"en_US","og_type":"article","og_title":"Max\/MSP text to Morse code generator - reactive music","og_description":"work in progress. not published. I needed a text to morse code generator in Max for the Twitter streaming map project. There was an ancient one that used [mxj] but its kind of a pain to use that object. I thought it can\u2019t be that difficult to write one? I didn\u2019t really have any idea &hellip; Continue reading \"Max\/MSP text to Morse code generator\"","og_url":"https:\/\/reactivemusic.net\/?p=20888","og_site_name":"reactive music","article_published_time":"2024-01-17T06:44:25+00:00","article_modified_time":"2024-01-17T06:45:01+00:00","og_image":[{"url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM-300x139.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=20888#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=20888"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"Max\/MSP text to Morse code generator","datePublished":"2024-01-17T06:44:25+00:00","dateModified":"2024-01-17T06:45:01+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=20888"},"wordCount":206,"image":{"@id":"https:\/\/reactivemusic.net\/?p=20888#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM-300x139.png","keywords":["DSP","Max\/MSP","radio","tools"],"articleSection":["development","max-projects","Radio"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=20888","url":"https:\/\/reactivemusic.net\/?p=20888","name":"Max\/MSP text to Morse code generator - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=20888#primaryimage"},"image":{"@id":"https:\/\/reactivemusic.net\/?p=20888#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM-300x139.png","datePublished":"2024-01-17T06:44:25+00:00","dateModified":"2024-01-17T06:45:01+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=20888#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=20888"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/reactivemusic.net\/?p=20888#primaryimage","url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM.png","contentUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2024\/01\/Screenshot-2024-01-17-at-1.39.20-AM.png","width":1968,"height":912},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=20888#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"Max\/MSP text to Morse code generator"}]},{"@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\/20888","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=20888"}],"version-history":[{"count":2,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20888\/revisions"}],"predecessor-version":[{"id":20891,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/20888\/revisions\/20891"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=20888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=20888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=20888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}