summaryrefslogtreecommitdiff
path: root/spec.py
diff options
context:
space:
mode:
Diffstat (limited to 'spec.py')
-rw-r--r--spec.py148
1 files changed, 106 insertions, 42 deletions
diff --git a/spec.py b/spec.py
index 62335be..726e0a7 100644
--- a/spec.py
+++ b/spec.py
@@ -2,99 +2,163 @@ from grammar import *
ligatureRules = [
[{
- 'span': [2],
+ 'span': [1],
'gait': ['double'],
'foot': [[-1/2, 0, 1/2], [-1/2, 0, 1/2]],
- 'sync': [[0, 1/2], [0, 1/2], [0, 1/2]],
+ 'sync': [[0], [0], [-1/2], [0], [0], [-1/2]],
}],
[{
'span': [1],
'gait': ['double'],
- 'foot': [[-1/2, 0, 1/2], [-1/2, 0, 1/2]],
- 'sync': [[0], [0], [0]],
+ 'foot': [[-1/2, 0, 1/2], [-1/2, 0], [-1/2, 0]],
+ 'sync': [[0], [0], [0], [0], [0, 1/2], [0], [0, 1/2]], #
}],
[{
'span': [2],
- 'gait': ['double'],
- 'foot': [[-1/2, -1/4, 0, 1/2], [-1/2, 0, 1/2]],
- 'sync': [[0, 1/2], [0, 1/2], [0, 1/2], [0, 1/2]],
+ 'gait': ['quint_ss', 'trip_ss'],
+ 'foot': [[1/2, 0, 1/2], [-1/2, 0, 1/2]],
+ 'sync': [[0], [0], [0], [0], [0], [0]],
}],
[{
'span': [1],
'gait': ['double'],
- 'foot': [[-1/2, -1/4, 0, 1/4]],
- 'sync': [[0], [0], [0], [0]],
+ 'foot': [[-1/2, 0], [-1/2, 0, 1/2]],
+ 'sync': [[0, 1/2], [0], [0], [0], [0]],
}],
[{
'span': [1],
- 'gait': ['double'],
+ 'gait': ['trip_ss'],
+ 'foot': [[-1/2, 0, 1/2], [-1/2, 0, 1/2]],
+ 'sync': [[0], [0], [0], [0], [0], [0]],
+ }],
+ [{
+ 'span': [1],
+ 'gait': ['trip_ss'],
+ 'foot': [[-1/2, 0, 1/2], [-1/2, 0, 1/2]],
+ 'sync': [[0], [0], [0], [0], [0], [0]],
+ }],
+ [{
+ 'span': [1],
+ 'gait': ['quint_ss','trip_ss', 'double'],
+ 'foot': [[0, 1/2], [0], [0, 1/2]],
+ 'sync': [[0], [0], [0], [0], [0]],
+ }],
+ [{
+ 'span': [1],
+ 'gait': ['quint_ss','trip_ss', 'double'],
+ 'foot': [[-1/2, 0], [0], [1/2, 0]],
+ 'sync': [[0], [0], [0], [0], [0]],
+ }],
+ [{
+ 'span': [2,4],
+ 'gait': ['trip_ss','quint_ss','double'],
+ 'foot': [[-1/2, 0],[-1/2, 0],[-1/2, 0],[0]],
+ 'sync': [[0], [0], [0], [0], [0], [0], [-1/2]],
+ }],
+ [{
+ 'span': [2,4],
+ 'gait': ['trip_ss','quint_ss'],
'foot': [[-1/2, -1/4, 0, 1/2]],
'sync': [[0], [0], [0], [0]],
}],
[{
- 'span': [2],
+ 'span': [1,4],
'gait': ['double'],
'foot': [[-1/2, -1/4, 0, 1/4]],
- 'sync': [[0, 1/2], [0, 1/2], [0, 1/2], [0, 1/2]],
+ 'sync': [[0, 1/2], [0], [0], [0]],
}],
]
functionRules = [
{
'address': ['A1','B1'],
- 'transposition': [-1,0],
+ 'transposition': [-1,0,1],
},
{
'address': ['C1','D1'],
- 'transposition': [0,1],
+ 'transposition': [-1,0,1],
+ },
+ {
+ 'address': ['D2','C2'],
+ 'transposition': [-1,0,1],
+ },
+ {
+ 'address': ['E1','E2'],
+ 'transposition': [-1,0,1],
},
- # {
- # 'address': ['D2','C2'],
- # 'transposition': [0,1],
- # },
- # {
- # 'address': ['E1','E2'],
- # 'transposition': [0,1],
- # },
]
+#
+# ['flat']
+# ['rampDown','accDown','decDown','sawtooth1Down','sawtooth2Down','sawtooth3Down']
+# ['rampUp','accUp','decUp','sawtooth1Up','sawtooth2Up','sawtooth3Up']
+# ['triangleUp','saddleUp','spikeUp','zigZagUp']
+# ['triangleDown','saddleDown','spikeDown','zigZagDown']
+#
+
pathRules = [
{
- 'range': [2,3,4],
- 'figure': ['zigZagUp', 'zigZagDown'],
- 'direction': [-1, 0, 1],
+ 'range': [9,10,11],
+ 'figure': ['saddleUp','spikeUp'],
+ 'direction': [1],
},
{
- 'range': [5,6,7],
- 'figure': ['rampUp'],
- 'direction': [-4,-5,-6],
+ 'range': [6,7,8],
+ 'figure': ['saddleDown','spikeDown'],
+ 'direction': [-1],
},
+ # {
+ # 'range': [2,3,4],
+ # 'figure': ['rampUp','accUp','decUp'],
+ # 'direction': [1],
+ # },
+ # {
+ # 'range': [5,6,7],
+ # 'figure': ['rampDown','accDown','decDown'],
+ # 'direction': [-1],
+ # },
{
- 'range': [5,6,7],
- 'figure': ['rampDown'],
- 'direction': [4,5,6],
+ 'range': [2,3,4,10,11,12],
+ 'figure': ['sawtooth2Up','sawtooth2Down','sawtooth3Up','sawtooth3Down','zigZagUp','zigZagDown'],
+ 'direction': [0],
},
]
anticipationRules = [
- # ['ligature'],
- # ['ligature','direction'],
- # ['ligature','figure'],
- [],
+ ['transposition','askldfjds'],
+ ['address'],
['direction'],
- ['figure'],
+ [],
]
prolongationRules = [
- ['address','figure','range'],
- ['address','figure'],
- ['address','range'],
+ ['transposition','sdfsdf'],
['address'],
- ['figure','range'],
- ['figure'],
- ['range'],
+ ['direction'],
+ [],
]
+# as patient - (yield, check, ask) # ([default] adopt given features, refuse given features, request features
+# as agent - (let, put, drive) # ([default] feature not shared, feature shared with immediately below, feature shared with all below
+# probe - goal
+
+'''
+# need something like
+projectionRules = {
+
+
+ # produces less uniformity
+ 'check': [],
+ # produces local uniformity (inflection)
+ 'anticipate': [],
+ 'prolong': [],
+ # produces global uniformity
+ 'project': [],
+ 'inject': [],
+
+}
+'''
+
# assemble grammar object
phonology = Phonology()
for rule in ligatureRules: