@@ -473,7 +473,7 @@ TEST_F (OnsetPeakPickerTests, OnlineModeIgnoresFuture)
473473TEST_F (OnsetPeakPickerTests, DelayShiftsOnsetTimes)
474474{
475475 OnsetPeakPicker picker;
476- picker.prepare ({ .threshold = 0 .5f , .delaySec = 0 .05f , .preAvgSec = 0 .0f , .postAvgSec = 0 .0f , .postMaxSec = 0 .0f , .preMaxSec = 0 .0f }, fps);
476+ picker.prepare ({ .threshold = 0 .5f , .delaySec = 0 .05f , .preAvgSec = 0 .0f , .preMaxSec = 0 .0f , .postMaxSec = 0 .0f , .postAvgSec = 0 .0f }, fps);
477477
478478 constexpr int numFrames = 200 ;
479479 std::vector<float > activations (static_cast <std::size_t > (numFrames), 0 .1f );
@@ -517,8 +517,8 @@ TEST_F (OnsetDetectorTests, EndToEndSilenceYieldsNoOnsets)
517517{
518518 OnsetDetector onsetDetector;
519519 onsetDetector.prepare ({ .spectrogram = { .fftSize = 1024 , .fps = 200 },
520- .useFilterBank = false ,
521- .peakPicker = { . threshold = 1 . 0f } },
520+ .peakPicker = { . threshold = 1 . 0f } ,
521+ .useFilterBank = false },
522522 sampleRate);
523523
524524 auto data = makeSilence (44100 );
@@ -539,8 +539,8 @@ TEST_F (OnsetDetectorTests, EndToEndClickTrainDetectsOnsets)
539539{
540540 OnsetDetector onsetDetector;
541541 onsetDetector.prepare ({ .spectrogram = { .fftSize = 1024 , .fps = 200 },
542- .useFilterBank = true ,
543- .peakPicker = { . threshold = 0 . 5f , . combineSec = 0 . 2f } },
542+ .peakPicker = { . threshold = 0 . 5f , . combineSec = 0 . 2f } ,
543+ .useFilterBank = true },
544544 sampleRate);
545545
546546 // 120 BPM click train, 2 seconds = 4 clicks at 0, 0.5, 1.0, 1.5 seconds
0 commit comments