/aubiojs

aubio for javascript, the real-time audio processing library

Primary LanguageJavaScriptMIT LicenseMIT

aubiojs

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

  • pitch detection
  • tempo detection
  • fft forward and inverse

Usage

<script src="aubio.js"></script>
<script>
Aubio().then(function (aubio) {
  const tempo = new aubio.Tempo(bufferSize, hopSize, sampleRate)
  // ...
  const pitch = tempo.do(audioBuffer)
})
</script>

Build

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

emcmake cmake -Bbuild -H.
make -Cbuild