From 5ca314e5ccf3dfb98fdea9d37646baca66d75ec3 Mon Sep 17 00:00:00 2001 From: John Glover Date: Thu, 9 Dec 2010 22:19:17 +0000 Subject: 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. --- basetypes.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'basetypes.py') diff --git a/basetypes.py b/basetypes.py index 6f076bf..dd0da26 100644 --- a/basetypes.py +++ b/basetypes.py @@ -348,18 +348,19 @@ class Synthesis(object): class Residual(object): "Calculate a residual signal" - TIME_DOMAIN = 0 - FREQUENCY_DOMAIN = 1 def __init__(self): - self.type = Residual.TIME_DOMAIN self.hop_size = 512 self.frame_size = 2048 + # TODO: break this up into find_residual and find_frame_residual + # so that it can be streamed def find_residual(self, synth, original): "Calculate and return the residual signal" raise Exception("NotYetImplemented") + # TODO: break this up into synth and synth_frame + # so that it can be streamed def synth(self, synth, original): "Calculate and return a synthesised residual signal" raise Exception("NotYetImplemented") -- cgit v1.2.3