Giter VIP home page Giter VIP logo

tempo-tracking's Introduction

Tempo tracking using probabilistic estimation/ML/signal processing methods

This repository contains work from a project done for the EL2320 course (Applied Estimation) in KTH. The report for the project is under the report directory.

Environment details

  • Python 3.9

XGBoost beat detector + Particle filter tempo tracker (Implementation halted)

In this approach an XGBoost classifier is trained to detect beats from the audio using spectral features and a particle filter uses the XGBoost output as observations and tracks the beat location and the tempo period in a song.

Datasets

XGBoost beat detection model

We perform STFT with a window size of 0.1s and a hop size of 0.0375s, which means that we detect beats within audio blocks slightly larger than than 16th note sized blocks, with a resolution corresponding to 32th notes, for a maximum tempo value of 200 BPM. A hann window is used with STFT. We then split the frequency bands to the ranges (50,120), (120,300) and (300, 22050) and calculate the sum over those frequency bands as features. XGboost then takes as input those sum values for 32 time steps, which corresponds to 96 values in total. The prediction of XGBoost infers whether there is a beat or not at the center of the last STFT frame.

Switching Kalman state tempo tracker on MIDI onset times

We extract the note onsets from the available MIDI files and perform tempo tracking using the method proposed in this paper, using a particle filter to estimate the switching state variable.

We also evaluate the method without a particle filter estimation of the switching state variable, but by using the optimal switching state value that minimizes the residual error between the observed and predicted onset at each timestep.

Current state: The particle filter method does not work properly or is simply not performing well on the dataset we evaluated it on. Using the single switch variable value minimizing the observed/predicted onset residual gives an Accuracy2 performance value of 83.6% on the GMD dataset described below.

Datasets

tempo-tracking's People

Contributors

mathewstylianidis avatar yannisross avatar

Watchers

 avatar

Forkers

yannisross

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.