Coder Social home page Coder Social logo

genre-wizard's Introduction

fourier

A machine learning system to classify music genres from audio. This code was written in 2014, so it is messy and out of date.

Reflection (Aug. 2019). Looking back on this, it's interesting that 1-D ConvNets / RNNs utterly crush this clever technique for the same classification task. As Rich Sutton noted in "The Bitter Lesson", compute triumphs over cleverness.

The pessimistic view is that clever researchers have low marginal utility. But the optimistic view suggests that deep learning is here to stay. Since compute will likely continue to accelerate, AI applications will gradually become more accessible to software engineers and the world more broadly.

This implementation uses mel-frequency cepstrum coefficients fed into an SVM for classification. Broadly, the algorithm works as follows (from SciPy's feature toolbox):

  • Take the Fourier transform of a signal.

  • Transform the spectra onto the mel scale, due to Stevens, Volkmann, and Newman in 1937.

  • Take logarithms of the powers at each mel frequencies.

  • Take the discrete cosine transform of the list of mel log powers.

  • The MFCCs are the amplitudes of the resulting spectrum.

Goals

  • Try to understand the "essence" of what a musical genre means.
  • Try to understand the math and physics behind music.

Todo

  • Explore Fourier analysis to model sound.
  • Explore the connections between Fourier analysis and ConvNets.
  • Potentially: explore Haskell implementations of GLMs or deep learning models.
  • Potentially: make this code nice.

genre-wizard's People

Contributors

acganesh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

techscientist

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.