Skip to main content

Onset Beat Detection to 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.

Installation

pip install aubio-beat-osc 

Usage

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

optional arguments:
  -h, --help            show this help message and exit
  -c IP PORT ADDRESS, --client IP PORT ADDRESS
                        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
  -d DEVICE, --device DEVICE
                        Input device index (use list command to see available devices)

-c/--client

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

-b/--bufsize

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

-v/--verbose

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

-d/--device

Specify the index of input device to be used. If not provided, the default system input is used.
Run aubio-beat-osc list to get all available devices.

Example

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

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

Release files for aubio-beat-osc 2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aubio-beat-osc 2.0
File Size Uploaded
aubio-beat-osc-2.0.tar.gz 4.5 kB Details

Release files / aubio-beat-osc-2.0.tar.gz

Download URL aubio-beat-osc-2.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
da65e25bb33b434fa3effa260f965b8f23d93346bd1ac1e60073272d327b8ffb
BLAKE2b-256 checksum
How to use checksums
8fb7e9de487631ca10732515eaa2e10ce6fa5b8d9aba874ad32025e3f40636a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

2.0 This release

1 release file

1.3

1 release file

1.2

2 release files

1.1

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page