summaryrefslogtreecommitdiff
path: root/spec.py
diff options
context:
space:
mode:
authorHouyhnhnm <hykusb@bitmai.la>2018-06-05 15:38:15 +0200
committerHouyhnhnm <hykusb@bitmai.la>2018-06-05 15:38:15 +0200
commitfb85212cbc8e7a2866c6dda916e810df2a4ea4e0 (patch)
tree1d0c2f116052aad26ace6d8b32340a23112d29ac /spec.py
parent6f14ded166e35879e0522f2e62347a3a709518e4 (diff)
compute barlines preferentially for most prominent downs
Diffstat (limited to 'spec.py')
-rw-r--r--spec.py57
1 files changed, 47 insertions, 10 deletions
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