Skeetendo

’Cause all games were better on the GBC

You are not logged in.

#1 2019-07-31 18:41:57

TriteHexagon
New member
Registered: 2019-07-31
Post 1/5

Midi2ASM, a new tool to convert MIDIs into .asm code

Hey there, I'm new to the forum but definitely not to arranging music for the pokecrystal disassembly. I've been using FroggestSpirit's tool to convert MIDIs into .asm code, but after 15+ arrangements, I felt its limitations starting to drag the process down. A lot of time is spent trying to make the music *work* and sync properly and not actually making it sound as best as it can. So I decided to try making my own tool to make this conversion. You can find it here, along with a download to the executable.

I go into more detail in the readme, but I'll just leave the warning that it doesn't convert everything perfectly yet. In particular, there's a really nasty problem with the tracks desyncing that's a pain to solve, if even possible.

Other than that, feel free to leave feedback, suggestions or potential fixes to the problems.

Also, if you're interested in checking out my arrangements, here's a link to my Soundcloud.


Working on demixes, updates and general tomfoolery with pokecrystal audio, not limited to Pokémon music.

Link to my Soundcloud with all the music I've done.

Offline

#2 2019-08-13 02:19:32

Danny-E 33
Administrator
Registered: 2012-06-09
Post 1,136/1,149

Re: Midi2ASM, a new tool to convert MIDIs into .asm code

Nice!

I'm curious how well it converts these midis of the original RBY songs into .asm files:
https://hax.iimarckus.org/topic/5086/

There is pokemid by mtolly, but it is pretty badly out of date now, and it's written in haskell which I'm not familiar with so I've never looked into updating it.

I'll check this out soon.

Nice demixes too by the way. Are they all running on the Crystal sound engine?

Offline

#3 2019-08-13 17:28:36

TriteHexagon
New member
Registered: 2019-07-31
Post 2/5

Re: Midi2ASM, a new tool to convert MIDIs into .asm code

Danny-E 33 wrote:

Nice!

I'm curious how well it converts these midis of the original RBY songs into .asm files:
https://hax.iimarckus.org/topic/5086/

Well, take a listen for yourself:
https://soundcloud.com/user-930339535/t … st/s-dNjNy

In a word, perfectly (with a few caveats), but that's pretty much what I expected; since the midi is an almost direct dump of the assembly, there's no problem with rounding errors or anything of the sort so everything syncs perfectly. Of course the midi doesn't have effects like fade in and out and it cuts long notes, so it sounds a bit weird, but that's not the program's fault. It did what it was supposed to.

That version's not exactly the direct output though. I changed the wave channel's waveform to match the original and had to raise all the octaves on that channel because they were 1 too low. I don't get this error with other music I've converted and it doesn't seem to be a problem with the midi either, but maybe it's something I should keep in mind.

I did have to manually change the source .txt file because, like a lot of midis, these ones have a "ghost track" which basically has only the tempo information and is just silence otherwise. This messes with the program pretty badly and it's a bit annoying, but I don't think there's a simple way around that.

Danny-E 33 wrote:

Nice demixes too by the way. Are they all running on the Crystal sound engine?

Thanks :). They are all running on the Crystal engine, yes. I plan to release the .asm files of the Pokémon demixes, but I keep forgetting. But I might just do that eventually and share them around.


Working on demixes, updates and general tomfoolery with pokecrystal audio, not limited to Pokémon music.

Link to my Soundcloud with all the music I've done.

Offline

#4 2019-08-22 22:23:10

Rangi
Member
Registered: 2016-05-09
Post 902/908

Re: Midi2ASM, a new tool to convert MIDIs into .asm code

Good job! It's linked in the wiki's music tutorial.

Offline

#5 2019-08-23 08:50:06

TriteHexagon
New member
Registered: 2019-07-31
Post 4/5

Re: Midi2ASM, a new tool to convert MIDIs into .asm code

Rangi wrote:

Good job! It's linked in the wiki's music tutorial.

Thanks! When I have more time on my hands I'll be sure to look into this again and add a few more features, especially opening midi files directly.


Working on demixes, updates and general tomfoolery with pokecrystal audio, not limited to Pokémon music.

Link to my Soundcloud with all the music I've done.

Offline

Board footer

Powered by FluxBB