<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[markovGenerator: A music generator based on Markov chains with variable length]]></title><description><![CDATA[<p><em>Edit: There is a general [markov] abstraction now at <a href="https://forum.pdpatchrepo.info/topic/12147/midi-into-seq-and-markov-chains/45" rel="nofollow">https://forum.pdpatchrepo.info/topic/12147/midi-into-seq-and-markov-chains/45</a></em></p>
<p>This is one of the early projects by <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jona">@Jona</a> and me. Happy to finally release it. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p><strong>markovGenerator</strong></p>
<p>Generates music from learned material using Markov chains. It is polyphonic, plays endlessly and supports Markov chains with variable length.</p>
<p><a href="/uploads/files/1497189350998-markovgenerator.zip">markovGenerator.zip</a>  (updated)</p>
<p>Usage:</p>
<ol>
<li>Record midi notes or load midi files</li>
<li>Make Markov system</li>
<li>Play</li>
</ol>
<p><img src="/uploads/files/1497112952835-screenshot-from-2017-06-10-05-51-17.png" alt="Screenshot from 2017-06-10 05:51:17.png" class="img-responsive img-markdown" /></p>
<ol>
<li>
<p>Record midi notes or load midi files<br />
Until you reset the memory, each new recording will be added to the memory. The recorded material is seen as a loop, so that the last note is followed by the the first note, for endless play. markovGenerator handles recording midi and loading midi files differently: When you record midi, it will record notes according to the midi clock every sixth midi tick. This is defined in the counter in [pd midiclock]. So that way, breaks are being recorded and the rhythm is preserved. When loading midi files, no breaks are being recorded, the notes are just recorded in order, so the rhythm will be lost. In any case, simultaneous notes will be recorded as chords, so polyphony is preserved.</p>
</li>
<li>
<p>Make Markov system<br />
Set markovOrder to specify the length of the Markov chain. The higher the order, the more musical information will be kept, the lower the order, the more random it gets. You can use soundFilter and channelFilter to only use notes of the specified sound or channel. This is especially useful when working with midi files. Note that if there are no notes of the specified sound or channel, the Markov system will be empty and nothing will be played. Set the filters to zero to disable them. If you change the settings for the Markov system, click makeMarkov again for them to take effect. You can make new Markov systems with different settings out of the same recorded material over and over again, even when playing. If you record additional notes, click makeMarkov again to incorporate them into the Markov system.</p>
</li>
<li>
<p>Play<br />
While playing, you can change the note length, sound and midi out channel. Set soundOut and channelOut to zero to use the sound and channel information of the original material. Playing starts with the Markov chain of the last recorded notes, so the first note might be played first.</p>
</li>
</ol>
<p>Use the markovAll section on the right to control all Markov channels at once. Here you can also set tempo, swing and midiSync, and you can save the project or load previous projects.</p>
<p>Have fun! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>If it does not play, make sure that</p>
<ul>
<li>you recorded some notes,</li>
<li>you hit the makeMarkov button,</li>
<li>soundFilter and channelFilter are not set to values where there are no notes. Try setting the filters to zero and hit makeMarkov again.</li>
</ul>
<p>About the Markov system:<br />
You can see the Markov system of each Markov channel in [text define $0markov]. Notes are stored as symbols, where the values are joined by &quot;?&quot;. A note might look like 42?69?35?10 (pitch?velocity?sound?channel). Chords are joined by &quot;=&quot;. A chord of two notes might look like 40?113?35?10=42?49?35?10. Notes and chords are joined to Markov chains by &quot;-&quot;. The velocity values are not included in the chains. Sound and midi channel values are only included, if soundFilter or channelFilter are off, respectively. Markov chains of order three may look like 42?35?10-36?35?10=42?35?10-60?35?2 with filters off and simply like 42-37-40 with both filters active, only using the pitch value.</p>
<p>Requires Pd 0.47.1 with the libraries cyclone, zexy and list-abs.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 08:23:39 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/10791.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Jun 2017 17:05:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to markovGenerator: A music generator based on Markov chains with variable length on Sat, 20 Jul 2019 22:13:10 GMT]]></title><description><![CDATA[<p><em>Edit: There is a general [markov] abstraction now at <a href="https://forum.pdpatchrepo.info/topic/12147/midi-into-seq-and-markov-chains/45" rel="nofollow">https://forum.pdpatchrepo.info/topic/12147/midi-into-seq-and-markov-chains/45</a></em></p>
<p>This is one of the early projects by <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jona">@Jona</a> and me. Happy to finally release it. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p><strong>markovGenerator</strong></p>
<p>Generates music from learned material using Markov chains. It is polyphonic, plays endlessly and supports Markov chains with variable length.</p>
<p><a href="/uploads/files/1497189350998-markovgenerator.zip">markovGenerator.zip</a>  (updated)</p>
<p>Usage:</p>
<ol>
<li>Record midi notes or load midi files</li>
<li>Make Markov system</li>
<li>Play</li>
</ol>
<p><img src="/uploads/files/1497112952835-screenshot-from-2017-06-10-05-51-17.png" alt="Screenshot from 2017-06-10 05:51:17.png" class="img-responsive img-markdown" /></p>
<ol>
<li>
<p>Record midi notes or load midi files<br />
Until you reset the memory, each new recording will be added to the memory. The recorded material is seen as a loop, so that the last note is followed by the the first note, for endless play. markovGenerator handles recording midi and loading midi files differently: When you record midi, it will record notes according to the midi clock every sixth midi tick. This is defined in the counter in [pd midiclock]. So that way, breaks are being recorded and the rhythm is preserved. When loading midi files, no breaks are being recorded, the notes are just recorded in order, so the rhythm will be lost. In any case, simultaneous notes will be recorded as chords, so polyphony is preserved.</p>
</li>
<li>
<p>Make Markov system<br />
Set markovOrder to specify the length of the Markov chain. The higher the order, the more musical information will be kept, the lower the order, the more random it gets. You can use soundFilter and channelFilter to only use notes of the specified sound or channel. This is especially useful when working with midi files. Note that if there are no notes of the specified sound or channel, the Markov system will be empty and nothing will be played. Set the filters to zero to disable them. If you change the settings for the Markov system, click makeMarkov again for them to take effect. You can make new Markov systems with different settings out of the same recorded material over and over again, even when playing. If you record additional notes, click makeMarkov again to incorporate them into the Markov system.</p>
</li>
<li>
<p>Play<br />
While playing, you can change the note length, sound and midi out channel. Set soundOut and channelOut to zero to use the sound and channel information of the original material. Playing starts with the Markov chain of the last recorded notes, so the first note might be played first.</p>
</li>
</ol>
<p>Use the markovAll section on the right to control all Markov channels at once. Here you can also set tempo, swing and midiSync, and you can save the project or load previous projects.</p>
<p>Have fun! <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/grinning.png" title=":)" alt=":)" /></p>
<p>If it does not play, make sure that</p>
<ul>
<li>you recorded some notes,</li>
<li>you hit the makeMarkov button,</li>
<li>soundFilter and channelFilter are not set to values where there are no notes. Try setting the filters to zero and hit makeMarkov again.</li>
</ul>
<p>About the Markov system:<br />
You can see the Markov system of each Markov channel in [text define $0markov]. Notes are stored as symbols, where the values are joined by &quot;?&quot;. A note might look like 42?69?35?10 (pitch?velocity?sound?channel). Chords are joined by &quot;=&quot;. A chord of two notes might look like 40?113?35?10=42?49?35?10. Notes and chords are joined to Markov chains by &quot;-&quot;. The velocity values are not included in the chains. Sound and midi channel values are only included, if soundFilter or channelFilter are off, respectively. Markov chains of order three may look like 42?35?10-36?35?10=42?35?10-60?35?2 with filters off and simply like 42-37-40 with both filters active, only using the pitch value.</p>
<p>Requires Pd 0.47.1 with the libraries cyclone, zexy and list-abs.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Sat, 20 Jul 2019 22:13:10 GMT</pubDate></item><item><title><![CDATA[Reply to markovGenerator: A music generator based on Markov chains with variable length on Sat, 10 Jun 2017 17:44:36 GMT]]></title><description><![CDATA[<p>If you load, let's say, a song from Michael Jackson and one from Johann Sebastian Bach, it will generate music based on ideas of both of them. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
<p>The more ideas they have in common, the more variability will be in the music.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/2</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Sat, 10 Jun 2017 17:44:36 GMT</pubDate></item><item><title><![CDATA[Reply to markovGenerator: A music generator based on Markov chains with variable length on Sat, 10 Jun 2017 18:59:48 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> Thanks for sharing, this looks very interesting. However on vanilla 0.47.1 I get the error &quot;... couldn't create&quot; for the following objects:</p>
<p>counter<br />
seq<br />
midiparse<br />
midiformat<br />
midiflush</p>
<p>I have the libraries installed through deken.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/3</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Sat, 10 Jun 2017 18:59:48 GMT</pubDate></item><item><title><![CDATA[Reply to markovGenerator: A music generator based on Markov chains with variable length on Sat, 10 Jun 2017 19:48:40 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/weightless">@weightless</a> These are from cyclone... i have cyclone 0.3-alpha-1 installed...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/4</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Sat, 10 Jun 2017 19:48:40 GMT</pubDate></item><item><title><![CDATA[Reply to markovGenerator: A music generator based on Markov chains with variable length on Sat, 10 Jun 2017 20:02:55 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> That's the same one I've got. I've also added it to pd &gt; preferences &gt; startup.<br />
I don't understand why if I create a new patch and type [cyclone/midiparse] for example, it works, but not with just the object's name, which is a problem for the patches I download here on the forum because I have to rename all the instances. How do you get it to work without typing the library name as well?<br />
Thanks a lot</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/5</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Sat, 10 Jun 2017 20:02:55 GMT</pubDate></item><item><title><![CDATA[Reply to markovGenerator: A music generator based on Markov chains with variable length on Sat, 10 Jun 2017 20:22:53 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/weightless">@weightless</a> The path  for most externals goes into Preferences &gt; Path... . Gem is the only library i know of that goes into Startup...</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/6</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Sat, 10 Jun 2017 20:22:53 GMT</pubDate></item><item><title><![CDATA[Reply to markovGenerator: A music generator based on Markov chains with variable length on Sat, 10 Jun 2017 20:33:46 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/ingox">@ingox</a> Thanks for your help, I still can't get it to work but I'll open a new thread since it's got nothing to do with your patch.<br />
Can't wait to try it out, thanks for sharing it.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/7</guid><dc:creator><![CDATA[weightless]]></dc:creator><pubDate>Sat, 10 Jun 2017 20:33:46 GMT</pubDate></item><item><title><![CDATA[Reply to markovGenerator: A music generator based on Markov chains with variable length on Sat, 10 Jun 2017 20:48:19 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/weightless">@weightless</a> i also made a version with some externals included:</p>
<p><a href="/uploads/files/1497126867181-markovgenerator-with-externals.zip">markovGenerator-with-externals.zip</a></p>
<p>Included are objects from:</p>
<ul>
<li>cyclone linux, windows, osx (only tested with linux)</li>
<li>zexy linux</li>
<li>list-abs</li>
</ul>
<p>Also included are vanilla substitutes for the objects from zexy, which are not linked in the source code. They can be used by replacing &quot;abs/zexy&quot; with &quot;abs/l2s2l&quot; in the declare. From <a href="http://forum.pdpatchrepo.info/topic/10556/vanilla-list2symbol-abstraction-pd-0-47/5">http://forum.pdpatchrepo.info/topic/10556/vanilla-list2symbol-abstraction-pd-0-47/5</a>.</p>
<p>But better to get the extensions working natively, i won't update this version in the future. <img class="emoji emoji-extended" src="http://forum.pdpatchrepo.info/plugins/nodebb-plugin-emoji-extended/images/wink.png" title=";)" alt=";)" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/8</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Sat, 10 Jun 2017 20:48:19 GMT</pubDate></item><item><title><![CDATA[Reply to markovGenerator: A music generator based on Markov chains with variable length on Sun, 11 Jun 2017 04:42:10 GMT]]></title><description><![CDATA[<p>Apparently there was no sound, should be fixed now. Thanks <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jona">@Jona</a>!</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/10791/markovgenerator-a-music-generator-based-on-markov-chains-with-variable-length/9</guid><dc:creator><![CDATA[ingox]]></dc:creator><pubDate>Sun, 11 Jun 2017 04:42:10 GMT</pubDate></item></channel></rss>