summaryrefslogtreecommitdiff
path: root/basetypes.py
diff options
context:
space:
mode:
Diffstat (limited to 'basetypes.py')
-rw-r--r--basetypes.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/basetypes.py b/basetypes.py
index dd0da26..2a25688 100644
--- a/basetypes.py
+++ b/basetypes.py
@@ -80,6 +80,7 @@ class Partial(object):
"Initialise peaks list and increment partial_id"
self.peaks = []
self.starting_frame = 0
+ self.partial_number = -1
self.partial_id = Partial._num_partials
Partial._num_partials += 1
@@ -93,6 +94,7 @@ class Partial(object):
peak.previous_peak = last_peak
peak.partial_position = partial_position
peak.partial_id = self.partial_id
+ peak.partial_number = self.partial_number
def get_length(self):
"Return the length of this partial (as a number of frames)"