diff options
| author | Houyhnhnm <hykusb@bitmai.la> | 2018-06-03 14:06:16 +0200 |
|---|---|---|
| committer | Houyhnhnm <hykusb@bitmai.la> | 2018-06-03 14:06:16 +0200 |
| commit | 3786e330479d00517ecb894804180f59b0544e1a (patch) | |
| tree | ef503829490755f4da0ecd3ecb7e47441e37590e /cadence.py | |
| parent | 2fe6d52452b2cf48ceeffcbc0e8c2b30932f889d (diff) | |
bundle lexical ingredients in grammar object, separate spec file therefrom
Diffstat (limited to 'cadence.py')
| -rw-r--r-- | cadence.py | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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() |