ebraminio / aubiojs

aubio for javascript, the real-time audio processing library

Home Page:https://qiuxiang.github.io/aubiojs/examples/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

aubiojs

aubiojs is a real-time audio processing library based on aubio, now including:

  • pitch detection
  • tempo detection
  • fft forward and inverse

Usage

(put aubio.js and aubio.wasm on the same folder as your html)

<script src="aubio.js"></script>
<script>
Module().then(function (module) {
  var aubioTempo = new module.AubioTempo('default', bufferSize, hopSize, sampleRate)
  // ...
  var pitch = aubioTempo.do(audioBuffer)
})
</script>

Build

This project uses emscripten to compile aubio, make sure you have installed.

Also feel free to install Ninja for faster builds.

emcmake cmake -Bbuild -H. -GNinja && ninja -Cbuild

About

aubio for javascript, the real-time audio processing library

https://qiuxiang.github.io/aubiojs/examples/


Languages

Language:C++ 61.8%Language:CMake 34.4%Language:C 3.8%