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

Support for recording the *current* track #1213

Open
navid-zamani opened this issue Apr 24, 2024 · 0 comments
Open

Support for recording the *current* track #1213

navid-zamani opened this issue Apr 24, 2024 · 0 comments

Comments

@navid-zamani
Copy link

By always keeping the entire current track in the buffer, recording the current track retroactively can be implemented very easily.

Simply start a new buffer when a new song title is received, and grow it until the next title or until a size/time limit is reached.
So a very long track (10min) could still be “recorded”, 10 minutes in, but a 2 hour DJ session would be a bit much. :)

At CD quality, this would take less than 10 MB of RAM.

From experience with my own scripts back in the day, I know that „keep last track” is useful too, but it needs to come with a “keep second to last track”, as many radio stations will quickly change the title for some in-track ads, and then the ads would be the “last track”.
Due to memory concerns that one could be option though, I guess.
I personally always kept it enabled even back in 2009 due to its high usefulness.

Another very important thing that StreamRipper did back then, was to keep a bit of the last track in the next one and vice versa. Because the title changes often were not very exact. It had a nice algorithm though that looked for the nearest quietest part within a range. That did not work on DJ sets though, so the “keep a bit of overlap” was still necessary. If you don’t already copied StreamRipper, I can only recommend looking at their algorithms, as they are well-polished and well-documented in the help. (No idea if SR still even exists.)

Right now, the fact that one can neither keep nor bookmark the current track is a bit unfortunate, because that is usually the one one is interested in.

(Anyway, the app is very nice. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant