Class Oscillations2019
NOTE: 26th October 2019.
This class contains methods to detect oscillations in a the spectrogram of an audio signal. The method Execute() returns all info about oscillations in the passed spectrogram.
Inherited Members
Namespace: AudioAnalysisTools
Assembly: AudioAnalysisTools.dll
Syntax
public static class Oscillations2019
Methods
| Improve this Doc View SourceDetectOscillations(Double[], Double, Double, Double, Double, Double, Double, out Double[], out Double[])
Currently this method is called by only one species recognizer - LitoriaCaerulea.
Declaration
public static void DetectOscillations(double[] ipArray, double framesPerSecond, double decibelThreshold, double dctDuration, double minOscFreq, double maxOscFreq, double dctThreshold, out double[] dctScores, out double[] oscFreq)
Parameters
Type | Name | Description |
---|---|---|
Double[] | ipArray | an array of decibel values. |
Double | framesPerSecond | the frame rate. |
Double | decibelThreshold | Ignore frames below this threshold. |
Double | dctDuration | Duration in seconds of the required DCT. |
Double | minOscFreq | minimum oscillation frequency. |
Double | maxOscFreq | maximum oscillation frequency. |
Double | dctThreshold | Threshold for the maximum DCT coefficient. |
Double[] | dctScores | an array of dct scores. |
Double[] | oscFreq | an array of oscillation frequencies. |
Execute(SpectrogramStandard, Int32, Int32, Double, Double, Int32, Int32, Double, Double, Double, Double, Int32, out Double[], out List<OscillationEvent>, TimeSpan)
Declaration
public static void Execute(SpectrogramStandard sonogram, int minHz, int maxHz, double decibelThreshold, double dctDuration, int minOscFreq, int maxOscFreq, double dctThreshold, double scoreThreshold, double minDuration, double maxDuration, int smoothingWindow, out double[] dctScores, out List<OscillationEvent> events, TimeSpan segmentStartOffset)
Parameters
Type | Name | Description |
---|---|---|
SpectrogramStandard | sonogram | |
Int32 | minHz | |
Int32 | maxHz | |
Double | decibelThreshold | |
Double | dctDuration | |
Int32 | minOscFreq | |
Int32 | maxOscFreq | |
Double | dctThreshold | |
Double | scoreThreshold | |
Double | minDuration | |
Double | maxDuration | |
Int32 | smoothingWindow | |
Double[] | dctScores | |
List<OscillationEvent> | events | |
TimeSpan | segmentStartOffset |