From 3786e330479d00517ecb894804180f59b0544e1a Mon Sep 17 00:00:00 2001 From: Houyhnhnm Date: Sun, 3 Jun 2018 14:06:16 +0200 Subject: bundle lexical ingredients in grammar object, separate spec file therefrom --- cadence.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'cadence.py') diff --git a/cadence.py b/cadence.py index 125cdd4..c277112 100644 --- a/cadence.py +++ b/cadence.py @@ -20,11 +20,10 @@ Cadence class Cadence(object): """a musical morpheme bundling rhythmic, gestural and harmonic features""" - def __init__(self, footprint=None, function=None, path=None, label=''): + def __init__(self, footprint=None, function=None, path=None): self.footprint = footprint self.function = function self.path = path - self.label = label # string represention of cadence - note list ? def __str__(self): @@ -44,9 +43,6 @@ class Cadence(object): } return features - def assignLabel(label): - self.label = label - def update(featureDict): if 'footprint' in featureDict: self.footprint = featureDict['footprint'] @@ -61,7 +57,7 @@ class Cadence(object): 'function': self.function, 'path': self.path, } - print("\nCadence", str(self.label)) + print("\nCadence") pprint(features) print() -- cgit v1.2.3