Class SonogramConfig
Inheritance
SonogramConfig
Assembly: AudioAnalysisTools.dll
[Serializable]
public class SonogramConfig
Constructors
|
Improve this Doc
View Source
Initializes a new instance of the SonogramConfig class.
Default Constructor - initialises a configuration with the default values.
This sets the default values for most spectrogram types, including Mel-scale and MFCC spectrograms.
Declaration
|
Improve this Doc
View Source
Declaration
public SonogramConfig(SonogramConfig config, WavReader wavReader)
Parameters
|
Improve this Doc
View Source
Initializes a new instance of the SonogramConfig class.
CONSTRUCTOR
Initialises sonogram config with key-value-pairs in the passed dictionary.
Declaration
public SonogramConfig(Dictionary<string, string> dictionary)
Parameters
|
Improve this Doc
View Source
Initializes a new instance of the SonogramConfig class.
CONSTRUCTOR
Initialises sonogram config with key-value-pairs in the passed ConfigDictionary.
Declaration
public SonogramConfig(ConfigDictionary config)
Parameters
Fields
|
Improve this Doc
View Source
Declaration
public const double DEFAULT_WINDOW_OVERLAP = 0.5
Field Value
|
Improve this Doc
View Source
Declaration
public const int DEFAULT_WINDOW_SIZE = 512
Field Value
Properties
|
Improve this Doc
View Source
Declaration
public string CallName { get; set; }
Property Value
|
Improve this Doc
View Source
Gets or sets the channel to extract from the WavReader.
Declaration
public int Channel { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int DeltaT { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool DoFullBandwidth { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool DoMelScale { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool DoPreemphasis { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool DoSnr { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public TimeSpan Duration { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double epsilon { get; set; }
Property Value
|
Improve this Doc
View Source
Gets for linear frequency scale assume that the freq bin count = half the frame size.
Declaration
public int FreqBinCount { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public string ImageDir { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int? MaxFreqBand { get; set; }
Property Value
|
Improve this Doc
View Source
Gets or sets for linear frequency scale assume that the freq bin count = half the frame size.
But with Mel scale, the user can set arbitrary number of mel bins.
By default, MelBincount can be set = FreqBinCount.
Declaration
public int MelBinCount { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public MfccConfiguration mfccConfig { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int? MidFreqBand { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int? MinFreqBand { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double NoiseReductionParameter { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public NoiseReductionType NoiseReductionType { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int NPointSmoothFFT { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int NyquistFreq { get; }
Property Value
|
Improve this Doc
View Source
Declaration
public int SampleRate { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public bool SaveSonogramImage { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public string SourceDirectory { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public string SourceFName { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public string WindowFunction { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double WindowOverlap { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public double WindowPower { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int WindowSize { get; set; }
Property Value
|
Improve this Doc
View Source
Declaration
public int WindowStep { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Declaration
public static double CalculateFrameOverlap(int frameWidth, int frameStep)
Parameters
Type |
Name |
Description |
Int32 |
frameWidth |
|
Int32 |
frameStep |
|
Returns
|
Improve this Doc
View Source
returns duration of a full frame or window in seconds
Assumes that the Window size is already available.
Declaration
public double GetFrameDuration(int sampleRate)
Parameters
Type |
Name |
Description |
Int32 |
sampleRate |
|
Returns
Type |
Description |
Double |
seconds.
|
|
Improve this Doc
View Source
returns the duration of that part of frame not overlapped with follwoing frame.
Duration is given in seconds.
Assumes that the sample rate, window size and overlap fraction are already known.
Declaration
public double GetFrameOffset()
Returns
|
Improve this Doc
View Source
returns the duration of that part of frame not overlapped with follwoing frame.
Duration is given in seconds.
Assumes window size and overlap fraction already known.
Declaration
public double GetFrameOffset(int sampleRate)
Parameters
Type |
Name |
Description |
Int32 |
sampleRate |
|
Returns
|
Improve this Doc
View Source
Declaration
public static SonogramConfig Load(string configFile)
Parameters
Type |
Name |
Description |
String |
configFile |
|
Returns
|
Improve this Doc
View Source
Save(TextWriter)
Declaration
public virtual void Save(TextWriter writer)
Parameters
Extension Methods