{"id":18926,"date":"2015-04-13T01:00:54","date_gmt":"2015-04-13T05:00:54","guid":{"rendered":"https:\/\/reactivemusic.net\/?p=18926"},"modified":"2015-04-13T01:15:53","modified_gmt":"2015-04-13T05:15:53","slug":"mchain","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=18926","title":{"rendered":"mchain"},"content":{"rendered":"<p class=\"lead\">Build Markov in chains in real-time with Max<\/p>\n<p><cite>By Richard Dudas<\/cite><\/p>\n<p><a href=\"http:\/\/www.richarddudas.com\/software\/\">http:\/\/www.richarddudas.com\/software\/<\/a><\/p>\n<p><a href=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-18928\" src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM-300x254.png\" alt=\"Screen Shot 2015-04-13 at 1.03.07 AM\" width=\"300\" height=\"254\" srcset=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM-300x254.png 300w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM.png 850w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Using the text processing example I built a 4th order Markov chain for &#8220;The Cat in The Hat&#8221; (by Dr. Seuss). Here is some of the result (it continues to infinity) with indentation added for readability:<\/p>\n<pre>The sat the sun is not shine.<\/pre>\n<pre>It was to Sit! Sit!<\/pre>\n<pre>And I sat in the house<\/pre>\n<pre>All that?\r\n\r\n<\/pre>\n<pre>How I wish We had something went BUMP! How I wish We did not shine.<\/pre>\n<pre>It was to us jump! We looked!<\/pre>\n<pre>The Cat in that cold to go out And wet to play.<\/pre>\n<pre>So all we sat in the Hat! And he saw him!\r\n\r\n<\/pre>\n<pre>Then we sat is wet to Sit! Sit!<\/pre>\n<pre>And to go out<\/pre>\n<pre>And the house<\/pre>\n<pre>All that?\r\n\r\n<\/pre>\n<pre>Why do was too wet And there little bit. And wet to go out<\/pre>\n<pre>And there we saw him step in on that?<\/pre>\n<pre>How I wish We sat is nothing at all.<\/pre>\n<pre>So all we could do was too wet day.\r\n\r\n<\/pre>\n<pre>So all we sat the house \r\nAll that is fun there we can have Lots of good fun the mat!<\/pre>\n<pre>We had something at all.<\/pre>\n<pre>So wet to go out And the sun is wet to Sit! Sit!\r\n\r\n<\/pre>\n<pre>And I said too wet to do I know it is not sunny!<\/pre>\n<pre>Too we can have Lots of good funny!<\/pre>\n<pre>Too wet And I sat is fun the house. We sat the house. We saw him!<\/pre>\n<pre>The Cat is wet to us.<\/pre>\n<p>&#8230;<\/p>\n<p>The help file patch allows real time Midi improvisation with a step sequencer style of playback:<\/p>\n<p><a href=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.12.49-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-18931\" src=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.12.49-AM-300x234.png\" alt=\"Screen Shot 2015-04-13 at 1.12.49 AM\" width=\"300\" height=\"234\" srcset=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.12.49-AM-300x234.png 300w, https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.12.49-AM.png 878w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Build Markov in chains in real-time with Max By Richard Dudas http:\/\/www.richarddudas.com\/software\/ Using the text processing example I built a 4th order Markov chain for &#8220;The Cat in The Hat&#8221; (by Dr. Seuss). Here is some of the result (it continues to infinity) with indentation added for readability: The sat the sun is not shine. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=18926\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;mchain&#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":[142,19,28],"tags":[154,153,345,335],"class_list":["post-18926","post","type-post","status-publish","format-standard","hentry","category-ideas","category-improvisation","category-maxmsp","tag-algorithmic-composition","tag-markov","tag-maxmsp","tag-probability"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>mchain - 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=18926\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mchain - reactive music\" \/>\n<meta property=\"og:description\" content=\"Build Markov in chains in real-time with Max By Richard Dudas http:\/\/www.richarddudas.com\/software\/ Using the text processing example I built a 4th order Markov chain for &#8220;The Cat in The Hat&#8221; (by Dr. Seuss). Here is some of the result (it continues to infinity) with indentation added for readability: The sat the sun is not shine. &hellip; Continue reading &quot;mchain&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=18926\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2015-04-13T05:00:54+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-04-13T05:15:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM-300x254.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=18926#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"mchain\",\"datePublished\":\"2015-04-13T05:00:54+00:00\",\"dateModified\":\"2015-04-13T05:15:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926\"},\"wordCount\":70,\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/Screen-Shot-2015-04-13-at-1.03.07-AM-300x254.png\",\"keywords\":[\"algorithmic composition\",\"markov\",\"Max\\\/MSP\",\"probability\"],\"articleSection\":[\"ideas\",\"improvisation\",\"Max\\\/MSP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926\",\"name\":\"mchain - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/Screen-Shot-2015-04-13-at-1.03.07-AM-300x254.png\",\"datePublished\":\"2015-04-13T05:00:54+00:00\",\"dateModified\":\"2015-04-13T05:15:53+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=18926\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926#primaryimage\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/Screen-Shot-2015-04-13-at-1.03.07-AM.png\",\"contentUrl\":\"https:\\\/\\\/reactivemusic.net\\\/wp-content\\\/uploads\\\/2015\\\/04\\\/Screen-Shot-2015-04-13-at-1.03.07-AM.png\",\"width\":850,\"height\":722},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=18926#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mchain\"}]},{\"@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":"mchain - 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=18926","og_locale":"en_US","og_type":"article","og_title":"mchain - reactive music","og_description":"Build Markov in chains in real-time with Max By Richard Dudas http:\/\/www.richarddudas.com\/software\/ Using the text processing example I built a 4th order Markov chain for &#8220;The Cat in The Hat&#8221; (by Dr. Seuss). Here is some of the result (it continues to infinity) with indentation added for readability: The sat the sun is not shine. &hellip; Continue reading \"mchain\"","og_url":"https:\/\/reactivemusic.net\/?p=18926","og_site_name":"reactive music","article_published_time":"2015-04-13T05:00:54+00:00","article_modified_time":"2015-04-13T05:15:53+00:00","og_image":[{"url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM-300x254.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=18926#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=18926"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"mchain","datePublished":"2015-04-13T05:00:54+00:00","dateModified":"2015-04-13T05:15:53+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=18926"},"wordCount":70,"image":{"@id":"https:\/\/reactivemusic.net\/?p=18926#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM-300x254.png","keywords":["algorithmic composition","markov","Max\/MSP","probability"],"articleSection":["ideas","improvisation","Max\/MSP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=18926","url":"https:\/\/reactivemusic.net\/?p=18926","name":"mchain - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=18926#primaryimage"},"image":{"@id":"https:\/\/reactivemusic.net\/?p=18926#primaryimage"},"thumbnailUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM-300x254.png","datePublished":"2015-04-13T05:00:54+00:00","dateModified":"2015-04-13T05:15:53+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=18926#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=18926"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/reactivemusic.net\/?p=18926#primaryimage","url":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM.png","contentUrl":"https:\/\/reactivemusic.net\/wp-content\/uploads\/2015\/04\/Screen-Shot-2015-04-13-at-1.03.07-AM.png","width":850,"height":722},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=18926#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"mchain"}]},{"@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\/18926","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=18926"}],"version-history":[{"count":5,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/18926\/revisions"}],"predecessor-version":[{"id":18933,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/18926\/revisions\/18933"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18926"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18926"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18926"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}