SoundFont 3 does not change the generator tables. pgen holds the generators of the preset zones and igen those of the instrument zones; each is a multiple of four bytes, with at least one generator for each zone (except a global zone that holds only modulators) and a terminal record (SF2 spec 7.5, 7.9). The generators page lists the generators.
The record
| Offset | Size | Field | Type | Meaning |
|---|---|---|---|---|
| 0 | 2 | sfGenOper | SFGenerator | The generator type; unknown values are ignored |
| 2 | 2 | genAmount | genAmountType | The value of the generator |
genAmountType is a union of ranges (BYTE byLo, BYTE byHi: the key and velocity range generators), SHORT shAmount (most generators) and WORD wAmount (unsigned values and the two index generators) (spec 4.5, 7.5). The explorer reads byLo as the low end of a range, as the SF2 page explains.
Rules
- The last generator of a non-global zone is the instrument generator (
pgen) or the sampleID generator (igen); generators after it are ignored. - A key range generator is always first in its zone; a velocity range is preceded only by a key range; otherwise they are ignored.
- Generators in a zone have unique types; when a type repeats, the earlier one is ignored.
pgenvalues are relative (added to the instrument’s);igenvalues are absolute (replace the defaults).- An instrument or sampleID value equal to or above the terminal record’s index makes the file structurally unsound; a missing sub-chunk or a size that is not a multiple of four rejects the file.
(SF2 spec 7.5, 7.9.) For a compressed sample the RFC does not say what the sample-address generators (startAddrsOffset, endAddrsOffset, the loop offsets and their coarse forms) count; the explorer shows their values as stored and does not apply them to a sample.
In the explorer
Each generator of a zone appears in the Generators table of its preset or instrument with name, number, value in its unit and status (used, ignored with the reason, or superseded). The problems reported are those of SF2 (generator lists).
Source: SoundFont Technical Specification 2.04, sections 4.4, 4.5, 7.5, 7.9 and 8.5; FluidSynth’s SoundFont3 RFC (scope: only the differences are described).