Code Monkey home page Code Monkey logo

pyace's Introduction

What is the project?

pyace: A python implementation of automatic chord estimation (ACE) from audio

Why this project?

This is a super lite version that derives from my PhD thesis. The original code of this work is written in matlab. So I try to port some of those code into python, but this is by no means a direct porting. This project is meant to be a minimalist version of ACE, which keeps only the algorithmic gist of the original work.

Compared with the original version which supports sevenths chords and inversions, this piece of code currently only supports maj and min triads, and it has much lighter (only a few lines of) feature extraction and segmentation codes.

What are the dependencies?

It depends on librosa for feature extraction and hmmlearn for chord segmentation (as well as labeling if in the simple model)

Also install keras (and theano or tensorflow also) to use the FCNN or RNN models, otherwise you could only run it in "simple" model.

How to install it?

pip install pyace

How to use it?

First of all import the module by calling:

import pyace

It basically provides two simple interfaces:

pyace.simpleace(songpath, respath)

and

pyace.deepace(songpath, respath, modelpath, acemode)

How to use it without installation?

You could just take the source code and run it as:

python pyace.py [songpath] [acemode] [modelpath]

The acemode can be either 'simple', 'fcnn' or 'rnn'.

For example, try the following lines:

python pyace.py aizheni.mp3 simple
python pyace.py aizheni.mp3 rnn ./model/lstmrnn512/CJKURB.cg.model

The pretrained models as well as the testcases can be downloaded here

Can I modify the code?

This is a very lite version of ACE. You are strongly encouraged to take this piece of code away and do whatever you want to.

How can I evaluate the results?

Please refer to the evaluation script provided (pyace/aceeval.py and eval.sh) for the evaluation process. The process relies on the MusOOEvaluator

License

This software is under BSD License. For commercial use of this software, please contact the author.

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.