Skip to content

yrakcaz/bpm-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CI MIT License

bpm-detector

A command-line tool to extract the BPM (Beats Per Minute) from any audio file. Uses libsndfile for audio loading, analyzes energy levels across 4096-sample windows, detects peaks, and normalizes the result to the 70–200 BPM range.

Requirements

  • libsndfile (libsndfile1-dev)
  • g++ or clang++ with C++11 support

On Debian/Ubuntu:

apt install libsndfile1-dev

Build

./configure && make

Options:

  • --with-debug — enable debug symbols (-g3)
  • --with-clang — compile with clang++ instead of g++
  • --prefix=DIR — set install directory (default: /usr/local)

Install

make install

To uninstall:

make uninstall

Usage

bpm-detector <song file>

The detected BPM is printed to stdout.

About

Command-line tool to detect BPM from audio files using energy-based peak analysis. Written in C++.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors