GithubHelp home page GithubHelp logo

frankyyyt / musicrecommendation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gkrupit/musicrecommendation

0.0 2.0 0.0 1.84 MB

CMake 0.01% Makefile 0.28% C++ 85.31% Python 1.99% C 0.92% HTML 7.77% CSS 1.45% JavaScript 1.45% Shell 0.68% Roff 0.14%

musicrecommendation's Introduction

MusicRecommendation

This project is the basis for a content-based music recommendation algoritm that uses similar chord progression as a metric for song recommendation. (In the future, other content based metrics drawn from wavelet analysis will be used in addition to chord progression).

Overview of the content-based system:

  1. For each MP3, determine the BPM, chord progression, chord historgram, and key. (In directory ChordAnalysis)

  2. BPM: algoritm is found here: https://github.com/scaperot/the-BPM-detector-python/blob/master/bpm_detection/bpm_detection.py

  3. Chord progression: https://github.com/adamstark/Chord-Detector-and-Chromagram, converted to Python 2.x using Boost-Python

1. The initial chord progression is not very accurate, so using some basic music theory and assumptions about the accuracy of the chromagram/chord analysis of the mp3, correct some obvious mistakes (Some of this is in the directory CorrectProgression)
  1. Chord Histogram - Used as input data for machine learning (In directory MachineLearning)

  2. Key: Machine learning. Once key is found, transpose chord progression to C for normalized comparison with other progressions.

  3. Compare Chord Progressions (In directory CompareProgressions) using original distance measurement between chord progressions

  4. Distance 1: The distance between chord progressions is based on similarity of k-length subprogressions. All consecutive k-length subprogressions in two songs are compared using the traditional Edit Distance algorithm (will be modified in the future for this application), where the minimum edit distance of 0 means the subprogression are identical, while the maximum edit distance of k means the progressions are completely distinct.

  5. Distance 2: Similar to Distance 1, the distance between chord progressions is based on similarity of k-length subprogressions. In this distance measurement, only identical subprogressions are considered. The individual chords in song A that are part of an identical subprogression in song B are recorded. These chords are counted for each song, and the percentage of each song that are part of identical subprogressions in the other are determined. The disance is currently implemented as the average of these percentages.

musicrecommendation's People

Contributors

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