Spectra

master

Hi-Rez/Spectra

Spectra

About

Spectra helps to analyze a signal and get it FFT spectrum via Apple's Accelerate framework

Example

let numberOfSamples: Int = 512 // must be a power of two

//Do this once when setting up or when your number of samples change
var fft = FFT(samples: numberOfSamples)

var buffer: [Float] = [...]
fft.forward(buffer)

var spectrum: [Float] = fft.getSpectrum()

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Oct 23 2024 11:45:13 GMT-0900 (Hawaii-Aleutian Daylight Time)