Perhaps I'm missing something here, but it looks like these two metrics in OnsetSlice don't compare frames, as they don't take in (or use) a Ref to prev as the others do (some others also use a prevprev when the measurement requires it). It looks like they just compute the value for a single frame and return that.
Thoughts:
- Are these helper functions that compute the needed feature for a single frame and the comparison happens elsewhere? I couldn't find where.
- Are these metrics not intended to compare magnitudes of different frames, but are meant to compute a single feature value for each frame and see if each frame is above the raw threshold?
https://github.com/flucoma/flucoma-core/blob/e3cadeb8382e9e473f3b5f94a2f3a0c93fa082a7/include/flucoma/algorithms/util/OnsetDetectionFuncs.hpp#L40-L50
Perhaps I'm missing something here, but it looks like these two metrics in OnsetSlice don't compare frames, as they don't take in (or use) a
Reftoprevas the others do (some others also use aprevprevwhen the measurement requires it). It looks like they just compute the value for a single frame and return that.Thoughts:
https://github.com/flucoma/flucoma-core/blob/e3cadeb8382e9e473f3b5f94a2f3a0c93fa082a7/include/flucoma/algorithms/util/OnsetDetectionFuncs.hpp#L40-L50