C# Class DSPUtil.Loudness

Show file Open project: hughpyle/inguz-DSPUtil Class Usage Examples

Public Methods

Method Description
DifferentialSPL ( double phon0, double phon1 ) : FilterProfile
DifferentialSPL ( double phon0, double phon1, double scale ) : FilterProfile
SPL ( double phon ) : FilterProfile

Create a list of dB SPL equal-loudness values for a given 'phon' loudness (from zero, threshold, to 90)

WeightedVolume ( ISoundObj src ) : double

Calculate the weighted volume of a sound source. NB: this consumes lots of memory for long sources.

WeightedVolume ( ISoundObj src, double dbSPL, double dbSPLBase ) : double

Calculate the weighted volume of a sound source. NB: this consumes lots of memory for long sources.

WeightedVolume1 ( ISoundObj src, double dbSPL, double dbSPLBase ) : double

Calculate the weighted volume of a *single channel* sound source. NB: this consumes lots of memory for long sources.

Private Methods

Method Description
WeightedVolume2 ( SoundBuffer src, double dbSPL, double dbSPLBase ) : double

Method Details

DifferentialSPL() public static method

public static DifferentialSPL ( double phon0, double phon1 ) : FilterProfile
phon0 double
phon1 double
return FilterProfile

DifferentialSPL() public static method

public static DifferentialSPL ( double phon0, double phon1, double scale ) : FilterProfile
phon0 double
phon1 double
scale double
return FilterProfile

SPL() public static method

Create a list of dB SPL equal-loudness values for a given 'phon' loudness (from zero, threshold, to 90)
public static SPL ( double phon ) : FilterProfile
phon double
return FilterProfile

WeightedVolume() public static method

Calculate the weighted volume of a sound source. NB: this consumes lots of memory for long sources.
public static WeightedVolume ( ISoundObj src ) : double
src ISoundObj
return double

WeightedVolume() public static method

Calculate the weighted volume of a sound source. NB: this consumes lots of memory for long sources.
public static WeightedVolume ( ISoundObj src, double dbSPL, double dbSPLBase ) : double
src ISoundObj
dbSPL double
dbSPLBase double
return double

WeightedVolume1() public static method

Calculate the weighted volume of a *single channel* sound source. NB: this consumes lots of memory for long sources.
public static WeightedVolume1 ( ISoundObj src, double dbSPL, double dbSPLBase ) : double
src ISoundObj
dbSPL double
dbSPLBase double
return double