diff options
| author | Houyhnhnm <hykusb@bitmai.la> | 2018-06-07 14:16:34 +0200 |
|---|---|---|
| committer | Houyhnhnm <hykusb@bitmai.la> | 2018-06-07 14:16:34 +0200 |
| commit | 789e7c10bc8765d498ba9f1e4c3eac35b64b41e7 (patch) | |
| tree | 0872e3b8b3c26753579392743789c160d0def095 /main.py | |
| parent | 2be56d2f3541cedd0c4e872aeb5b7da110d9b260 (diff) | |
render rhythms to score
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 24 |
1 files changed, 13 insertions, 11 deletions
@@ -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... |