summaryrefslogtreecommitdiff
path: root/cadence.py
diff options
context:
space:
mode:
authorHouyhnhnm <hykusb@bitmai.la>2018-06-03 14:06:16 +0200
committerHouyhnhnm <hykusb@bitmai.la>2018-06-03 14:06:16 +0200
commit3786e330479d00517ecb894804180f59b0544e1a (patch)
treeef503829490755f4da0ecd3ecb7e47441e37590e /cadence.py
parent2fe6d52452b2cf48ceeffcbc0e8c2b30932f889d (diff)
bundle lexical ingredients in grammar object, separate spec file therefrom
Diffstat (limited to 'cadence.py')
-rw-r--r--cadence.py8
1 files changed, 2 insertions, 6 deletions
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()