Example Usage:
Code: Select all
java -cp ~/uzebox/tools/JavaTools/dist/uzetools.jar org.uzebox.tools.converters.midi.MidiConvert -f 8 midisong.mid midisong.h
Now on Linux, you don't need to install wine just so you can run the gn1to0.exe tool every time you make a change to your midi file!
Edit: I originally was not able to rebuild uzetools.jar because TileMap.java was missing, but that's no longer the case. Just in case anyone comes across the build errors that I experienced, I'm leaving what I originally wrote here in the hopes that it might help someone:
When I originally tried to rebuild the uzetools.jar file using ant, I got a bunch of errors.The binary constant error can be fixed by bumping the java version number from 1.6 to 1.7 in the build.xml file, and the UTF-8 encoding issues can be fixed by running all of the offending files through a process like this:
Code: Select all
iconv -f ISO-8859-1 -t UTF-8//TRANSLIT /home/user/uzebox/tools/JavaTools/src/org/uzebox/tools/converters/gfx/Main.java -o /home/user/uzebox/tools/JavaTools/src/org/uzebox/tools/converters/gfx/Main.java.utf8
mv /home/user/uzebox/tools/JavaTools/src/org/uzebox/tools/converters/gfx/Main.java.utf8 /home/user/uzebox/tools/JavaTools/src/org/uzebox/tools/converters/gfx/Main.java
I was able to build the modified MidiConvert tool by deleting the tools/JavaTools/bin/org/uzebox/tools/converters/gfx/ and tools/JavaTools/bin/org/uzebox/tools/converters/xm/ directories, running ant in the main JavaTools directory, and then renaming uzetools.jar to MidiConv.jar[/size]