Bands

acoustics.bands.octave(first, last)[source]

Generate a Numpy array for central frequencies of octave bands.

There are more information on how to calculate ‘real’ bands in http://blog.prosig.com/2006/02/17/standard-octave-bands/

first : scalar
First octave centerfrequency.
last : scalar
Last octave centerfrequency.
octave_bands : array
An array of centerfrequency octave bands.
acoustics.bands.octave_high(first, last)[source]

Upper cornerfrequencies of octaves.

acoustics.bands.octave_low(first, last)[source]

Lower cornerfrequencies of octaves.

acoustics.bands.third(first, last)[source]

Generate a Numpy array for central frequencies of third octave bands.

first : scalar
First third octave centerfrequency.
last : scalar
Last third octave centerfrequency.
octave_bands : array
An array of centerfrequency third octave bands.
acoustics.bands.third2oct(levels, axis=None)[source]

Calculate Octave levels from third octave levels.

Parameters:
  • levels – Array containing third octave levels.
  • axis (int) – Axis over which to perform the summation.
Type:

np.ndarray

Returns:

Third octave levels

Return type:

np.ndarray

Note

The number of elements along the summation axis should be a factor of 3.

acoustics.bands.third_high(first, last)[source]

Higher cornerfrequencies of third-octaves.

acoustics.bands.third_low(first, last)[source]

Lower cornerfrequencies of third-octaves.