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 /spec.py | |
| parent | 2be56d2f3541cedd0c4e872aeb5b7da110d9b260 (diff) | |
render rhythms to score
Diffstat (limited to 'spec.py')
| -rw-r--r-- | spec.py | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -1,6 +1,6 @@ from grammar import * -footprintRules = [ +ligatureRules = [ [{ 'span': [2], 'gait': ['double'], @@ -9,7 +9,7 @@ footprintRules = [ }], [{ 'span': [1], - 'gait': ['trp_ls'], + 'gait': ['double'], 'foot': [[-1/2, 0, 1/2]], 'sync': [[0], [0], [0]], }], @@ -17,11 +17,11 @@ footprintRules = [ 'span': [2], 'gait': ['double'], 'foot': [[-1/2, -1/4, 0, 1/2]], - 'sync': [[0, 1/4], [0, 1/4], [0, 1/4], [0, 1/4]], + 'sync': [[0, 1/2], [0, 1/2], [0, 1/2], [0, 1/2]], }], [{ 'span': [1], - 'gait': ['trp_sl'], + 'gait': ['double'], 'foot': [[-1/2, -1/4, 0, 1/4]], 'sync': [[0], [0], [0], [0]], }], @@ -33,9 +33,9 @@ footprintRules = [ }], [{ 'span': [2], - 'gait': ['trp_ll'], + 'gait': ['double'], 'foot': [[-1/2, -1/4, 0, 1/4]], - 'sync': [[0, 1/4], [0, 1/4], [0, 1/4], [0, 1/4]], + 'sync': [[0, 1/2], [0, 1/2], [0, 1/2], [0, 1/2]], }], ] @@ -72,9 +72,9 @@ pathRules = [ ] anticipationRules = [ - # ['footprint'], - # ['footprint','tilt'], - # ['footprint','figure'], + # ['ligature'], + # ['ligature','tilt'], + # ['ligature','figure'], [], ['tilt'], ['figure'], @@ -92,8 +92,8 @@ prolongationRules = [ # assemble grammar object phonology = Phonology() -for rule in footprintRules: - phonology.addFootprintRule(rule) +for rule in ligatureRules: + phonology.addligatureRule(rule) for rule in functionRules: phonology.addFunctionRule(rule) for rule in pathRules: |