From 86dece6032fce8522bf6baa9aefcb42350eb3550 Mon Sep 17 00:00:00 2001
From: John Glover <john@john-glovers-macbook.local>
Date: Mon, 13 Dec 2010 13:09:12 +0000
Subject: Fixed bug in SMSSynthesis, Partials were not being correctly linked

---
 basetypes.py | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'basetypes.py')

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)"
-- 
cgit v1.2.3