DSPark 1.9.0
Header-only C++20 DSP for real-time and offline audio
Loading...
Searching...
No Matches
dspark::AuditoryScale Struct Reference

The published formulas of the auditory scale (all in double). More...

#include <AuditoryBands.h>

Static Public Member Functions

static double hzToBark (double hz) noexcept
 
static double barkToHz (double bark) noexcept
 
static double criticalBandwidth (double hz) noexcept
 
static double thresholdInQuietDb (double hz) noexcept
 
static double loudnessExponent (double hz) noexcept
 
static double dominantPower (double ll, double rr, double lr) noexcept
 
static double dominantPower (double ll, double rr, double lrReal, double lrImag) noexcept
 

Detailed Description

The published formulas of the auditory scale (all in double).

Definition at line 66 of file AuditoryBands.h.

Member Function Documentation

◆ barkToHz()

static double dspark::AuditoryScale::barkToHz ( double  bark)
inlinestaticnoexcept
Returns
The frequency of a Bark value (the inverse of hzToBark()).

Definition at line 79 of file AuditoryBands.h.

◆ criticalBandwidth()

static double dspark::AuditoryScale::criticalBandwidth ( double  hz)
inlinestaticnoexcept
Returns
The critical bandwidth at a frequency, in hertz (Zwicker and Terhardt 1980).

Definition at line 89 of file AuditoryBands.h.

◆ dominantPower() [1/2]

static double dspark::AuditoryScale::dominantPower ( double  ll,
double  rr,
double  lr 
)
inlinestaticnoexcept
Returns
The power of the dominant component of a stereo pair: the larger eigenvalue of the covariance [ll lr; lr rr].

Definition at line 118 of file AuditoryBands.h.

◆ dominantPower() [2/2]

static double dspark::AuditoryScale::dominantPower ( double  ll,
double  rr,
double  lrReal,
double  lrImag 
)
inlinestaticnoexcept
Returns
The dominant power of a pair read in a band of frequencies, whose cross term is complex (the mean of one spectrum times the conjugate of the other): a channel that is the other one delayed reads as one source, whatever the delay turns the phase to in the band.

Definition at line 130 of file AuditoryBands.h.

◆ hzToBark()

static double dspark::AuditoryScale::hzToBark ( double  hz)
inlinestaticnoexcept
Returns
The Bark value of a frequency (Traunmuller 1990).

Definition at line 69 of file AuditoryBands.h.

◆ loudnessExponent()

static double dspark::AuditoryScale::loudnessExponent ( double  hz)
inlinestaticnoexcept
Returns
The exponent of the specific loudness at a frequency: 0.23 where the threshold in quiet is lowest, rising linearly with the threshold to 0.30 for 40 dB above that minimum.

Definition at line 108 of file AuditoryBands.h.

◆ thresholdInQuietDb()

static double dspark::AuditoryScale::thresholdInQuietDb ( double  hz)
inlinestaticnoexcept
Returns
The threshold in quiet at a frequency, in dB SPL (Terhardt 1979), capped at 120.

Definition at line 96 of file AuditoryBands.h.


The documentation for this struct was generated from the following file: