-
-
Notifications
You must be signed in to change notification settings - Fork 397
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
Standardize tune description format #28
Comments
@fulldecent, what was wrong with the human-readable ".song" format described in #1 & #24? |
@rocketinventor Nothing is wrong with those ideas. For the "standardized" format, the simplest one is preferred. Going forward I think we will also have a few parsers to bring, say, morse code or midi into this format. |
@fulldecent It would probably be a good idea to have start, stop, and end of line symbols. While these are not 100% necessary, they would still be useful to improve the resiliency of the parser against poorly formed files, and code. In addition, start and end tokens would allow for arbitrary text to be added before, and after the actual song data. Making |
Right now the 400 0 is just a pause so that the tune can be repeated with the correct pause between plays. |
Oh. That should probably be mentioned in the specs, then. |
Changed over the song parser and accompanying code to be inline with the new, as suggested in issue fulldecent#28.
@fulldecent Please update the proposal message to indicate that the JS port has been updated to use this new spec. |
@rocketinventor Thank you, one check for the good guys |
Tune format now working for c implementation with 0090934 |
I am new to this project and wanting to help, has any scripts been written to convert the sound to this format. |
None yet. I have manually converted some other files into .tune format. But if you could write something took text and turned it a tune as morse code, that would be pretty cool. If you can do it as a web page then we could host it at https://fulldecent.github.io/system-bus-radio/ |
It should be noted that this format is distinct from edit: Adding to the below comment: pitch and duration are in the reverse order as well. |
This is equivalent to the GRUB_INIT_TUNE when using a TEMPO of 60,000 (bpm) |
make one for rickrolling people |
We should have a common format for describing tunes (series of beeps) across the different implementations in this repository. Extensive searching was done, a simple widespread standard was not found.
Following is proposed:
0
which represents silence\n
, but\r\n
should not cause an error when reading file).tune
Example for
mary_had_a_little_lamb.tune
:Work plan:
tunes/
folder.tune
file on the command line / stdin or however elseRelated: #1
The text was updated successfully, but these errors were encountered: