diff options
| author | Jackson Moore <jacksonmoore@tuta.io> | 2018-06-11 20:12:18 +0200 |
|---|---|---|
| committer | Jackson Moore <jacksonmoore@tuta.io> | 2018-06-11 20:12:18 +0200 |
| commit | d8a495d7b03110096567ea115222341a981a3533 (patch) | |
| tree | 0121c9b490531493bcc3e3933ef09fa3b902a026 /main.py | |
| parent | 452fec5fcebc256a4387c9a17fc450a87e2222fb (diff) | |
refactor rendering function - fewer intermediate data structures
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -35,7 +35,8 @@ print("\n-----------\n-----------\n") passage = Passage(height=5) passage.spellout(lexicon) -passage.print() + +print(passage) # print(passage.bars) print(passage.tree) print() @@ -43,14 +44,12 @@ print() renderer = Renderer() renderer.render(passage, 'viola') - # todo -# working with multiple voices at once +# working with multiple voices # a: make rule groups in spec sheet # b: work out feature track spellout # wrap solution; stretch solution # c: leave space; strecht solution -# record phonology/agreement, spellout to log, label it and score with timestamp # rests after constituents, corresponding to depth # add discovered lexemes, pairwise dependencies to lexicon pre-population, iteratively # pruning algorithm for shorter sentences over taller trees - remove random/weighted leaves from larger tree @@ -58,4 +57,3 @@ renderer.render(passage, 'viola') # convince m21 to break durations into tied notes on the beat # other types of agreement / non-agreement / feature-checking # pitch plug-in / new transposition logic: exact transposition/register of lexeme given; transposition of lens depends thereon - |