jososoft.dk The Unofficial YAMAHA Keyboard Resource Site

Translate ►

Misc. Resources

Programming

Danmark Danish Music

Support this Site
Select
and...

New software for creating Ins files added to Ins Files page.

Latest news at this site: 6 software programs added to Software 1 and Software 2 pages.
 

MIDI and Style File Repair

Back Style Reference Next

Articles Index

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. Install this program.

Get MidiFile.exe and GenMidi.exe files as well. These files are executables. Just run the files, they will install in the Windows folder.

MIDI File DisAssembler

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.

Step 1

Click the "Make Text" button; and select the file to repair.

If it is a style file - e.g. "HappyStyle.sty" - you will have to select "All Files" in the File Type list in the File Dialog.

During this process 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.

MIDI File DisAssembler

Right now forget the loading error message.

Step 2

Click the "Make MIDI" button; and select the text file to repair; e.g. "HappyStyle.txt".
This conversion will stop at the first error; and an error message is displayed.

MIDI File DisAssembler

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".

MIDI File DisAssembler
(Top of text file showing MIDI header information)

Now go to the line mentioned in the error message; e.g. line 5441

MIDI File DisAssembler

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:

MIDI File DisAssembler

Other errors

The following errors are corrected in the same way as described above.

- Invalid MIDI channel (chan=18)
- Invalid Note number (pitch=G-2)
- Invalid Volume (vol=189)

MIDI File DisAssembler

For valid values read the MIDI Reference

Unknown Chunks - just delete!

MIDI File DisAssembler

These examples only show few error types and only few features in the program. Get it!

Tip of the Day

Looking for sheet music

The internet holds a lot of sheet music. Check out the Fakebooks-Sheets page.

However it might be hard to find a particular sheet in a fake book containing hundreds of songs.

A helping hand is below the 'Fakebook Indexes and Search' heading at the page.

Software of the Day

Style MFD Extract

Extracts song titles and corresponding style numbers from Music Finder data files.

More at the Style MFD Extract Home Page.

Home - Om mig - About me - Über mich
© 1999-2025 Jørgen Sørensen
This site does not use cookies; but Google may use non-personal information to provide relevant ads.
I hereby expressly disclaim any liability for the content in and the legality of externally linked sites and pages.
All information is presented 'as-is' meaning: No warranties whatsoever for correctness; completeness or usefulness.
All my downloads are free of adware, spyware, virus, toolbars, etc. Check at McAfee SiteAdvisor or at VirusTotal.
If you find the information at this page useful, you can mail me a 'Thank You' or send me a donation.