Skip to main content

Simple beat detection outputting to OSC servers

Project description

Beat Detection with OSC

This is a simple beat detector built with aubio. It will detect the beat and BPM on the default audio input. On every beat, the current BPM is sent to one or more OSC servers.


pip install aubio-beat-osc 


aubio-beat-osc [-h] -c IP PORT ADDRESS [-b BUFSIZE] [-v]

optional arguments:
  -h, --help            show this help message and exit
                        OSC Client address (multiple can be provided)
  -b BUFSIZE, --bufsize BUFSIZE
                        Size of audio buffer for beat detection (default: 128)
  -v, --verbose         Print BPM on beat


Add an IP, PORT and OSC ADDRESS to which the BPM beat signal will be sent to. Example: -c 31337 /foo/beat


Select the size of the buffer used for beat detection. A larger buffer is more accurate, but also more sluggish. Refer to the aubio documentation of the tempo module for more details. Example: -b 128


Output a handy beat indicator and the current BPM to stdout.


$ aubio-beat-osc -c 31337 /foo/bar -c 12345 /test/baz -v

This will send beat messages to the OSC address /foo/bar on and /test/baz on Additionally the current BPM will be printed to stdout.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aubio-beat-osc-1.3.tar.gz (4.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page