GuitarPro-to-Midi
GuitarPro-to-Midi copied to clipboard
Improvement: Adopting Kaitai Struct format
Hello,
This is an answer to your question @mauricek in https://github.com/Perlence/PyGuitarPro/issues/14#issuecomment-537385835 which is closed now. I'm a bit late, so I open a new call for improvement here
Since you created multiple projects in different languages with the same goal of parsing GP files, it might be a good idea to write a code independent specification of the structure of those files. I searched a bit and found that the project Kaitai (https://kaitai.io) could answer this need, but it might not be the only one.
I created a small POC by forking kaitai's repository. It's nowhere near finished and I don't have time at the moment to improve it. But it stills show that you can more or less easily parse a GP file using their approach: https://github.com/MZehren/kaitai_struct_formats/blob/master/media/guitar_pro_5.ksy Feel free to use this code if it is of any help for you.