summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.py3
-rw-r--r--render.py4
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 = {