This is a seriously cool project you have on the go here I've had a look at the files in Visual Studio. I think I generally get what the code is trying to achieve but not sure how to use it. I was able to build an exe from it, don't know what to do from there though.
Any pointers? I have an FTM I would like to try and run through it.
Yeah, sorry for not commenting any of the code ... or having a readme!
Basically, the program only accepts famitracker files as TXT files, not FTM. You have to export your song as a TXT in famitracker.
The program is a commandline utility. You have to specify one argument: the path to your TXT file. At this point, the program will read the text file and store all the data in a data structure. Then it will read every line of the data structure and convert it to binary data.
The program stores notes and other things in two variables. One for the previously read and one for the currently read. To get the length of a note, I have to read ahead until I hit another note. When I hit another note, I can calculate the length of the note.
As for the note translation code, I couldn't explain it to you. I saw a pattern in how the game was storing its notes. The NOISE channel translation is still broken. I'm busy with other projects, perhaps you could fix it?
March 28, 2019, 06:40:23 pm - (Auto Merged - Double Posts are not allowed before 7 days.)
I updated the repo's readme. I also included a sample FTM file I used for testing. I haven't tested extensively, but it's a really good start.
I do have some further ideas. Writing to the ROM and having a GUI to manage the instruments for each song sounds good.
But for right now ... I'm working with Her-Saki for a Metal Slader Glory translation. This is a side project that I coded in some spare time. Seeing a cool hack was a good motivator though, so I do have a desire to continue with it ... but progress will be slow.