Skip to content

Commit

Permalink
Bring two config files up to date.
Browse files Browse the repository at this point in the history
Issue #492 Bring SpectrogramGenerator config file up to date with previous changes.
  • Loading branch information
towsey committed Jun 8, 2021
1 parent c124a05 commit b60ecfc
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/AnalysisConfigFiles/Towsey.SpectrogramGenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,26 @@ Images:
WaveformHeight: 100

# NOISE REDUCTION PARAMETERS
# NoiseReductionType: Standard # use the standard by defulat.
BgNoiseThreshold: 3.0
NoiseReductionType: Standard
BgNoiseThreshold: 0.0

# DIFFERENCE SPECTROGRAM - PARAMETER (in decibels)
DifferenceThreshold: 3.0

# CEPSTROGRAM
DoPreemphasis: false
# The number of filters in the Mel-scale filter bank.
#Typical values range over 64 (the default), 32, 26 (the minimum value I have come across).
FilterbankCount: 64
IncludeDelta: true
IncludeDoubleDelta: true

# LOCAL CONTRAST NORMALISATION PARAMETERS
# A low contrastLevel = 0.1 gives a more grey image.
# A high contrastLevel = 1.0 gives mostly white, high contrast image.
# The algorithm is not overly sensitive to the neighbourhood size.
#NeighborhoodSeconds: 1.0 #DEFAULT
#LcnContrastLevel: 0.2 #DEFAULT
NeighbourhoodSeconds: 1.0
LcnContrastLevel: 0.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ public class SpectrogramGeneratorConfig : AnalyzerConfig
#pragma warning disable SA1623 // Property summary documentation should match accessors
public int WaveformHeight { get; set; } = 100;

/// <summary>
/// The default threshold = zero decibels.
/// This removes the least background noise.
/// Values up to 4 decibels are possibly effective.
/// </summary>
public double BgNoiseThreshold { get; set; } = 0.0;

/// <summary>
Expand Down

0 comments on commit b60ecfc

Please sign in to comment.