Skip to content

Commit

Permalink
Apply test change
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f committed Apr 4, 2024
1 parent ea84bec commit b36a691
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ class TestWindowAnalysis {
cursor += windowSize
}
spectrumDataArray.forEach { spectrumData ->
val thirdOctaveSquare = spectrumData.thirdOctaveProcessing(sampleRate, 50.0, 12000.0,
val thirdOctaveSquare = spectrumData.thirdOctaveProcessing(50.0, 12000.0,
octaveWindow = SpectrumData.OCTAVE_WINDOW.RECTANGULAR).asList()
val thirdOctaveFractional = spectrumData.thirdOctaveProcessing(sampleRate, 50.0,
val thirdOctaveFractional = spectrumData.thirdOctaveProcessing(50.0,
12000.0, octaveWindow = SpectrumData.OCTAVE_WINDOW.FRACTIONAL).asList()
val indexOf1000Hz = thirdOctaveSquare.indexOfFirst { t -> t.midFrequency.toInt() == 1000 }
assertEquals(expectedLevel, thirdOctaveSquare[indexOf1000Hz].spl, 0.01)
Expand Down

0 comments on commit b36a691

Please sign in to comment.