Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Played" indicator #44

Open
dwhinham opened this issue Apr 7, 2020 · 0 comments
Open

"Played" indicator #44

dwhinham opened this issue Apr 7, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dwhinham
Copy link
Collaborator

dwhinham commented Apr 7, 2020

Add a feature to the file browser to show which songs have already have been played in this session, a bit like Traktor.

This could be as simple as a small icon next to played songs.

The indicators should survive when the user navigates up and down the file system hierarchy.

Idea for implementation:

  • Implement a fast hashing function (e.g. Pearson hashing) that can scan a module header and create a unique hash code based on its file name, file size, song title, and sample names (n.b. whole module header).
  • For every song that has been played for more than $SOME_AMOUNT_OF patterns, add its hash into a global in-memory "played" list. This could be a fixed length, or dynamically-growing.
  • When refreshing the file browser, hash each song being scanned. If the resulting hash code is in the "played" list, draw its "played" icon in the file browser.
@dwhinham dwhinham added the enhancement New feature or request label Apr 7, 2020
@dwhinham dwhinham added this to the v1.1 milestone Apr 7, 2020
@dwhinham dwhinham self-assigned this Apr 7, 2020
@kikendo kikendo modified the milestones: v1.1, v1.2 Jul 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants