The FluidSynth RFC says SoundFont 3 is an extension and that it explains only its differences from the SoundFont 2 specification, so everything it does not mention is as in SF2. This page gives that remaining part of the specification in brief, with the SF2 sections it comes from.
The synthesis model (spec 9.1)
- A wavetable oscillator plays a sample at any rate and pitch; a sample has a start, an end and two loop points, and may be unlooped, looped until the key is released (then plays on to the end), or looped through the release.
- A resonant low-pass filter with a dynamic cutoff and a fixed resonance; ideally flat to the cutoff, then 6 dB per octave.
- A final gain amplifier set by an initial gain in dB, added to the volume envelope; sends to pan, reverb and chorus.
- Two LFOs (vibrato: pitch only; modulation: pitch, cutoff and volume) with a delay and a triangle wave, and two envelope generators (volume; modulation for pitch and cutoff) with delay, attack, hold, decay, sustain and release phases.
Units (spec 9.3)
| Unit | Definition |
|---|---|
| Sample data points | Indexes or counts of 16-bit words of sample data (for SF3 a compressed sample counts decoded points) |
| Semitone | 1/12 octave; absolute value 69 is 440 Hz |
| Cent | 1/1200 octave; absolute 6900 is 440 Hz |
| Centibel | A tenth of a decibel |
| Timecent | 1/1200 of an octave of time; absolute 0 is one second |
| Percent | In 0.1% units: 1000 is 100% |
MIDI functions and NRPN (spec 9.2, 9.6)
Bank select (CC0 and CC32), data entry (CC6 and CC38), sustain (CC64), soft (CC66), sostenuto (CC67), NRPN (CC98, CC99), RPN (CC100, CC101), all sound off (CC120), reset all controllers (CC121) and all notes off (CC123) behave as the MIDI specification says. The standard NRPN implementation uses Select MSB 120 and a Select LSB of the generator number below 100 (LSB 100, 101 and 102 add multiples of 100, 1,000 and 10,000), and a 14-bit data entry value centred on 0x2000 that is added to the generator like a modulator. The full list is on the SF2 page, and applies to SF3 unchanged.
Error handling (spec 10)
| Spec | Error | Rule |
|---|---|---|
| 10.1 | Structural errors (wrong chunk lengths, pointers out of range, missing chunks) | Reject the file at load time |
| 10.2 | Unknown chunks | Ignore them within INFO; elsewhere they are structural errors |
| 10.3 | Unknown enumerators | Ignore the generator or modulator |
| 10.4 | Illegal parameter values | Optionally reject at load time; at run time use the default or ignore an optional parameter |
| 10.5 | Out-of-range values | Use the nearest usable value |
| 10.6 | A missing required parameter or terminator | Optionally reject; at run time ignore the instrument or zone |
| 10.7 | An illegal enumerator in its context | Optionally reject; at run time ignore it |
For SF3 the RFC adds that a compressed sample whose codec is unknown, unsupported or broken, or which is not mono, is invalid and that implementations are encouraged to reject the instruments and presets that use it.
Silicon SoundFonts and ROM samples (spec 5.4, 5.5, 7.10, 11)
A Silicon SoundFont is a bank in non-volatile memory with a ROM header; its layout (spec 11.2) belongs to a ROM image, not to a file. A sample type with bit 15 set refers to such a ROM, named by irom and iver. The RFC does not mention ROM samples; combined with the compressed flag, the sample type 0x8011 is not defined, and the explorer treats such a sample as a ROM sample that cannot be shown. The header layout is on the SF2 page.
Source: SoundFont Technical Specification 2.04, sections 9.1 to 9.3, 9.6, 10 and 11; FluidSynth’s SoundFont3 RFC.