Section 10 of the specification says how a program should treat a damaged or unusual bank. Each kind of error has its own rule.
The rules
| Spec | Error | Rule |
|---|---|---|
| 10.1 | Structural errors: found from the redundancy of the RIFF structure, such as wrong chunk lengths, pointers out of valid range, or missing required chunks for which no correction exists | Check files at load time and reject any that have one. Separate tools or options may repair such files, but must check that the rebuilt file is a valid bank and has the intended sound in all cases |
| 10.2 | Unknown chunks: well formed chunks or sub-chunks that are not defined | Unknown chunks within INFO are ignored. Other unknown chunks or sub-chunks are illegal and treated as structural errors |
| 10.3 | Unknown enumerators: in generators, modulator sources or transforms, expected when ifil is newer than the program | The generator or modulator that uses one is ignored |
| 10.4 | Illegal parameter values: a value outside the defined range of a parameter | Found at load time, the file may be rejected as structurally unsound. Found at run time, the default is used for a required parameter, or the generator or modulator is ignored if it is optional. Some parameters have their own procedure |
| 10.5 | Out-of-range values: outside the useful range of the summary table, either as stored or as the sum of instrument and preset values | Substitute the nearest relevant or realisable value. Banks should not be created with out-of-range instrument generators; a sum that goes out of range is acceptable but undesirable |
| 10.6 | A missing required parameter or terminator | The file is not within the specification. Found at load time it may be rejected; found at run time the instrument or zone is ignored, and if that makes no sound the key-on is ignored |
| 10.7 | An illegal enumerator: for example a key or velocity range that is not first, an instrument in an instrument zone, or a sampleID in a preset zone | Found at load time, the file may be rejected; found at run time the enumerator is ignored |
What the explorer reports
The explorer never rejects a file: it reads as much as it can and lists each problem, with a click that selects the bytes. The Problems list has an entry for each of these (the page for each table gives the rule):
- structure: a missing, repeated or misordered list, a RIFF size that is wrong, an unknown chunk, a table that is too short or not a whole number of records, bag indexes that go down or end differently from the tables, a missing table;
- INFO: a missing mandatory sub-chunk, a string that is damaged, an ifil that is not four bytes, irom without iver;
- zones and generators: ignored zones, generators after the terminal one, misplaced ranges, duplicates, unknown or reserved numbers, generators at the wrong level, instrument-level values outside the summary table’s range, ranges that run backwards, an instrument or sampleID that does not exist;
- modulators: unknown, illegal or reserved sources, unknown transforms, links past the list or in a circle, a link used wrongly, a destination that is not a value generator, duplicates;
- samples: points beyond the data, loops and lengths below the minimums, the missing 46 zero points, rates, pitches, types, links, ROM samples without a ROM name, an sm24 chunk that is ignored.
Whether the specification would reject the file or only ignore the part is in the wording of each problem (“structurally defective”, “is ignored”, “may not be reproducible”).
Source: SoundFont Technical Specification 2.04, sections 3.3 and 10 (10.1 to 10.7).