GithubHelp home page GithubHelp logo

midi-track-identification's Introduction

Midi-Track-Identification

Categorize tracks of midi files into four classes:

  • 0: Melody
  • 1: Drum
  • 2: Bass
  • 3: Other

There are two main goals of this task:

  • Data Cleansing:
    • The track names in midi files are usually less meaningful.
    • The program number and channel number are not in GM Midi format.
  • Separate perceptually melodic tracks based on hand-labeling data

Note that it's possible that there are more than one melodic tracks in a song.


Result

Accuracy

  • Train: 1.0
  • Test: 0.98

Dataset

  • Jazz Realbook
  • Total: 1094 songs (7:3)
    • Train: 765
    • Test: 329

Conception

  • Feature Extraction
  • Classification (Random Forest, n_estimation=100)

Figures

  • Testing Stage image

  • Feature Distribution image image image

  • For further understanding, please refer to here


Usage

python compile_dataset.py
python compile_feature.py
python analysis.py

To run testing on self-prepared data, please check out the test.py

midi-track-identification's People

Contributors

wayne391 avatar

Stargazers

Yevhen Dubinin avatar OOOOQII avatar  avatar Junyan Jiang avatar Yi-Hsuan Yang avatar Hao-Wen (Herman) Dong 董皓文 avatar Yu-Siang Huang avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

wonsgong

midi-track-identification's Issues

Can any body fork and update this repo?

I ran these codes in python 3.8 and got a number of errors. I tried to fix some of them due to deprecated modules (like change "np.int" to "int") but still could not get script.py to work (it threw errors such as "midi_file object has no attribute of track", "track object has no attribute of pianoroll", etc.)

Maybe this repo is based on some particular old-time versions of pypianoroll and miditoolkit. Can any body fork and update it? Better to include the package requirements into the requirements.txt.

Thanks in advance, you gurus

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.