From 766c361e83843740afeaa8320f3b1bd58506bce1 Mon Sep 17 00:00:00 2001 From: Jackson Moore Date: Sun, 10 Jun 2018 19:05:23 +0200 Subject: added node labeling and heading text --- main.py | 3 +-- render.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index e62a21b..042f054 100644 --- a/main.py +++ b/main.py @@ -50,11 +50,10 @@ renderer.render(passage, 'viola') # b: work out feature track spellout # wrap solution; stretch solution # c: leave space; strecht solution -# label events on score # record phonology/agreement, spellout to log, label it and score with timestamp # rests after constituents, corresponding to depth -# pruning algorithm for shorter sentences over taller trees - remove random/weighted leaves from larger tree # 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 # spec bundles which can be selected and unified (merge-mask) until a full lexeme is obtained (allowing all feature correlations) # convince m21 to break durations into tied notes on the beat # other types of agreement / non-agreement / feature-checking diff --git a/render.py b/render.py index 8ef01e7..155670a 100644 --- a/render.py +++ b/render.py @@ -160,8 +160,8 @@ class Renderer(object): word_site = "http://svnweb.freebsd.org/csrg/share/dict/words?view=co&content-type=text/plain" response = requests.get(word_site) words = response.content.splitlines() - word = choice(words).capitalize() - title = word.decode("utf-8")+" · "+str(timestamp) + word = choice(words).decode("utf-8").capitalize() + title = word+" · "+str(timestamp) return (title, date) timeSignatures = { -- cgit v1.2.3