AUBIO(1)

πŸŽ€ AUBIO πŸŽ€

okay so bestie, welcome to aubio(1) β€” the aubio User's manual, and honestly? it's giving "tiny command, big main character energy." it's a command line tool to extract information from sound files, and yes it absolutely ate. πŸ’…


✨ NAME ✨

aubio β€” a command line tool to extract information from sound files 🎧


🌸 SYNOPSIS 🌸

aubio [-h] [-V] <command> ...

πŸ¦‹ COMMANDS πŸ¦‹

the general syntax is literally aubio <command> <soundfile> [options]. here's what's on the menu, no cap:

  • onset β€” get onset times
  • pitch β€” extract fundamental frequency
  • beat β€” get locations of beats
  • tempo β€” get overall tempo in bpm
  • notes β€” get midi-like notes
  • mfcc β€” extract mel-frequency cepstrum coefficients
  • melbands β€” extract mel-frequency energies per band

for a list of available commands, use aubio -h. for more info about each command, use aubio <command> --help. iykyk πŸ’–


⭐ GENERAL OPTIONS ⭐

these options can be used before any command has been specified, bestie:

  • -h, --help β€” show help message and exit
  • -V, --version β€” show version

πŸŽ€ COMMON OPTIONS πŸŽ€

the following options can be used with all commands β€” universal slay:

  • <source_uri>, -i <source_uri>, --input <source_uri> β€” input sound file to analyse (required, like fr, you gotta give it a file πŸ™ˆ)
  • -r <freq>, --samplerate <freq> β€” samplerate at which the file should be represented (default: 0, e.g. samplerate of the input sound)
  • -H <size>, --hopsize <size> β€” overlap size, number of samples between two consecutive analysis (default: 256)
  • -B <size>, --bufsize <size> β€” buffer size, number of samples used for each analysis, (e.g. FFT length, default: 512)
  • -h, --help β€” show help message and exit
  • -T format, --time-format format β€” select time values output format (samples, ms, seconds) (default: seconds)
  • -v, --verbose β€” be verbose (increment verbosity by 1, default: 1)
  • -q, --quiet β€” be quiet (set verbosity to 0)

πŸ”₯ ONSET πŸ”₯

the following additional options can be used with the onset subcommand:

  • -m <method>, --method <method> β€” onset novelty function <default|energy|hfc|complex|phase|specdiff|kl|mkl|specflux> (default: default)
  • -t <threshold>, --threshold <threshold> β€” threshold (default: unset)
  • -s <value>, --silence <value> β€” silence threshold, in dB (default: -70)
  • -M <value>, --minioi <value> β€” minimum Inter-Onset Interval (default: 12ms)

πŸ’œ PITCH πŸ’œ

the following additional options can be used with the pitch subcommand:

  • -m <method>, --method <method> β€” pitch detection method <default|yinfft|yin|mcomb|fcomb|schmitt> (default: default, e.g. yinfft)
  • -t <threshold>, --threshold <threshold> β€” tolerance (default: unset)
  • -s <value>, --silence <value> β€” silence threshold, in dB (default: -70)
ok so heads up, the page says this right here in the PITCH section and we're keeping it exactly: the default buffer size for the beat algorithm is 2048. the default hop size is 256. that's what it says, so that's what you get 🫢

🌈 BEAT 🌈

the beat command accepts all common options and no additional options. it's low maintenance like that.

the default buffer size for the beat algorithm is 1024. the default hop size is 512.


⭐ TEMPO ⭐

the tempo command accepts all common options and no additional options.

the default buffer size for the beat algorithm is 1024. the default hop size is 512.


πŸ“ NOTES πŸ“

the following additional options can be used with the notes subcommand:

  • -s <value>, --silence <value> β€” silence threshold, in dB (default: -70)
  • -d <value>, --release-drop <value> β€” release drop level, in dB. if the level drops more than this amount since the last note started, the note will be turned off (default: 10).

🧚 MFCC 🧚

the mfcc command accepts all common options and no additional options.


πŸ‘‘ MELBANDS πŸ‘‘

the melbands command accepts all common options and no additional options.


πŸ’– EXAMPLES πŸ’–

extract onsets using a minimum inter-onset interval of 30ms:

aubio onset /path/to/input_file -M 30ms

extract pitch with method mcomb and a silence threshold of -90dB:

aubio pitch /path/to/input_file -m mcomb -s -90.0

extract MFCC using the standard Slaney implementation:

aubio mfcc /path/to/input_file -r 44100

🎧 SEE ALSO 🎧


πŸ’Œ AUTHOR πŸ’Œ

this manual page was written by Paul Brossier <piem@aubio.org>.

permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. (iconic licensing behavior, honestly 🫢)


so yeah, that's the whole thing β€” <rainbow>aubio 0.4.9, dated 29 March 2025 🌸 mwah, go analyse some sound files bestie, you got this πŸ’…βœ¨

πŸ“¦ where this page comes from