Open xhevahir opened 5 years ago
Hey! First off, it's cool that someone found this outside of the academic circles I was working with. Sorry the code is such a mess, I never really expected anyone outside of me to actually peak at the innards (bad software engineering practice, I know, I know)
So about Hooktheory's file format, I'd be very surprised if you did actually find any specifications about their file format(s). There's no official spec that I know of, so I had to sort of figure it out as I went along. If you somehow do come across an official spec please let me know!
When I first started this project around 2017 they used .hkt files, which are basically just XML files with their own custom structure. So if you open .hkt file in a text editor (if they didn't change the format), you'll see something like
`
Hi, I'm trying to use Hookpad as a sort of frontend to an old program called Melody Generator, and I can't find out much about Hooktheory's file format. Basically, I'm looking to convert a monophonic melody and chords into a very simple text file that encodes note onsets and Roman numerals, which the other program would then turn into a melody. I notice that your parser can handle notes and chords, but the .hkt format is kind of mysterious. Also, other parts of your library indicate that only 4/4 time is supported; can the parser by itself handle other time signatures?
Also, do you know if the .hkt format is specified somewhere? Thanks in advance for any help.