worldveil / dejavu

Audio fingerprinting and recognition in Python
MIT License
6.36k stars 1.43k forks source link

Add node/list data structure to return k song instead of only the max. #72

Closed thesunlover closed 9 years ago

thesunlover commented 9 years ago
Add node/list data structure to return k song instead of only the max.
worldveil commented 9 years ago

Unless I'm misunderstanding your purpose here, there's no reason to need a linked list or node structure.

If you want to return the top k results in terms of alignment, you'd need to edit here:

https://github.com/worldveil/dejavu/blob/master/dejavu/__init__.py#L118

and simply use a heapq to keep track of the top k matches in terms of their score.

thesunlover commented 9 years ago

Hi, Worldveil. Excuse me for this pull request and thank you for the answer I opened this request by a mistake.