|
This article is a part of the Yamaha keyboard "Style Reference".
| ||
|
This article describes a method for repair of MIDI and Style Files.
| ||
|
The software
For editing and repair of MIDI and Style files get the MIDI File Disassembler/Assembler software from Jeff Glatt. This software translates MIDI data to readable text; and backwards again. Editing a text file is somewhat easier than editing the binary data in MIDI and Style files.
Remember to get MidiFile DLL and GenMidi DLL files from the page as well. These files are executables. Just run the files, they will install in the Windows folder.
Step 1
During this proces any error messages will be shown in the lower window; and a text file (e.g. "HappyStyle.txt") will be created in the same folder as the file opened.
Right now forget the loading error message.
Step 2
|
Step 3
Open the text file in a text editor by clicking the NotePad button. Or better select a text editor with line numbers; by selecting menu "Options" - "Set Editor".
Now go to the line mentioned in the error message; e.g. line 5441
In this file you will notice there is a Note Off event at tick 41840. This is an error; as the MIDI resolution in this file is 1920. It is not possible to know which is the right value; but it must be less than 1920 and less than the subsequent value, in this case 1904. Correct the error; save the text file; and start over from Step 2 until this message appears:
Other errors
For valid values read the MIDI Reference (manily part 6 - 10) Unknown Chunks - just delete!
These examples only show few errortypes; and only show few features in the program. Get it! | |