Code Monkey home page Code Monkey logo

harmonic-onset-detection's Introduction

Installation

To be able to run the audio player (quickPlayer.py), you need to install PyAudio. This is necessary for observing the results.
$ sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
$ sudo apt-get install ffmpeg libav-tools
$ sudo pip install pyaudio

Notebooks:
mc_crop: After putting audio files into "musiccritic" folder, run this. Cropped .wav files together with altered onset annotations will go into "musiccritic_cropped" folder. It crops the unwanted (silence, somebody talking etc.) parts from the beginning and the end of the recordings.

main: First cell installs GuitarSet and unzips to "guitarset" folder. Usage of onset detection and audio player is shown.

chord_segmentation: In chord exercises, rise time of the chords and spacing of individual strings are important. This notebook shows a prototype.

od_comparison: Onset detection algorithms applied on whole datasets. You need "madmom" library for CNN Onset Detector.

Results

GuitarSet

Overall F-score Precision Recall
CNN Onset Detector 0.84 0.78 0.92
GuitarOnsetDetector 0.71 0.95 0.59
HOD 0.84 0.89 0.81

Music Critic Dataset

Overall F-score Precision Recall
CNN Onset Detector 0.70 0.59 0.92
GuitarOnsetDetector 0.80 0.80 0.80
HOD 0.85 0.86 0.84
                             GuitarSet                    Music Critic Dataset
Chord Files F-score Precision Recall - F-score Precision Recall
CNN Onset Detector 0.82 0.78 0.88 0.59 0.46 0.93
GuitarOnsetDetector 0.69 0.95 0.56 0.74 0.74 0.74
HOD 0.81 0.91 0.76 0.84 0.84 0.85
                             GuitarSet                    Music Critic Dataset
Solo Files F-score Precision Recall - F-score Precision Recall
CNN Onset Detector 0.86 0.79 0.95 0.78 0.69 0.92
GuitarOnsetDetector 0.73 0.95 0.60 0.85 0.86 0.84
HOD 0.86 0.88 0.86 0.85 0.88 0.84

GuitarSet: https://github.com/marl/GuitarSet
DFT, Peak Detection taken from https://github.com/MTG/sms-tools
CNN Onset Detector: https://github.com/CPJKU/madmom
Annotation of the music critic dataset is done with https://github.com/siyarvurucu/Sound-Annotator

harmonic-onset-detection's People

Contributors

siyarvurucu avatar

Watchers

Xavier Serra avatar Vsevolod Eremenko avatar  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.