From 789e7c10bc8765d498ba9f1e4c3eac35b64b41e7 Mon Sep 17 00:00:00 2001 From: Houyhnhnm Date: Thu, 7 Jun 2018 14:16:34 +0200 Subject: render rhythms to score --- main.py | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'main.py') 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... -- cgit v1.2.3