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

request: gbsinfo for specified subsong #8

Open
y opened this issue Sep 3, 2015 · 5 comments
Open

request: gbsinfo for specified subsong #8

y opened this issue Sep 3, 2015 · 5 comments

Comments

@y
Copy link

y commented Sep 3, 2015

I would like to pass a track number to gbsinfo to get information only for that subsong. Mainly I want to know the duration for each subsong. I could extract each subsong as a separate audiofile to determine this, but it would be more efficient to not have to extract them if this can be determine using the header data.

Also, maybe gbsinfo should show the sum total duration of all subsongs.

@ranma
Copy link
Collaborator

ranma commented Sep 4, 2015

Effectively the header does not have length information, the only way is to actually to run the song and see if it ends in silence or loops forever.

@ranma
Copy link
Collaborator

ranma commented Nov 15, 2015

The best way to add this would be to have a database file with information about all known game music dumps.

@MineRobber9000
Copy link

this seems like a candidate for a backwards-compatible GBSv2. maybe past a certain point in the data (how many banks do games USE for audio?) there could be data about estimated song lengths. this data could be summed to create a total length.

@ranma
Copy link
Collaborator

ranma commented Jan 4, 2019

gbsplay actually has a spec for an extended format, see https://github.com/mmitch/gbsplay/blob/master/gbsformat.txt which includes "Length of Subsong" already.
However that requires updating the files themselves, by now I think that a hvsc-style database file is a better approach (https://hvsc.de/download/C64Music/DOCUMENTS/Songlengths.faq).

@mmitch
Copy link
Owner

mmitch commented Jan 11, 2021

With commit 9f3e0ed we have removed the support of the extended format mentioned above. So there currently is no subsong specific information available that gbsinfo could display.

The hvsc style database would be a solution to the original request, but I think that is more of a separate general community project than a new feature to gbsplay.

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

No branches or pull requests

4 participants