10.1.1.2. Spectrum¶
This module implements spectrum analysis based on Fast Fourier Transform.
References
- Efficient Pitch Detection Techniques for Interactive Music
- Patricio de la Cuadra, Aaron Master, Craig Sapp Center for Computer Research in Music and Acoustics, Stanford University
-
class
Musica.Audio.Spectrum.Spectrum(sampling_frequency, values, window='hann')[source]¶ Bases:
object-
h_dome(height)[source]¶ Extract h-dome from spectrum using Mathematical Morphology.
- height : int
- Minimal height of the peaks
-
hfs(number_of_products)[source]¶ Compute the Harmonic Product Spectrum.
References
- Noll, M. (1969).
- Pitch determination of human speech by the harmonic product spectrum, the harmonic sum spectrum, and a maximum likelihood estimate. In Proceedings of the Symposium on Computer Processing ing Communications, pp. 779-797. Polytechnic Institute of Brooklyn.
-
classmethod
sample_for_resolution(sampling_frequency, frequency_resolution, power_of_two=True)[source]¶
-
__window_function__= {'hann': <function hanning>}¶
-
decibel_power¶
-
duration¶
-
fft¶
-
frequencies¶
-
frequency_resolution¶
-
magnitude¶
-
number_of_samples¶
-
power¶
-
sample_spacing¶
-
sampling_frequency¶
-
values¶
-