SoundFont 3 does not change the modulator tables. pmod holds the modulators of the preset zones and imod those of the instrument zones; each is a multiple of ten bytes with zero or more modulators for each zone and a terminal record, which is conventionally zero and always ignored (SF2 spec 7.4, 7.8). The modulators page explains the field values.
The record
| Offset | Size | Field | Type | Meaning |
|---|---|---|---|---|
| 0 | 2 | sfModSrcOper | SFModulator | The source of data |
| 2 | 2 | sfModDestOper | SFGenerator | The destination: a generator, or with the top bit set a link to another modulator’s source (the other 15 bits are its index in the zone) |
| 4 | 2 | modAmount | SHORT | The signed amount; zero means no fixed amount |
| 6 | 2 | sfModAmtSrcOper | SFModulator | The source that controls the amount |
| 8 | 2 | sfModTransOper | SFTransform | The transform applied to the source |
Rules
- Unknown sources, destinations, amount sources and transforms make the modulator ignored; so does a source “link” with nothing linked to it and an amount source “link”.
- A link to an index beyond the zone’s modulators is ignored, and so are modulators in a circle of links.
- Within a zone the source, destination and amount source must be unique; when they repeat, the earlier modulator is ignored.
imodmodulators are absolute (one replaces a default modulator, and adds to its generator);pmodmodulators are additively relative toimod.- A missing sub-chunk or a size that is not a multiple of ten rejects the file as structurally unsound.
(SF2 spec 7.4, 7.8.)
In the explorer
Each modulator appears in the Modulators table of its preset or instrument and in the Modulators tab with its source decoded, destination, amount, amount source, transform and status (used, or ignored with the reason).
Source: SoundFont Technical Specification 2.04, sections 4.4, 7.4, 7.8 and 9.5.4; FluidSynth’s SoundFont3 RFC (scope).