Documentation ¶
Index ¶
- func ComplexToPolar(stft [][]complex128) ([][]float64, [][]float64)
- func ComputeISTFT(stft [][]complex128, winShift int) []float64
- func ComputeSTFT(wave []float64, winShift int, winLen int) [][]complex128
- func ExportWavAudio(wave [][]float64, format *audio.Format, outPath string)
- func ImportWavAudio(inputPath string) ([][]float64, *audio.Format)
- func PolarToComplex(stftMag [][]float64, stftAng [][]float64) [][]complex128
- type Shaper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComplexToPolar ¶
func ComplexToPolar(stft [][]complex128) ([][]float64, [][]float64)
ComplexToPolar calculates the polar form of a complex STFT.
func ComputeISTFT ¶
func ComputeISTFT(stft [][]complex128, winShift int) []float64
ComputeISTFT recovers the time-series from an STFT in complex form.
func ComputeSTFT ¶
func ComputeSTFT(wave []float64, winShift int, winLen int) [][]complex128
ComputeSTFT computes the STFT of the input waveform and returns it in complex form. It uses a Hamming window.
func ExportWavAudio ¶
ExportWavAudio exports a .wav file from a 2D float64 array.
func ImportWavAudio ¶
ImportWavAudio imports a .wav file and returns the audio waveform as well as its format information.
func PolarToComplex ¶
func PolarToComplex(stftMag [][]float64, stftAng [][]float64) [][]complex128
PolarToComplex calculates the complex form of a polar STFT.
Types ¶
Click to show internal directories.
Click to hide internal directories.