IEC 61260-1:2014
IEC 61260-1:2014 specifies performance requirements for analogue, sampled-data, and digital implementations of band-pass filters.
| FUNCTION | DESCRIPTION |
|---|---|
exact_center_frequency |
Calculate exact center frequencies for given band indices |
lower_frequency |
Calculate lower band-edge frequencies |
upper_frequency |
Calculate upper band-edge frequencies |
index_of_frequency |
Calculate the band index for a given frequency |
nominal_center_frequency |
Calculate nominal center frequencies |
Constants
- NOMINAL_OCTAVE_CENTER_FREQUENCIES: Nominal octave center frequencies
- NOMINAL_THIRD_OCTAVE_CENTER_FREQUENCIES: Nominal third-octave center frequencies
- REFERENCE_FREQUENCY: Reference frequency
- OCTAVE_FREQUENCY_RATIO: Octave frequency ratio
Attributes
NOMINAL_OCTAVE_CENTER_FREQUENCIES
module-attribute
NOMINAL_OCTAVE_CENTER_FREQUENCIES = array(
[
31.5,
63.0,
125.0,
250.0,
500.0,
1000.0,
2000.0,
4000.0,
8000.0,
16000.0,
]
)
Nominal octave center frequencies.
NOMINAL_THIRD_OCTAVE_CENTER_FREQUENCIES
module-attribute
NOMINAL_THIRD_OCTAVE_CENTER_FREQUENCIES = array(
[
25.0,
31.5,
40.0,
50.0,
63.0,
80.0,
100.0,
125.0,
160.0,
200.0,
250.0,
315.0,
400.0,
500.0,
630.0,
800.0,
1000.0,
1250.0,
1600.0,
2000.0,
2500.0,
3150.0,
4000.0,
5000.0,
6300.0,
8000.0,
10000.0,
12500.0,
16000.0,
20000.0,
]
)
Nominal third-octave center frequencies in the audio range.
OCTAVE_FREQUENCY_RATIO
module-attribute
Octave frequency ratio \(G\).
See equation 1.
nominal_center_frequency
module-attribute
nominal_center_frequency = vectorize(
_nominal_center_frequency
)
Vectorized function to calculate nominal center frequencies.
| PARAMETER | DESCRIPTION |
|---|---|
center
|
Exact center frequency.
|
fraction
|
Band designator or fraction.
|
| RETURNS | DESCRIPTION |
|---|---|
|
float or ndarray: Nominal center frequencies calculated according to standard. |
Functions
exact_center_frequency
exact_center_frequency(
x,
fraction=1,
ref=REFERENCE_FREQUENCY,
G=OCTAVE_FREQUENCY_RATIO,
) -> float | ndarray
Center frequencies \(f_m\) for band indices \(x\). See equation 2 and 3.
The center frequencies are given by $$ f_m = f_r G^{x/b} $$
In case the bandwidth designator \(b\) is an even number, the center frequencies are given by $$ f_m = f_r G^{(2x+1)/2b} $$
See equation 2 and 3 of the standard.
| PARAMETER | DESCRIPTION |
|---|---|
x
|
Band index \(x\).
|
fraction
|
Bandwidth designator \(b\). For example, for ⅓-octave filter \(b=3\). Defaults to 1.
DEFAULT:
|
ref
|
Reference center frequency \(f_r\).
DEFAULT:
|
G
|
Octave frequency ratio \(G\).
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
float | ndarray
|
Center frequencies \(f_m\) calculated according to equations 2 and 3. |
Source code in acoustic_toolbox/standards/iec_61260_1_2014.py
lower_frequency
lower_frequency(
center: float | ndarray,
fraction=1,
G=OCTAVE_FREQUENCY_RATIO,
) -> float | ndarray
Lower band-edge frequencies. See equation 4.
The lower band-edge frequencies are given by $$ f_1 = f_m G^{-½b} $$
See equation 4 of the standard.
| PARAMETER | DESCRIPTION |
|---|---|
center
|
Center frequencies \(f_m\). |
fraction
|
Bandwidth designator \(b\).
DEFAULT:
|
G
|
Octave frequency ratio \(G\).
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
float | ndarray
|
Lower band-edge frequencies \(f_1\) |
Source code in acoustic_toolbox/standards/iec_61260_1_2014.py
upper_frequency
upper_frequency(
center: float | ndarray,
fraction=1,
G=OCTAVE_FREQUENCY_RATIO,
) -> float | ndarray
Upper band-edge frequencies. See equation 5.
The upper band-edge frequencies are given by $$ f_2 = f_m G^{+½b} $$
See equation 5 of the standard.
| PARAMETER | DESCRIPTION |
|---|---|
center
|
Center frequencies \(f_m\). |
fraction
|
Bandwidth designator \(b\).
DEFAULT:
|
G
|
Octave frequency ratio \(G\).
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
float | ndarray
|
Upper band-edge frequencies \(f_2\). |
Source code in acoustic_toolbox/standards/iec_61260_1_2014.py
index_of_frequency
index_of_frequency(
frequency,
fraction=1,
ref=REFERENCE_FREQUENCY,
G=OCTAVE_FREQUENCY_RATIO,
) -> int | ndarray
Calculate the band index for a given frequency.
The index of the center frequency is given by
See equation 6 of the standard.
Note
This equation is not part of the standard.
However, it follows from exact_center_frequency.
| PARAMETER | DESCRIPTION |
|---|---|
frequency
|
Frequencies \(f\)
|
fraction
|
Bandwidth designator \(b\).
DEFAULT:
|
ref
|
Reference frequency.
DEFAULT:
|
G
|
Octave frequency ratio \(G\).
DEFAULT:
|
| RETURNS | DESCRIPTION |
|---|---|
int | ndarray
|
Band indices \(x\) |
Source code in acoustic_toolbox/standards/iec_61260_1_2014.py
:::