From d5b987fd5d848aa8e75281d1cc682feb265dbaad Mon Sep 17 00:00:00 2001 From: Houyhnhnm Date: Sun, 3 Jun 2018 13:16:16 +0200 Subject: add lexeme, lexicon classes --- main.py | 32 +------------------------------- 1 file changed, 1 insertion(+), 31 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 23e7d39..e92ebb0 100644 --- a/main.py +++ b/main.py @@ -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() -- cgit v1.2.3