Skip to content

Matt-Esch/browser-fft

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browser-fft

A cheap FFT by abusing the web audio API

Example

var FFT = require("browser-fft")

var bufferSize = 2048
var analyse = FFT(bufferSize)
var data = new Float32Array(bufferSize)

for (var i = 0; i < bufferSize; i++) {
    data[i] = Math.random()
}

analyse(data, function (err, value) {
    if (err) {
        console.error(err)
    } else {
        console.log(value)
    }
})

Installation

npm install browser-fft

Contributors

  • Matt-Esch

MIT Licenced

About

A cheap FFT by abusing the web audio API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published