diff options
| author | John Glover <glover.john@gmail.com> | 2010-12-09 22:19:17 +0000 | 
|---|---|---|
| committer | John Glover <glover.john@gmail.com> | 2010-12-09 22:19:17 +0000 | 
| commit | 5ca314e5ccf3dfb98fdea9d37646baca66d75ec3 (patch) | |
| tree | 40de39619d48a3cca458254d081d97222dac6dd7 /tests/sms.py | |
| parent | b27a8f7182edb2f9e15fd60e78d54fb9fd0c5472 (diff) | |
| download | simpl-5ca314e5ccf3dfb98fdea9d37646baca66d75ec3.tar.gz simpl-5ca314e5ccf3dfb98fdea9d37646baca66d75ec3.tar.bz2 simpl-5ca314e5ccf3dfb98fdea9d37646baca66d75ec3.zip | |
Fixed bug in SMS peak detection - find_peaks was leaking memory wen saving peaks, and a pointer assignment in find_peaks could lead to a double free in freeAnalysis/freeSpectralPeaks.
Diffstat (limited to 'tests/sms.py')
| -rw-r--r-- | tests/sms.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/tests/sms.py b/tests/sms.py index 9fb8fa0..f717900 100644 --- a/tests/sms.py +++ b/tests/sms.py @@ -1050,9 +1050,9 @@ class TestSimplSMS(object):          pd = simpl.SMSPeakDetection()          pd.max_peaks = self.max_peaks          pd.hop_size = self.hop_size  +        peaks = pd.find_peaks(audio)[0:self.num_frames]          pt = simpl.SMSPartialTracking()          pt.max_partials = self.max_partials -        peaks = pd.find_peaks(audio)[0:self.num_frames]          partials = pt.find_partials(peaks)          synth = simpl.SMSSynthesis()          synth.hop_size = self.hop_size |