From fb85212cbc8e7a2866c6dda916e810df2a4ea4e0 Mon Sep 17 00:00:00 2001 From: Houyhnhnm Date: Tue, 5 Jun 2018 15:38:15 +0200 Subject: compute barlines preferentially for most prominent downs --- spec.py | 57 +++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 47 insertions(+), 10 deletions(-) (limited to 'spec.py') diff --git a/spec.py b/spec.py index 65e6ec8..e95b387 100644 --- a/spec.py +++ b/spec.py @@ -5,25 +5,57 @@ footprintRules = [ 'span': [2], 'gait': ['double'], 'foot': [[-1/2, 0, 1/2]], - 'step': [[0, 1/2], [0, 1/2], [0, 1/2]], + 'sync': [[0, 1/2], [0, 1/2], [0, 1/2]], }], [{ - 'span': [4], - 'gait': ['triple'], + 'span': [1], + 'gait': ['trp_ls'], 'foot': [[-1/2, 0, 1/2]], - 'step': [[0], [1/2], [0]], + 'sync': [[0], [0], [0]], + }], + [{ + '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]], + }], + [{ + 'span': [1], + 'gait': ['trp_sl'], + 'foot': [[-1/2, -1/4, 0, 1/4]], + 'sync': [[0], [0], [0], [0]], + }], + [{ + 'span': [1], + 'gait': ['double'], + 'foot': [[-1/2, -1/4, 0, 1/2]], + 'sync': [[0], [0], [0], [0]], + }], + [{ + 'span': [2], + 'gait': ['trp_ll'], + 'foot': [[-1/2, -1/4, 0, 1/4]], + 'sync': [[0, 1/4], [0, 1/4], [0, 1/4], [0, 1/4]], }], ] functionRules = [ { 'address': ['A1','B1'], - 'transposition': [-1], + 'transposition': [-1,0], }, { 'address': ['C1','D1'], - 'transposition': [0], + 'transposition': [0,1], }, + # { + # 'address': ['D2','C2'], + # 'transposition': [0,1], + # }, + # { + # 'address': ['E1','E2'], + # 'transposition': [0,1], + # }, ] pathRules = [ @@ -40,17 +72,22 @@ pathRules = [ ] anticipationRules = [ - ['footprint'], - ['tilt'], + # ['footprint'], + # ['footprint','tilt'], + # ['footprint','figure'], [], + ['tilt'], + ['figure'], ] prolongationRules = [ - ['address','transposition'], + ['address','figure','range'], + ['address','figure'], + ['address','range'], ['address'], ['figure','range'], + ['figure'], ['range'], - ['range','tilt'], ] # assemble grammar object -- cgit v1.2.3