SoundFont 3 changes nothing about modulators: they are those of SoundFont 2.01 and later, and the record is on the modulator lists page. This page gives the values of its fields (SF2 spec 8.2 to 8.4, 9.5).
The source field (SFModulator)
| Bits | Name | Meaning |
|---|---|---|
| 0 to 6 | Index | The controller source (7 bits) |
| 7 | CC | 0: general controller palette; 1: MIDI controller palette |
| 8 | D | Direction: 0 minimum to maximum, 1 maximum to minimum |
| 9 | P | Polarity: 0 unipolar (0 to 1), 1 bipolar (−1 to 1) |
| 10 to 15 | Type | The curve (6 bits) |
General controllers (CC = 0)
| Index | Controller |
|---|---|
| 0 | No Controller (its output is treated as 1; not a way to turn a modulator off) |
| 2 | Note-On Velocity |
| 3 | Note-On Key Number |
| 10 | Poly Pressure |
| 13 | Channel Pressure |
| 14 | Pitch Wheel |
| 16 | Pitch Wheel Sensitivity (MIDI RPN 0) |
| 127 | Link: the output of another modulator; not supported as an amount source |
Other indexes are reserved and make the modulator ignored. With CC = 1 the index is a MIDI continuous controller; 0, 6, 32, 38, 98 to 101 and 120 to 127 are illegal and 33 to 63 are reserved for the least significant byte of controllers 1 to 31, so the modulator is ignored (spec 8.2.1).
Types
| Type | Name | Meaning |
|---|---|---|
| 0 | Linear | A straight line from minimum to maximum |
| 1 | Concave | A concave curve, output = log(sqrt(value^2)/(max value)^2) |
| 2 | Convex | The concave curve with its ends reversed |
| 3 | Switch | Minimum until the input reaches half of its range, then maximum |
The specification’s wording about type bits (only one type “currently defined”, bits 11 to 15 set means ignore) contradicts its own table and default modulators; the explorer reads the 6-bit type, accepts 0 to 3 and ignores larger values (spec 8.2.4; see the SF2 modulators page).
Transforms and the amount
| Value | Name | Meaning |
|---|---|---|
| 0 | Linear | The output goes straight to the destination’s summing node |
| 2 | Absolute Value | The output is the absolute value of the input |
The effect on the destination is destination value += Transform(Amount * Map(primary source input) * Map(secondary source input)), where Map puts the source in the −1 to 1 range by its direction, polarity and type (spec 8.3, 9.5.1). A destination with the top bit set links to the source of another modulator in the same zone, by its index; circular links are ignored (spec 9.5.4).
The default modulators
Ten modulators are implicit at the instrument level (spec 8.4); all have the amount source 0x0000 and the Linear transform except the last, whose amount source is 0x0010.
| Spec | Name | Source | Destination | Amount |
|---|---|---|---|---|
| 8.4.1 | MIDI Note-On Velocity to Initial Attenuation | 0x0502 | Initial Attenuation (48) | 960 |
| 8.4.2 | MIDI Note-On Velocity to Filter Cutoff | 0x0102 | Initial Filter Cutoff (8) | -2400 |
| 8.4.3 | MIDI Channel Pressure to Vibrato LFO Pitch Depth | 0x000D | Vibrato LFO to Pitch (6) | 50 |
| 8.4.4 | MIDI Continuous Controller 1 to Vibrato LFO Pitch Depth | 0x0081 | Vibrato LFO to Pitch (6) | 50 |
| 8.4.5 | MIDI Continuous Controller 7 to Initial Attenuation | 0x0587 (the specification prints 0x0582, which is index 2; its own breakdown says index 7) | Initial Attenuation (48) | 960 |
| 8.4.6 | MIDI Continuous Controller 10 to Pan Position | 0x028A | Pan (17; the spec’s text says Initial Attenuation) | 1000 |
| 8.4.7 | MIDI Continuous Controller 11 to Initial Attenuation | 0x058B | Initial Attenuation (48) | 960 |
| 8.4.8 | MIDI Continuous Controller 91 to Reverb Effects Send | 0x00DB | Reverb Effects Send (16) | 200 |
| 8.4.9 | MIDI Continuous Controller 93 to Chorus Effects Send | 0x00DD | Chorus Effects Send (15) | 200 |
| 8.4.10 | MIDI Pitch Wheel to Initial Pitch, controlled by MIDI Pitch Wheel Sensitivity | 0x020E, amount source 0x0010 | Initial Pitch | 12700 |
In the explorer
The Modulators tab lists the ten defaults and every modulator of the file with its decoded source, destination, amount, amount source, transform and whether it is ignored and why. The explorer does not apply modulators to sound.
Source: SoundFont Technical Specification 2.04, sections 8.2 to 8.4 and 9.5.1, 9.5.4. The values were compared with the specification text by scripts/sf2/check-tables.mjs.