The syntax of the command line (as well as constructor calls) is now the same for XM and MX. However, these changes are "backward compatible". This means that any correct command lines (or constructor calls) from version 1.1 will work with this version.
There are additions to the options for these utilities, which are explained below.
Each class has two new public methods. Class XM has xMidiToDoc and docToMidi, while class MX has midiToDoc and docToXMidi. The "old" public methods invoke these new methods, but they can be invoked from outside as well.
It is important to note that this change to the public interface adds functionality without changing the existing interface. Calls using the old methods should work just fine.
Also, I have "broken out" a couple of classes, made them public, and made some methods public. All of this is for the purpose of making the javadoc documentation as complete and helpful as possible.
Formerly, the string following the -p option was appended to "com.palserv.XMidi." to yield the fully qualified class name within this package.
Now, by using the -q option, the string following the -p option will be taken as a fully qualified string. Thus, no assumptions about the package for the helper class. This should make things a bit more flexible and user friendly. Of course, the added class must be in the classpath!
As of this writing (1/9/01), the changes include:
By making it a command line option, you can include the verbose attributes by coding -v, and leave them out by not coding it. Coding -v will add substantial bulk to the XMidi file without any effect on a MIDI file produced from it. But if you are going to look at the the XMidi file in a text editor, browser, word processor, or XML editor, then these attributes might prove very valuable.