GithubHelp home page GithubHelp logo

music_retrieve's Introduction

music_retrieve

A music retrieve demo in Python

0. Setup Environment

This project is running in Python3.x, and please enusre following packages are installed:

  • librosa
  • pyaudio
  • wave
  • numpy
  • dtw

1. How to run

(1) Put the music library in folder music_base, during which the algorithm will recognize the playing music and output a similiar music, the supported format is .wav.

(2) Run script librosa_music.py, a music retrieve database is created and stored as beatDatabase.npy.

(3) Make sure the microphone on your computer works fine. Run script librosa_main.py, and in the meanwhile play a song on your smart phone, the mactched song can be recognized in 20 seconds.

2. Underlying principle

Music signals in library->beat time extraction->beat feature->beat database
                                                                    |
                                                                    |
Music signals in the air->beat time extraction->beat feature->sequence match using dtw
->output the song with minimum distance

3. Reference

http://librosa.github.io/librosa/generated/librosa.beat.beat_track.html#librosa.beat.beat_track https://labrosa.ee.columbia.edu/projects/beattrack/

4. Blog for this project

用Python实现一个简易的“听歌识曲”demo(一)

music_retrieve's People

Contributors

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