SoundFont 3 adds no generator: the numbers 0 to 60 of SoundFont 2 are the whole list (the FluidSynth RFC lists no change, and FluidSynth, TinySoundFont and MuseScore’s tool read the same table). A generator is one synthesiser parameter; modulator destinations are exclusively the value generators; an unknown number makes the generator ignored (SF2 spec 8.1.1, 8.1.2, 10.3).
Five kinds
Index generators (instrument 41, sampleID 53) hold an index into another table; range generators (keyRange 43, velRange 44) bound the keys and velocities of a zone; substitution generators (keynum 46, velocity 47) replace a note-on value; sample generators (the eight address offsets, sampleModes, overridingRootKey, exclusiveClass) affect a sample’s properties and are undefined at the preset level; value generators change a signal-processing parameter (spec 8.1.1). Generators 0 to 4, 12, 45, 46, 47, 50, 54, 57 and 58 are valid only in instruments and are ignored in a preset zone (spec 8.5).
The enumerators
Range and default are the Min, Max and Default columns of the summary table (spec 8.1.3); “depends” is its “*”. Units are explained on the SF2 units page; they are the same in SF3.
| # | Name | Kind | Unit | Range | Default | Level | Meaning |
|---|---|---|---|---|---|---|---|
| 0 | startAddrsOffset | sample | sample data points | depends | 0 | instrument only | Offset beyond the header’s Start to the first point played |
| 1 | endAddrsOffset | sample | sample data points | depends | 0 | instrument only | Offset beyond End to the last point played |
| 2 | startloopAddrsOffset | sample | sample data points | depends | 0 | instrument only | Offset beyond Startloop to the first repeated point |
| 3 | endloopAddrsOffset | sample | sample data points | depends | 0 | instrument only | Offset beyond Endloop to the point equivalent to the loop start |
| 4 | startAddrsCoarseOffset | sample | 32768-point blocks | depends | 0 | instrument only | Offset in 32768-point steps beyond Start, added to the fine offset |
| 5 | modLfoToPitch | value | cents | −12000 to 12000 | 0 | both | Modulation LFO to pitch |
| 6 | vibLfoToPitch | value | cents | −12000 to 12000 | 0 | both | Vibrato LFO to pitch |
| 7 | modEnvToPitch | value | cents | −12000 to 12000 | 0 | both | Modulation envelope to pitch at its peak |
| 8 | initialFilterFc | value | cents (absolute) | 1500 to 13500 | 13500 | both | Low-pass filter cutoff; 1500 is 20 Hz, 13500 is 20 kHz |
| 9 | initialFilterQ | value | centibels | 0 to 960 | 0 | both | Filter resonance height above DC gain |
| 10 | modLfoToFilterFc | value | cents | −12000 to 12000 | 0 | both | Modulation LFO to filter cutoff |
| 11 | modEnvToFilterFc | value | cents | −12000 to 12000 | 0 | both | Modulation envelope to filter cutoff at its attack peak |
| 12 | endAddrsCoarseOffset | sample | 32768-point blocks | depends | 0 | instrument only | Offset in 32768-point steps beyond End |
| 13 | modLfoToVolume | value | centibels | −960 to 960 | 0 | both | Modulation LFO to volume |
| 14 | unused1 | unused | none | Reserved: ignored | |||
| 15 | chorusEffectsSend | value | 0.1% | 0 to 1000 | 0 | both | Amount sent to the chorus processor |
| 16 | reverbEffectsSend | value | 0.1% | 0 to 1000 | 0 | both | Amount sent to the reverb processor |
| 17 | pan | value | 0.1% | −500 to 500 | 0 | both | Position between left (−50%) and right (+50%) |
| 18 | unused2 | unused | none | Reserved: ignored | |||
| 19 | unused3 | unused | none | Reserved: ignored | |||
| 20 | unused4 | unused | none | Reserved: ignored | |||
| 21 | delayModLFO | value | timecents (absolute) | −12000 to 5000 | −12000 | both | Delay of the modulation LFO; 0 is one second |
| 22 | freqModLFO | value | cents (absolute) | −16000 to 4500 | 0 | both | Frequency of the modulation LFO; 0 is 8.176 Hz |
| 23 | delayVibLFO | value | timecents (absolute) | −12000 to 5000 | −12000 | both | Delay of the vibrato LFO |
| 24 | freqVibLFO | value | cents (absolute) | −16000 to 4500 | 0 | both | Frequency of the vibrato LFO |
| 25 | delayModEnv | value | timecents (absolute) | −12000 to 5000 | −12000 | both | Delay of the modulation envelope |
| 26 | attackModEnv | value | timecents (absolute) | −12000 to 8000 | −12000 | both | Attack time of the modulation envelope (convex) |
| 27 | holdModEnv | value | timecents (absolute) | −12000 to 5000 | −12000 | both | Hold time at the peak |
| 28 | decayModEnv | value | timecents (absolute) | −12000 to 8000 | −12000 | both | Decay time for a 100% change |
| 29 | sustainModEnv | value | −0.1% (decrease) | 0 to 1000 | 0 | both | Decrease in level during the decay; 0 is full level |
| 30 | releaseModEnv | value | timecents (absolute) | −12000 to 8000 | −12000 | both | Release time for a 100% change |
| 31 | keynumToModEnvHold | value | timecents per key | −1200 to 1200 | 0 | both | Key tracking of the hold time; unchanged at key 60 |
| 32 | keynumToModEnvDecay | value | timecents per key | −1200 to 1200 | 0 | both | Key tracking of the decay time |
| 33 | delayVolEnv | value | timecents (absolute) | −12000 to 5000 | −12000 | both | Delay of the volume envelope |
| 34 | attackVolEnv | value | timecents (absolute) | −12000 to 8000 | −12000 | both | Attack time of the volume envelope |
| 35 | holdVolEnv | value | timecents (absolute) | −12000 to 5000 | −12000 | both | Hold time at the peak |
| 36 | decayVolEnv | value | timecents (absolute) | −12000 to 8000 | −12000 | both | Decay time for a 100% change |
| 37 | sustainVolEnv | value | centibels (attenuation) | 0 to 1440 | 0 | both | Decrease in level during the decay; 0 is full level |
| 38 | releaseVolEnv | value | timecents (absolute) | −12000 to 8000 | −12000 | both | Release time |
| 39 | keynumToVolEnvHold | value | timecents per key | −1200 to 1200 | 0 | both | Key tracking of the hold time |
| 40 | keynumToVolEnvDecay | value | timecents per key | −1200 to 1200 | 0 | both | Key tracking of the decay time |
| 41 | instrument | index | index | 0 to terminal − 1 | preset only | The instrument of a preset zone; the last generator of the zone | |
| 42 | reserved1 | unused | none | Reserved: ignored | |||
| 43 | keyRange | range | MIDI key number | 0 to 127 | 0 to 127 | both | The keys the zone is active for; first in the zone |
| 44 | velRange | range | MIDI velocity | 0 to 127 | 0 to 127 | both | The velocities the zone is active for |
| 45 | startloopAddrsCoarseOffset | sample | 32768-point blocks | depends | 0 | instrument only | Offset in 32768-point steps beyond Startloop |
| 46 | keynum | substitution | MIDI key number | 0 to 127 | none (−1) | instrument only | Forces the key number |
| 47 | velocity | substitution | MIDI velocity | 1 to 127 in the table, 0 to 127 in the text | none (−1) | instrument only | Forces the velocity |
| 48 | initialAttenuation | value | centibels | 0 to 1440 | 0 | both | Attenuation below full scale; 60 is 6 dB |
| 49 | reserved2 | unused | none | Reserved: ignored | |||
| 50 | endloopAddrsCoarseOffset | sample | 32768-point blocks | depends | 0 | instrument only | Offset in 32768-point steps beyond Endloop |
| 51 | coarseTune | value | semitones | −120 to 120 | 0 | both | Pitch offset in semitones |
| 52 | fineTune | value | cents | −99 to 99 | 0 | both | Pitch offset in cents |
| 53 | sampleID | index | index | 0 to terminal − 1 | instrument only | The sample of an instrument zone; the last generator of the zone | |
| 54 | sampleModes | sample | bit flags | flags | 0 (no loop) | instrument only | Two least significant bits: 0 no loop, 1 loops continuously, 2 read as no loop, 3 loops while the key is down, then plays the rest |
| 55 | reserved3 | unused | none | Reserved: ignored | |||
| 56 | scaleTuning | value | cents per key | 0 to 1200 | 100 | both | Pitch change per key; 100 is the tempered scale |
| 57 | exclusiveClass | sample | class number | 1 to 127 | 0 (none) | instrument only | A note ends other notes of the same class in the preset |
| 58 | overridingRootKey | sample | MIDI key number | 0 to 127 | −1 (use the header) | instrument only | The key at which the sample plays at its own rate |
| 59 | unused5 | unused | none | Reserved: ignored | |||
| 60 | endOper | unused | none | Reserved: ignored; marks the end of the list |
(SF2 spec 8.1.2 and 8.1.3; the notes on contradictions in the text of the specification, such as the byte order of the range generators, are on the SF2 generators page and apply here.)
Generators and compressed samples
The address-offset generators are defined in SF2 as counts of 16-bit data points from the header’s Start, End and loop points. The RFC changes the sample header fields for a compressed sample (bytes for Start and End, decoded points for the loops) but says nothing about these generators. FluidSynth decodes each compressed sample into a buffer of its own and then sets the sample’s start to 0, its end to the last decoded point and its loops as the header gives them, relative to that buffer (fluid_defsfont.c, fluid_defsfont_load_sampledata); the offset generators then act on that buffer, so they count decoded data points from the start of the sample. The explorer’s synthesiser does the same, and the Plays column of an instrument zone says “compressed sample: offsets are not defined for SoundFont 3” because the RFC does not define them.
In the explorer
The Generators tab lists the 61 numbers and how many preset and instrument zones use each; every generator of a zone is decoded with its unit (timecents as seconds, cents of frequency as hertz, centibels as decibels, key numbers as notes).
Source: SoundFont Technical Specification 2.04, sections 8.1.1 to 8.1.3 and 8.5; FluidSynth’s SoundFont3 RFC. Compared with the specification text by scripts/sf2/check-tables.mjs.