mtolly / pokemid

Import/export Pokémon Red/Blue music as MIDI
39 stars 2 forks source link

Pokémon Red/Blue MIDI music converter

This is a tool for the Pokémon Red/Blue disassembly project, which allows editing the music tracks by exporting them to MIDI files and then importing them back into assembly.

Features:

Future work:

Build

Windows/Mac/Linux executables are posted on the releases page.

To build yourself, install a Haskell development kit and build the package as appropriate. I use Stack where stack build is the only step, but Cabal should work as well as long as you also have GHC, Alex, and Happy.

make uses Stack to produce a release .zip file. Ruby is also required to get the package version. make docker uses Docker to build in an older Linux distribution for higher compatibility.

Usage

pokemid in.asm out.mid # assembly to MIDI
pokemid in.mid out.asm # MIDI to assembly
# Second argument can be elided to go to stdout

For MIDI to assembly, the MIDI file should be in the following format: