C# Class DSPUtil.ERB

Afficher le fichier Open project: hughpyle/inguz-DSPUtil Class Usage Examples

Méthodes publiques

Méthode Description
ERBVal ( double f ) : double

ERB value for a given frequency

ERBWidth ( double f ) : double

Compute the equivalent rectangular bandwidth (ERB) at frequency f (Hz)

bin2f ( double bin, uint sr ) : double
bin2f ( double bin, uint sr, double bins ) : double
f2bin ( double f, uint sr ) : double
f2bin ( double f, uint sr, double bins ) : double
inflections ( double data, uint sr ) : FilterProfile

Return a list of freq/gain, only including inflection points (where the curve is flat).

integralofERB ( double f ) : double

Integral of ERB from 0 to f

invERB ( double b ) : double

Inverse of ERB(f)

invERBVal ( double v ) : double
invintegralofERB ( double i, uint sr ) : double
profile ( double data, uint sr ) : FilterProfile
profile ( double data, uint sr, double scaleFactor ) : FilterProfile

Return a list of freq/gain, at the ERB centers Assuming you smoothed the data...

smooth ( double data, int bands ) : double[]

Method Details

ERBVal() public static méthode

ERB value for a given frequency
public static ERBVal ( double f ) : double
f double Frequency (Hz)
Résultat double

ERBWidth() public static méthode

Compute the equivalent rectangular bandwidth (ERB) at frequency f (Hz)
public static ERBWidth ( double f ) : double
f double Frequency (Hz)
Résultat double

bin2f() public static méthode

public static bin2f ( double bin, uint sr ) : double
bin double
sr uint
Résultat double

bin2f() public static méthode

public static bin2f ( double bin, uint sr, double bins ) : double
bin double
sr uint
bins double
Résultat double

f2bin() public static méthode

public static f2bin ( double f, uint sr ) : double
f double
sr uint
Résultat double

f2bin() public static méthode

public static f2bin ( double f, uint sr, double bins ) : double
f double
sr uint
bins double
Résultat double

inflections() public static méthode

Return a list of freq/gain, only including inflection points (where the curve is flat).
public static inflections ( double data, uint sr ) : FilterProfile
data double
sr uint
Résultat FilterProfile

integralofERB() public static méthode

Integral of ERB from 0 to f
public static integralofERB ( double f ) : double
f double
Résultat double

invERB() public static méthode

Inverse of ERB(f)
public static invERB ( double b ) : double
b double bandwidth
Résultat double

invERBVal() public static méthode

public static invERBVal ( double v ) : double
v double
Résultat double

invintegralofERB() public static méthode

public static invintegralofERB ( double i, uint sr ) : double
i double
sr uint
Résultat double

profile() public static méthode

public static profile ( double data, uint sr ) : FilterProfile
data double
sr uint
Résultat FilterProfile

profile() public static méthode

Return a list of freq/gain, at the ERB centers Assuming you smoothed the data...
public static profile ( double data, uint sr, double scaleFactor ) : FilterProfile
data double data from ERB.smooth
sr uint sample rate
scaleFactor double 1.0 for ~38 bands. 0.5 for twice as many...
Résultat FilterProfile

smooth() public static méthode

public static smooth ( double data, int bands ) : double[]
data double
bands int
Résultat double[]