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.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.ndarrayReturns: Third octave levels
Return type: np.ndarrayNote
The number of elements along the summation axis should be a factor of 3.