Skip to content

Commit 7b74e72

Browse files
committed
More fixes
1 parent ed5a46c commit 7b74e72

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tests/yup_dsp/yup_OnsetDetector.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ TEST_F (OnsetPeakPickerTests, OnlineModeIgnoresFuture)
473473
TEST_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

Comments
 (0)