From d8a495d7b03110096567ea115222341a981a3533 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Mon, 11 Jun 2018 20:12:18 +0200 Subject: refactor rendering function - fewer intermediate data structures --- main.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 042f054..92ee0e8 100644 --- a/main.py +++ b/main.py @@ -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 - -- cgit v1.2.3