MIDI File Converter

MIDI File Converter is a utility designed to convert the MIDI file library included with Toontrack's EZdrummer virtual instrument from MIDI type 0 to MIDI type 1, with a customisable name as the track 1 name. This has the advantage that users of Cakewalk's SONAR will find that the MIDI clips created when they drag and drop into the track pane are given a meaningful default name. It also supports the option to leave the files as type 0 and simply change the track name, which is supported by SONAR 6 and above.

This utility has now been expanded to alter other MIDI files that you might be using with EZD to adjust their end time markers so that they loop correctly with EZdrummer's built in loop browser. (EZD version 1.0.3 introduced some problems in this area).

Download

A link to the latest version of MIDI File converter can be found here.

Installation and Requirements

MIDI File Converter requires the .NET framework version 2.0 to be installed. You can download this here. Once you have done this you can run the installer (or download the zip archive, decompress it and run MIDI File Converter.exe).

Settings

MIDI File Converter Screenshot

Input Folder

Normally you would choose the EZdrummer MIDI folder as the input folder. This is typically located at C:\Program Files\Toontrack\EZDrummer\Midi. However, if you want to specifically choose which MIDI files will be processed, you can select a subfolder or a new folder into which you have copied in the exact files you want to be processed.

Output Folder

MIDI File Converter will not modify any existing files or folders on your PC. What it does is recreates all the contents of the input folder into an empty output folder you have specified. This folder must be initially blank, and its contents can be copied into the Toontrack MIDI folder when you have finished the conversion (you must do this part yourself).

Clip Naming

These settings govern the clip name you will see when dragging into your host sequencer. Please note that in certain circumstances, EZD will generate its own clip name instead of the one in the file. You will need to experiment with your own host sequencer to see how it behaves.

If the Apply XML Naming Rules to Toontrack EZD Patterns option is selected, then whenever a MIDI file that was supplied with EZdrummer is processed, it will be given a MIDI clip name that is calculated according to the rules in the NamingRules.xml file (see "Advanced Customisation" below for more details). This setting is turned on by default.

If the Use filename for other MIDI patterns option is selected, then all other MIDI files in the input folder will have their clip name set to the name of the file (minus the .mid extension). This setting is on by default. If you turn it off, MIDI files will retain whatever clip names they already had (which may be blank).

MIDI Note Channel

You will normally want to leave MIDI notes on whatever channel they were already on. However, you can move them all to track 1 to be just like the ones in the included EZD libraries. Or you can move them all to track 10, so that when you play them in Windows Media Player, or through a GM module, it will play drum sounds instead of piano sounds.

Output File Type

MIDI File Converter was written to convert Toontrack's type 0 files into type 1, so that their clip names would display correctly in SONAR 5. However, users of different hosts may find that they can use type 0 without problems. Choose type 1 to force all MIDI files to type 1, type 0 to force them all to type 0, and leave unchanged if you want them to stay as they are.

Verbose Output

Select this option if you want a detailed run-down of everything that EZdrummer MIDI Converter is doing. If it is turned off, you will still be informed of any errors encountered.

How to make MIDI clip names appear in SONAR

Note: these are for users of SONAR 5 or previous versions. SONAR 6 can display EZdrummers own clip names. You may still be able to use this utility with SONAR 6 though if you want to customise what those clip names will be.

How to make user MIDI files loop correctly in EZD 1.0.3

Advanced Customisation

MIDI File Converter allows extensive customisation of the filenames it creates. If you are comfortable with editing XML files and using regular expressions, you will be able to customise these settings. This allows the flexibility to support any EZX expansion pack MIDI files you may purchase. The settings are all stored in NamingRules.xml, which should be in the same folder as the EZdrummer MIDI Converter application. Please be careful modifying these settings and always check that the output is what you wanted before replacing your EZdrummer MIDI files.

Some example rules from the default NamingRules.xml file:

<Rule>
   <SearchString>^[0-9A-Z]+\@[0-9][0-9]\.</SearchString>
   <Replacement></Replacement>
</Rule>

This rule looks for all file or folder names that start with one or more digits or upper case letters followed by an @ sign, followed by exactly two digits and then a full stop. It replaces it with a blank string. This effectively strips off the start of EZdrummer folder and filenames.

<Rule>
   <SearchString>POP/ROCK</SearchString>
   <Replacement>P/R</Replacement>
</Rule>

This rule abbreviates any instances of the upper case string "POP/ROCK" to "P/R". Note that this will only operate if it follows the rule that converts the '#' character to a '/' character.

<Rule>
   <SearchString>GROOVE </SearchString>
   <Replacement>G</Replacement>
</Rule>

This rule abbreviates any instances of the upper case string "GROOVE" followed by a trailing space to simply "G". Note that this only works because we have already converted all underscore characters to spaces with a previous rule.

<Rule>
   <SearchString>SAMBA</SearchString>
   <Replacement></Replacement>
</Rule>

The Samba MIDI files included with the Cocktail kit EZX will have the word Samba in their name twice by default. This rule strips out the fully capitalised folder name, so the mixed case "Samba" in the filename can be used on its own.

Advanced Options

There are some extra settings available that may be useful for some third party add-on MIDI libraries. These are accessed from the Tools menu. They are recommended for advanced users only. Messages will appear in the output window to inform you of these settings being modified from their default values.

Notes

Version History

The latest version of MIDI File Converter can be found at http://www.codeplex.com/naudio.