Capstone project for Week 1 of CogWorks 2018.
To install, simply run python setup.py install.
from songmatch.trainer import train_all_songs
train_all_songs()For example, to record for 10 seconds:
from songmatch.matchsong import match_recording
match_recording(10)Change the parameter to match_recording to change duration.
Want to add more songs to your database?
from songmatch.songbase import songbase
songbase.append("Pink Floyd - Time.mp3")Append the song mp3 file names to the database and then rerun the train_all_songs() function.
IMPORTANT NOTE: when contributing, avoid pushing database.pickle to any branch as the file size is too large for github to handle.