summaryrefslogtreecommitdiff
path: root/spec.py
diff options
context:
space:
mode:
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