Skip to content

Commit

Permalink
Two other methods impacted by change to method signature of Oscillati…
Browse files Browse the repository at this point in the history
…on2012

Issue #500
Two other methods impacted by change to method signature of Oscillation2012 and change of min/maxOscFreq from int to double?
  • Loading branch information
towsey committed Jun 28, 2021
1 parent 84c6ea2 commit 0b46e3b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions src/AudioAnalysisTools/Ocillations/Oscillations2019.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ public static void Execute(
int maxHz,
double decibelThreshold,
double dctDuration,
int minOscFreq,
int maxOscFreq,
double minOscFreq,
double maxOscFreq,
double dctThreshold,
double scoreThreshold,
double minDuration,
Expand Down Expand Up @@ -68,12 +68,14 @@ public static void Execute(

events = Oscillations2012.ConvertOscillationScores2Events(
sonogram,
dctScores,
minDuration,
maxDuration,
minHz,
maxHz,
minOscFreq,
maxOscFreq,
dctScores,
scoreThreshold,
minDuration,
maxDuration,
segmentStartOffset);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,15 @@ public void TestGetWingBeatEvents()
// Look for wing beats using oscillation detector
Oscillations2012.Execute(
(SpectrogramStandard)this.sonogram,
minDurationSeconds,
maxDurationSeconds,
minHz,
maxHz,
minOscilFreq,
maxOscilFreq,
dctDuration,
(int)Math.Floor(minOscilFreq),
(int)Math.Floor(maxOscilFreq),
dctThreshold,
eventThreshold,
minDurationSeconds,
maxDurationSeconds,
out var bandDecibels,
out var oscScores,
out var acousticEvents,
Expand Down

0 comments on commit 0b46e3b

Please sign in to comment.