summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorHouyhnhnm <hykusb@bitmai.la>2018-06-07 14:16:34 +0200
committerHouyhnhnm <hykusb@bitmai.la>2018-06-07 14:16:34 +0200
commit789e7c10bc8765d498ba9f1e4c3eac35b64b41e7 (patch)
tree0872e3b8b3c26753579392743789c160d0def095 /main.py
parent2be56d2f3541cedd0c4e872aeb5b7da110d9b260 (diff)
render rhythms to score
Diffstat (limited to 'main.py')
-rw-r--r--main.py24
1 files changed, 13 insertions, 11 deletions
diff --git a/main.py b/main.py
index 4a285ac..c10e210 100644
--- a/main.py
+++ b/main.py
@@ -27,24 +27,26 @@ render.py list of n passages rendered to music21 score object
# g.morphology.print()
lexicon = Lexicon()
-lexicon.populate(g, 4)
+lexicon.populate(g, 8)
lexicon.print()
+print("\n-----------\n-----------\n")
passage = Passage(height=5, size=23)
+passage.spellout(lexicon)
+passage.print()
-realization = passage.spellout(lexicon)
-# passage.printSyntax()
-
-# for lex in realization:
-# lex.print()
-
-passage.setMeter()
-print(passage.tree)
-print(passage.bars)
+# print(passage.bars)
+# print(passage.tree)
print()
# next: go through spellout, create musical data, append to music21 score
-# then: add good lexemes, dependency of good lexeme pairs to lexicon pre-population, iteratively...
+
+renderer = Renderer()
+renderer.render(passage)
+
+
+
+# then: add good lexemes, good pairwise dependencies to lexicon pre-population, iteratively...