diff options
author | Robin Gareus <robin@gareus.org> | 2016-05-01 18:47:14 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-05-01 18:47:14 +0200 |
commit | 9d50074a99c4bd9e9b07ae3dccde6df889a8d899 (patch) | |
tree | d6e356260f44272ba89179b98088d3901b0a065d /libs/vamp-plugins | |
parent | 5f65964ee9d84748cebf3fe75d8c204a20aac9ae (diff) |
fix aubio-onset detection parameters
Diffstat (limited to 'libs/vamp-plugins')
-rw-r--r-- | libs/vamp-plugins/Onset.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/vamp-plugins/Onset.cpp b/libs/vamp-plugins/Onset.cpp index 93f90f9469..03e35ba3fe 100644 --- a/libs/vamp-plugins/Onset.cpp +++ b/libs/vamp-plugins/Onset.cpp @@ -166,6 +166,12 @@ Onset::reset() lrintf(m_inputSampleRate)); m_lastOnset = Vamp::RealTime::zeroTime - m_delay - m_delay; +#else + if (m_onsetdet) aubio_onsetdetection_free(m_onsetdet); + if (m_peakpick) del_aubio_peakpicker(m_peakpick); + + m_peakpick = new_aubio_peakpicker(m_threshold); + m_onsetdet = new_aubio_onsetdetection(m_onsettype, m_blockSize, m_channelCount); #endif } |