Giter VIP home page Giter VIP logo

beatviewer's Introduction

BeatViewer

BeatViewer is a Python program that analyzes an audio stream, extracts onsets, tempo and beats, and creates visuals from them in real time. Feature extraction relies on state-of-the-art beat tracking algorithms. Visuals are rendered via Pygame or external programs such as OBS Studio or any WebSocket client.

For a detailed narration of the birth of the project, watch the associated video (in French, English subtitles are coming).

Requirements

This program requires a working installation of Python 3. Tools such as FFmpeg and OBS Studio are recommended.

Installation

  1. Download the latest release
  2. Install it with pip:
    pip install ~/Downloads/beatviewer-1.0.0.tar.gz

Some resources (OBS script, tools, JS visuals) are available through direct download and are attached to the latest release.

Configuration

Here is a summary of what you'll need to get started. For more options (file output, tracking parameters, etc.) please refer to the wiki.

Audio Source Selection

By default, BeatViewer uses the default audio input. You can specify an audio device using the -a <device-id> parameter. You can get a list of audio devices by using the -l flag. You can also execute the module offline, by passing the path to an audio file with the -f argument (for now, only WAVE file are supported).

Visualizer Selection

By default, no visualizer is attached to the tracker, it simply prints dots to stdout when a beat occurs. You can specify a visualizer by typing its name after the beat tracking arguments:

python -m beatviewer <visualizer-name> <visualizer-arguments+>

For a quick test, you can try the galaxy visualizer. You'll find a list with more options and instructions on the wiki.

Contributing

Contributions are welcomed. For now, performance enhancements and addition of new visualizers are mostly needed. Do not hesitate to submit a pull request with your changes!

License

This project is licensed under the GPL-3.0 license.

Troubleshooting

Submit bug reports and feature suggestions in the issue tracker.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.