diff options
| author | Houyhnhnm <hykusb@bitmai.la> | 2018-06-03 13:16:16 +0200 |
|---|---|---|
| committer | Houyhnhnm <hykusb@bitmai.la> | 2018-06-03 13:16:16 +0200 |
| commit | d5b987fd5d848aa8e75281d1cc682feb265dbaad (patch) | |
| tree | df5d10b10ba8b8bdda0b5a2a3b51dbb49d5eb24c /main.py | |
| parent | dc5a3bd592f7dda585dc97aa0647b3326b20d8d2 (diff) | |
add lexeme, lexicon classes
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 32 |
1 files changed, 1 insertions, 31 deletions
@@ -1,6 +1,6 @@ from phonology import * from diagram import * - +from grammar import * ''' modules: @@ -20,36 +20,6 @@ score.py list of n passages rendered to music21 score object ''' -phonology = Phonology() - -phonology.addFootprintRule([{ - 'span': [2], - 'gait': ['double','triple'], - 'foot': [[-1/2, 0, 1/2]], - 'step': [[0, 1/2], [0, 1/2], [0, 1/2]], -}]) -phonology.addFunctionRule({ - 'address': ['A1','B1'], - 'transposition': [-1,0,1], -}) -phonology.addPathRule({ - 'range': [2,3,4], - 'figure': ['rampUp', 'rampDown'], - 'tilt': ['float', 'dive'], -}) - -morphology = Morphology() -morphology.addAnticipationRule(['footprint']) -morphology.addAnticipationRule(['tilt']) -morphology.addAnticipationRule([]) -morphology.addProlongationRule(['address','transposition']) -morphology.addProlongationRule(['address']) -morphology.addProlongationRule(['figure','range']) -morphology.addProlongationRule(['range']) -morphology.addProlongationRule(['range','tilt']) - - - # lexicon.addCategory() phonology.print() |