User:Natasa Siencnik/prototyping/markov: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
Line 8: Line 8:


===Concept===
===Concept===
[[File:Scetchbook2011-02_markov.jpg | 750px]]<br />
[[File:Scetchbook2011-01_markov.jpg | 750px]]<br />
[[File:Scetchbook2011-01_markov.jpg | 750px]]<br />


===Scripting Progress===
===Scripting Progress===

Revision as of 09:54, 24 May 2011


The Art of the Fugue

MARKOV CHAIN WITH J.S. BACH

Concept

Scetchbook2011-02 markov.jpg
Scetchbook2011-01 markov.jpg

Scripting Progress

Python : Script 2011-05-23
#!/usr/bin/env python

import random

nexttone = {}
nexttone = {"l2/d3":["l2/a3", "l2/c+3"], l2/a3: ["l2/f3"], l2/f3: ["l2/d3", "l8/f3"], l2/c+3: ["l4/d3"], l4/d3: ["l4/e3"], l4/e3: ["l2/f3"], l8/f3: ["l8/g3","l8/e3"], l8/g3: ["l8/f3"], l8/e3: ["l2/d3"]}

#l2/d3: ["l2/a3", "l2/c+3"]
#l2/a3: ["l2/f3"]
#l2/f3: ["l2/d3", "l8/f3"]
#l2/c+3: ["l4/d3"]
#l4/d3: ["l4/e3"]
#l4/e3: ["l2/f3"]
#l8/f3: ["l8/g3","l8/e3"]
#l8/g3: ["l8/f3"]
#l8/e3: ["l2/d3"]
Python : Script 2011-05-24

Useful Links

http://en.wikipedia.org/wiki/The_Art_of_Fugue

http://pzwart3.wdka.hro.nl/wiki/Poetry_generators

http://pzwart3.wdka.hro.nl/wiki/Sedsongs#midge

http://manpages.ubuntu.com/manpages/hardy/man1/midge.1.html

http://piano.congland.com/