Open felixroos opened 5 years ago
Nice work on the jazzband site! Go ahead and submit PR. It would be good to have an option for both types of outputs: • raw serial output of chords as it is now for easy chord progression finding and corpus analysis • your suggested lossless JSON
Hey there, nice work! Would you accept a pull request that extends the lib with a method to return all unprocessed ireal tokens? I am currently tinkering with leadsheets, trying to get a nice format for a playalong lib. The unscrambling and parsing of the song data works well will ireal-reader, but the returned measures lack the meta info (repeat signs, sections, comments etc). My current solution is a combination of your lib to parse the links + modified parts of ireal-renderer to get the raw ireal tokens. The parsed tokens look like this:
At this point, no information of the sheet is lost. To simplify the format, I can then parse the tokens to a format that omits everything that is just layout related (empty spacers, unused props):
This format is suitable for rendering a sheet visually. To render it aurally, all repeat signs/houses must be resolved. I am also using another snippet format that allows easy editing with a textarea:
If you want, you can play around with it here. To spare you from more details, I would be happy if this lib could handle the token magic, maybe even parsing the tokens to the format of the second snippet I wrote. Greetings, Felix