mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-23 13:47:24 +01:00
fix aubio-onset detection parameters
This commit is contained in:
parent
5f65964ee9
commit
9d50074a99
3 changed files with 17 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue