Skip to content

serkanozer/ScoreMatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

ScoreMatch

An implementation for finding the best matching audio for a given score.It provides metadata matching and audio matching seperately.Full-metadata matching is implemented based on extractArtist method of the Echonest api.Audio matching is done based on dynamic time warping with chroma feature sequences.MuseScore API is used for the scores. Echonest and Spotify APIs are used for extracting and examining audio sources

Usage

First create score based on a MuseScore score id

score = create_score(score_id) 

For full-metadata matching on score

score.metadata_match()

This will return a single result as EchonestSong or SpotifyTrack and None if no song is matched.

For audio matching first generate possible candidate queries.Then, get tracks for list of tracks for any candidate query.Then, rank tracks with respect to similarity to the score.

queries = score.get_queries()
tracks = query_spotify(query[0])
ranking = rank_analyzables(score, tracks, 'full')

ranking is list of 2-tuples (matched_track,matching_score)

best_track = ranking[0][0]
best_score = ranking[0][1]

The algorithm has two modes as full and partial.In full mode, chroma sequence of full candidate audio is used for the matching.In partial mode chroma sequence is extracted from 30 seconds spotify preview audio

ranking = rank_analyzables(score, tracks, 'partial')
ranking = rank_analyzables(score, tracks, 'full')

Dependencies

rpy rdtw
sonic-annotator for partial mode
mido
pyechonest

About

Finding matching audio for scores

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published