Giter Site home page Giter Site logo

piano_music_transcription's Introduction

Piano music transcription using Convolutional Neural Networks

This is the final project of Stanford CS230: Deep learning

Introduction

This project tries to solve piano music transcription problem using convolutional neural networks (CNN). The input to our system is piano music in .WAV format. We then apply constant Q transform (CQT) to the input so that the audio file is divided into multiple frames. Each frame has a ground truth label, thus we can use our neural networks to predict the pitch within each frame. The output is then processed to a MIDI (Musical Instrument Digital Interface) file, which can be directly converted to music scores.

Dataset

The dataset we use for this project is MAPS (MIDI Aligned Piano Sounds) dataset. Here is the link to the dataset.

Source Code

  • Preprocessing and evaluation scripts: forked from this repo
  • model/train.py defines models and training process
  • model/train_load.py loads a previous checkpoint
  • script/npy2midi.py coverts output numpy arrays to MIDI files.
  • script/run.sh integrates data preprocessing, model prediction and MIDI conversion together.

Prediction Result

Here is a Youtube video that presents the prediction result.

piano_music_transcription's People

Contributors

zehuiw avatar diegomorin8 avatar

Stargazers

 avatar

Watchers

James Cloos 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.