# HG changeset patch # User Chris Cannam # Date 1387200452 0 # Node ID 1ee043ea9d066ab16f9f576236ae16c5c853e6b6 # Parent 1aa45968fbad87005bec0f62827e3a865e450a6d Retain parameter values through reset diff -r 1aa45968fbad -r 1ee043ea9d06 onsetsdsplugin.cpp --- 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