extractors

package
v0.0.0-...-a42f8bd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AveragePeak

func AveragePeak() audio.Extractor[float64]

AveragePeak returns a float64 Collector that calculates the average peak value in an audio signal.

func MaxAbsPeak

func MaxAbsPeak() audio.Extractor[float64]

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

func MaxPeak() audio.Extractor[float64]

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.

func Spectrum

func Spectrum(size int, compactor audio.Compactor[[]fft.FrequencyPower]) audio.Extractor[[]fft.FrequencyPower]

Spectrum returns a []fft.FrequencyPower Collector that calculates the full spectrum values in an audio signal with a given Compactor as reducer / filter.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL