pokeruby icon indicating copy to clipboard operation
pokeruby copied to clipboard

Make mid2agb output match

Open yenatch opened this issue 7 years ago • 5 comments

Right now all the songs in sound/songs/ have to be .s to match, since mid2agb can't convert to midi and back and still match. When this is fixed, the songs can be converted to midi.

yenatch avatar May 27 '17 21:05 yenatch

IIRC YamaArashi was having issues with the midi compression used with matching the .s files.

RevoSucks avatar May 27 '17 21:05 RevoSucks

a while ago I started attempting to recreate the MIDI files byte by byte so that when compiled they would match the .s files exactly. This...proved to be stupidly tedious. still, the commands in MPlayDef.s are pretty detailed, which is helpful. Perhaps creating some type of script to generate a midi with the exact commands in the exact order as the .s file would do the trick, as that's exactly what I was doing by hand and it matched up perfectly.

Keitaro37 avatar May 27 '17 23:05 Keitaro37

(actually, I seem to recall there was a file in the m4a engine documentation which further elaborated on various MIDI commands, if it would help, I can dig it up)

Keitaro37 avatar May 27 '17 23:05 Keitaro37

Yeah. Yama had a tool for converting .s to midi but it was lost, so we will have to recreate it.

yenatch avatar May 27 '17 23:05 yenatch

I have a modified version of GBA Mus Riper, which was able to produce a matching bgm_pokecen.mid. https://github.com/camthesaxman/pokeruby_mus_riper I haven't tried any other songs yet. We still need to fix our mid2agb so that it can handle all of the MIDI commands.

camthesaxman avatar Jul 17 '17 17:07 camthesaxman