diff options
author | John Glover <glover.john@gmail.com> | 2010-10-19 17:19:31 +0100 |
---|---|---|
committer | John Glover <glover.john@gmail.com> | 2010-10-19 17:19:31 +0100 |
commit | b46b988f164f983fc889c7bc0c96953e4609d27a (patch) | |
tree | cf75870f5cebc9eebe4d7540aa509d5eb89308b2 /sms.py | |
parent | 30755b92afeae5a5a32860b4f4297180f6d3398d (diff) | |
download | simpl-b46b988f164f983fc889c7bc0c96953e4609d27a.tar.gz simpl-b46b988f164f983fc889c7bc0c96953e4609d27a.tar.bz2 simpl-b46b988f164f983fc889c7bc0c96953e4609d27a.zip |
SMS bug fix, peak magnitudes from SMSPeakDetection were in db instead of linear.
Diffstat (limited to 'sms.py')
-rw-r--r-- | sms.py | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -15,8 +15,7 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA import simpl -import pysms -import numpy as np +import simpl.pysms as pysms class SMSPeakDetection(simpl.PeakDetection): "Sinusoidal peak detection using SMS" @@ -173,7 +172,6 @@ class SMSPeakDetection(simpl.PeakDetection): pos = 0 self._analysis_params.iSizeSound = len(audio) while pos < len(audio): - print pos, self.frame_size, self._analysis_params.sizeNextRead, len(audio) # change frame size based on sizeNextRead if not self.static_frame_size: if pos + self.frame_size < len(audio): |