Download Page

Program Help

Technical Problems

Style Fixer Test Report

Style Fixer is a software program for repairing erroneous YAMAHA Keyboard style files.

This program will check erroneous Yamaha keyboard style files and repair a number of common errors.

Not repairable style files will be listed and allow the user to delete these files or to move or copy these files to user selected folders.

If the CASM section is missing the program can add a default CASM section (if this default can be successfully used).

The program is a standalone program which can:
• check and repair a single style file
• check and repair a folder (and its subfolders) of style files
• check and repair style files listed in a CSV file created with the "Export Style Data to CSV File" function in the "PSR Style Database" Application.
• check and repair style files listed in a text file with one file name (incl. full path) per line. E.g.
C:\my_styles\my_style.sty
C:\test_folder\test_style.sty
...etc.

Style Fixer is developed to repair Yamaha keyboard style files. Many of these style files for download at various sites suffer from a number of errors which makes them impossible to load in a keyboard or impossible to edit in a sequencer software. Other styles have errors in some parts only but this makes these styles impossible to use.

Style Fixer will automatically repair more than 95% of style files which have errors (check the "Errors" column in the PSR Style Database application) and will list the remaining less than 5% of style files which may not be style files at all or are so damaged that automatic repair is impossible.

Style Fixer

Error Type Definitions

The error type definitions below correspond to the error types used in the PSR Style Database application written by Peter Wierzba.

Repairable Error Types
Error Type Effect Cause Cure
Unexpec- ted bytes The keyboard may refuse to load the style. Most sequencer programs / MIDI players will definitely refuse to open files with this error for editing / playback. • Miscalculated check bytes in the style file
• "Garbage" bytes in the beginning or the end of the style file
• "Garbage" bytes between style file parts
Check bytes will be recalculated and "garbage" byte deleted.
No MIDI File The file will not load. • Misspelled MIDI Header MIDI Header will be corrected.
SFF1 (SFF2) / SInt Error The file will not load. • Missing or misspelled SFF1 (SFF2) Marker
• Missing or misspelled SInt Marker
Correct spelled markers will be added.
MIDI Problems / Errors Style will normally load, but some parts sound strange or will have "hanging" notes for several (maybe hundreds of) measures. • Initial measure in style file corrupt
• One or more style parts are corrupt
Style files with the first error will get a default initial measure.
If the second error is caused by missing end delta time information the style part will be repaired, otherwise the style file will be repaired by deleting the erroneous part.

Possibly Repairable Error Types
Error Type Effect Cause Cure
No Main A part *) The file will not load. • Wrong style file layout The program will try to rename another main part to "Main A". If the style file has no main parts this error cannot be corrected and the style file will be listed.
No CASM section **) Style will load, but may sound strange. • Missing CASM section A default CASM section will be added, if this section can be used successfully. If not: Style file will be listed.
*) Current version of the PSR Style Database application does not detect this error type. However these errors are detected while checking individual style files or style file folders.
**) No CASM section may be regarded as: Not a "real" error, just something missing.

Not Repairable Error Types
Error Type Effect Cause Cure
No MIDI File The file will not load. • Missing MIDI Header
• Band In a Box style file
• Unknown format
No cure. Style file will be listed.
Empty File The file will not load. • File is empty No cure. The program will automatically delete all files shorter than 100 bytes. Style file will NOT be listed.
MIDI Problems / Errors The file will not load. • More *) / missing MIDI Header / MIDI Track Header / End of File Markers
• Other MIDI errors
No cure. Style file will be listed.
*)The PSR Style Database application does not detect this error type. However these errors are detected while checking individual style files or style file folders.