Giter VIP home page Giter VIP logo

odcnn's Introduction

Musical Onset Detection with Convolutional Neural Networks

Summary

  • model architecture: simple convolutional neural network

  • prediction: probability of onset

Description

This repository is implementation of Jan Schlüter and Sebastian Böck's "IMPROVED MUSICAL ONSET DETECTION WITH CONVOLUTIONAL NEURAL NETWORKS"

ABSTRACT:

Musical onset detection is one of the most elementary tasks in music analysis, but still only solved imperfectly for polyphonic music signals. Interpreted as a computer vision problem in spectrograms, Convolutional Neural Networks (CNNs) seem to be an ideal fit. On a dataset of about 100 minutes of music with 26k annotated onsets, we show that CNNs outperform the previous state-of-the-art while requiring less manual preprocessing. Investigating their inner workings, we find two key advantages over hand-designed methods: Using separate detectors for percussive and harmonic onsets, and combining results from many minor variations of the same scheme. The results suggest that even for well-understood signal processing tasks, machine learning can be superior to knowledge engineering.

Using PyTorch, implemented musical onset detectioner and apply it to Taikosanjiro which is sounds game like taiko-no-tatsujin

Usage

Requirement

  • git-lfs (for downloading large dataset)
  • python3
  • pytorch
  • soundfile
  • librosa
  • tqdm

Install Pytorch

you can download from here

Running Sample

  • install requirement
$ pip install -r reqirement.txt
  • before training, prepare audio dataset. (and pickle data.)
$ python music_processor.py reduced
$ python music_processor.py test
  • then, train model.
$ python train.py don
$ python train.py ka
  • then predict onset probability with trained model.
$ python infer.py don
$ python infer.py ka
  • and create notes and corresponding music from inferred data.
$ python synthesyze.py 

Notice

  • train_reduced in this repo is too small for training, because of limitation of uploadable file size of git, I wasn't able to upload enough size training data.

  • if you want to train model with larger data, you could download audio data and corresponding notes here.

References

odcnn's People

Contributors

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