Questions tagged [aubio]

A tool designed for the extraction of annotations from audio signals. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio.

From aubio.org:

What is aubio?

aubio is a tool designed for the extraction of annotations from audio signals. Its features include segmenting a sound file before each of its attacks, performing pitch detection, tapping the beat and producing midi streams from live audio.

Because these tasks are difficult, we thought it was important to gather them in a dedicated library. To increase the fun, we have made these algorithms work in a causal way, so as to be used in real time applications with as low delay as possible. Functions can be used offline in sound editors and software samplers, or online in audio effects and virtual instruments.

Features

aubio currently provides the following features:

  • digital filters
  • phase vocoder
  • onset detection (several methods)
  • pitch tracking (several methods)
  • beat and tempo tracking
  • mel frequency cepstrum coefficients (MFCC)
  • transient / steady-state separation

Implementation

aubio is written in C. The functions can be called from C++, and a wrapper has been written using SWIG. The python interface is already usable, and it would probably be a matter of seconds to add access to the other languages supported by SWIG (including perl, java and many more).

Currently, aubio depends on libsndfile, libsamplerate and FFTW. On Linux platforms, aubio can be built using JACK, and ALSA.

54 questions
1
vote
1 answer

Android Visualizer behavior

I'm trying to use a C library (Aubio) to perform beat detection on some music playing from a MediaPlayer in Android. To capture the raw audio data, I'm using a Visualizer, which sends a byte buffer at regular intervals to a callback function, which…
F.X.
  • 6,809
  • 3
  • 49
  • 71
0
votes
0 answers

Error installing Aubio with Python/pip on Windows

Problem I ran pip install aubio, here are the errors: Collecting aubio Downloading aubio-0.4.9.tar.gz (479 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 479.0/479.0 kB 4.3 MB/s eta 0:00:00 Preparing metadata (setup.py) ... done Requirement…
0
votes
0 answers

Raspberry Pi: "Unable to import Numpy umath from aubio module (error -1)"

I'm getting the error messages: Unable to import Numpy array from aubio module (error -1) Unable to import Numpy umath from aubio module (error -1) Segmentation fault I've started a completely new version of Bullseye (32-bit) on my Pi 4 Model B…
0
votes
0 answers

legacy-install-failure while downloading Aubio Python

I'm trying to import aubio and i get the same error every time. I tried already; pip install aubio, I tried downloading it and importing it trough a file, I tried to make it with venv, I tried other versions, I upgraded pip, I tried anm other Python…
user17770621
0
votes
3 answers

aubio python bindings in os x lion

when i install aubio via macports (with the python variant), i cannot import the python aubio modules: Python 2.5.6 (r256:88840, Sep 19 2011, 21:07:27) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)] on darwin Type "help",…
0
votes
1 answer

How can I make the code stop running after it has detected a certain tone after a set period of time?

I am using the PyAudio and aubio libraries to read the tone coming in from a tone generator (Motorola Code Synthesizer II) which is plugged in to my computer via an Audio Jack usb port.(7.1 Channel Sound). I have code that can successfully read the…
0
votes
1 answer

Can't install aubio library for python

I've had this problem for hours, and still can't fix it. I've tried almost everything. I've tried using both python 3.10 and 3.8 and here is the error I usually get: Collecting aubio Downloading aubio-0.4.9.tar.gz (479 kB) …
mhmmdfrmn
  • 11
  • 2
0
votes
0 answers

How would I retrieve the pitch and loudness from other samples of the microphone?

Heres the existing code, I already have. though it only retrieves one loudness and pitch value from the microphone import aubio import numpy as num import pyaudio import sys import requests BUFFER_SIZE = 2048 CHANNELS =…
Lavacat
  • 11
  • 4
0
votes
1 answer

PyQt5 app - using timer to run a function with a loop makes it "freeze up"

I am trying to create a GUI for a terminal app I created that listens to your microphone to determine which note you are playing on Guitar. I want to use PyQt5 and it is the first time I am using it (or any GUI framework in particular). I can create…
bende
  • 183
  • 4
  • 13
0
votes
1 answer

How to get the average pitch of a .wav file without using Aubio?

So, I am working on a program to compare the average pitch's of different .wav files. I had found a solution and it worked on repl.it using aubio, but for some reason every time I do pip install aubio it gives about 50 red lines of error. Something…
0
votes
1 answer

How to produce same mfcc result as librosa using aubio?

I am trying to calculate Mfcc feature in C++. And I found Aubio (https://github.com/aubio/aubio) but I cannot produce same result as Librosa of Python (this is important). Librosa code: X, sample_rate = sf.read(file_name, dtype='float32') mfccs =…
0
votes
1 answer

Runtime error in openframworks code I'm not even using

I'm starting a project using the Aubio library within openFrameworks, so I'm copying in code to my project from Aubio demos, modifting, etc. The Aubio function new_aubio_pitchdetection() works great, but the similar function new_aubio_onset()…
buildsucceeded
  • 4,203
  • 4
  • 34
  • 72
0
votes
0 answers

What is the function of buffer size and hop size in aubio library for python?

I'm working with the aubio library for sound analysis. Basically to detect onset of beats. aubio.onset() takes 4 arguments, 2 of which are buffer size and hop size. I'm trying to figure how changing these 2 values affects my onset detection. -B,…
0
votes
0 answers

Detecting Specific Sounds (Frequencies) with Python

I want to record sound of a machine and want to detect if its present in another sound file that I record. I am able to record the sound of the machine and the sound file that I want to detect its presence. I am also able to take fft of the sound…
0
votes
2 answers

Methods not declared after including

I'm attempting to write a simple bpm calculation program in C with using the aubio library. Everything seems to be going smoothly until I attempt to call upon aubio_tempo_do (documentation) Unfortuantely, make provides me with the error:…
kelly.dunn
  • 1,546
  • 3
  • 16
  • 23