Documentation ¶
Index ¶
- func AveragePeak() audio.Extractor[float64]
- func MaxAbsPeak() audio.Extractor[float64]
- func MaxPeak() audio.Extractor[float64]
- func MaxSpectrum(size int) audio.Extractor[[]fft.FrequencyPower]
- func Spectrum(size int, compactor audio.Compactor[[]fft.FrequencyPower]) audio.Extractor[[]fft.FrequencyPower]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AveragePeak ¶
AveragePeak returns a float64 Collector that calculates the average peak value in an audio signal.
func MaxAbsPeak ¶
MaxAbsPeak returns a float64 Collector that calculates the maximum absolute peak value in an audio signal, that is, where its negative values are normalized as positive ones, to find the peaks in both positive and negative axis of the wave.
The returned value is the original data point in the signal, so if its peak is a negative value, a negative value is returned.
func MaxPeak ¶
MaxPeak returns a float64 Collector that calculates the maximum peak value in an audio signal.
func MaxSpectrum ¶
func MaxSpectrum(size int) audio.Extractor[[]fft.FrequencyPower]
MaxSpectrum returns a []fft.FrequencyPower Collector that calculates the spectrum values in an audio signal.
Types ¶
This section is empty.