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.

Usage

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

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

-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.

Example

$ aubio-beat-osc -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.

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.2.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

aubio_beat_osc-1.2-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file aubio-beat-osc-1.2.tar.gz.

File metadata

  • Download URL: aubio-beat-osc-1.2.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for aubio-beat-osc-1.2.tar.gz
Algorithm Hash digest
SHA256 3c8dc6903b7b58b54b6ffab6b4c43a792789719622529b6ae2239346bac9c3e5
MD5 2146c77a258a579700b8a8cd1fcbdd9c
BLAKE2b-256 c8f9a7ae5c9f6521e0ed9de667255760a4fec4233e4ac269af375df4589a0f01

See more details on using hashes here.

File details

Details for the file aubio_beat_osc-1.2-py3-none-any.whl.

File metadata

  • Download URL: aubio_beat_osc-1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for aubio_beat_osc-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d6eeac24c0e69d35fc1707d83ff218221a5f81593a290c2210cab931b17cbfdf
MD5 9e28806941ffe81211ce9e770266638e
BLAKE2b-256 a79f033865f9970fd3262623c9ab4c3ef3d7e7a2f5cf17373db4bd33c47fa9bb

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page