diff onsetsdsplugin.cpp @ 11:1ee043ea9d06

Retain parameter values through reset
author Chris Cannam
date Mon, 16 Dec 2013 13:27:32 +0000
parents 1aa45968fbad
children
line wrap: on
line diff
--- a/onsetsdsplugin.cpp	Fri Nov 29 12:02:55 2013 +0000
+++ b/onsetsdsplugin.cpp	Mon Dec 16 13:27:32 2013 +0000
@@ -206,7 +206,7 @@
     memset(m_ods, 0, sizeof(OnsetsDS));
     onsetsds_init(m_ods, m_odsdata, ODS_FFT_FFTW3_R2C, m_dfType, m_fftSize,
                   m_medspan, m_inputSampleRate);
-	m_ods->thresh = m_threshold;
+    m_ods->thresh = m_threshold;
 	
     return true;
 }
@@ -220,6 +220,7 @@
     }
     onsetsds_init(m_ods, m_odsdata, ODS_FFT_FFTW3_R2C, m_dfType, m_fftSize,
                   m_medspan, m_inputSampleRate);
+    m_ods->thresh = m_threshold;
 }
 
 size_t