Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FrequencyPower ¶
FrequencyPower denotes a single frequency and its magnitude in a Fast Fourier Transform of a signal.
type FrequencyPowerCalculator ¶
type FrequencyPowerCalculator[T audio.Sample] struct { // SampleRate in samples per second. SampleRate int // Window function Window window.Window // contains filtered or unexported fields }
func (*FrequencyPowerCalculator[T]) Apply ¶
func (c *FrequencyPowerCalculator[T]) Apply(dst []FrequencyPower, samples audio.Samples[T]) []FrequencyPower
Apply applies a Fast Fourier Transform (FFT) on a slice of float64 `data`, with sample rate `sampleRate`. It returns a slice of FrequencyPower.
Click to show internal directories.
Click to hide internal directories.