Giter Site home page Giter Site logo

beat-tracking-tcn's Introduction

Beat Tracking TCN

An implementation of two adaptations to Davies & Böck's beat-tracking temporal convolutional network [1].

Usage

In order to use the beat tracker, this package and its dependencies must be installed with pip. It is recommended to do so in a virtualenv as follows:

python -m venv venv
source venv/bin/activate

The dependencies can then be installed like so*:

pip install -r requirements-env.txt && pip install -r requirements.txt

Once this is done, the beat tracker can be accessed like this:

from beat_tracking_tcn.beat_tracker import beatTracker

beats, downbeats = beatTracker("path_to_audio_file")

Alternatively, if you have the required dependencies librosa, madmom, mir-eval, numpy, and torch installed system-wide, you can perform a system wide install by running the following command from the root of this source repo:

pip install -e .

The beat tracker can then be invoked as above.

* It is important to use the full install command as listed, as madmom's setup.py itself depends on some packages (namely, cython and numpy. Splitting dependencies over two files like this prevents the install from falling down.

References

[1] M. E. P. Davies and S. Bock, ‘Temporal convolutional networks for musical audio beat tracking’, in 2019 27th European Signal Processing Conference (EUSIPCO), A Coruna, Spain, 2019, pp. 1–5, doi: 10.23919/EUSIPCO.2019.8902578.

beat-tracking-tcn's People

Contributors

ben-hayes avatar

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.