The mixer is a row of inserts, each with a set of effect slots. Inserts have no New event: their events appear insert by insert, in mixer order. A slot’s plugin is described by its plugin events, and the slot index event then closes the slot. See The order of an insert.
FL Studio 9.0.0 raised the number of insert tracks to 99, “for a total of 105”, according to Image-Line’s changelog, so these versions have 105 inserts. PyFLP’s table of maximums, which it labels as estimates, gives 105 insert slots up to version 9.0 and 127 after it. Each insert has 10 effect slots.
Mixer
| ID | Size class | Name | Holds |
|---|---|---|---|
| 0x1D (29) | Byte | Plugin delay compensation | Whether automatic plugin delay compensation is on. |
| 0xE1 (225) | Data | Mixer parameters | Mixer settings, as a block of binary data. LMMS’s old importer divides insert volumes in this block by 100 for files from version 6.0 on. |
Inserts
| ID | Size class | Name | Holds |
|---|---|---|---|
| 0x1B (27) | Byte | Insert properties | A byte of switches for the insert, 12 in all 6,198 inserts of the 10.9 to 11.1.1 projects checked. Written before the insert’s flags (236). See below. |
| 0x93 (147) | Dword | Insert output | The insert’s audio output. |
| 0x95 (149) | Dword | Insert colour | The insert’s colour, from FL Studio 4. |
| 0x9A (154) | Dword | Insert input | The insert’s audio input. |
| 0xCC (204) | Text | Insert name | The insert’s name, from FL Studio 3.5.4. |
| 0xEB (235) | Data | Insert routing | Which inserts this one sends to, as a block of binary data. |
| 0xEC (236) | Data | Insert flags | The insert’s switches, as a block of binary data. |
The order of an insert
The 59 projects from 10.9 to 11.1.1 among the real files checked (none from 8.1 to 10.8 is available) write an insert’s events in this order: colour (149) and name (204), each only if set; the insert properties byte (27); flags (236); the plugins of its slots; routing (235); input (154); output (147), which ends the insert. The first insert, the master, has no colour or name. The icon event (95) does not occur in these files. DawVert and flpkit agree on the first event of the order that later versions use, flpdiff and PyFLP on the last. Inserts count from 0 in file order; flpkit found FL Studio’s own wrappers agree with that count on all but 1 of 3,545 slot plugins. PyFLP numbers them one lower, from −1, for a “current” insert first.
How slots are stored
These versions write no slot index event (98): in the real files it first occurs in 12.3.0.72. A slot’s plugin is the events 201 (internal name), 212 (wrapper), 203 (the user’s name, only if renamed) and 213 (state), one after another, with no icon or colour events (155, 128). The wrapper holds the insert number (offset 0) and the slot number (offset 4), 0 to 9, and that is the only place the slot number is stored. An empty slot writes nothing. DawVert, flpkit and flpdiff read the closing event 98 of later versions.
Insert properties (event 27)
A byte. LMMS’s importer reads bit 3 (value 8): set means the insert is on, clear means
it is muted. DawVert’s list calls the event FXProps. Bit 3 of the flags
word of event 236 has the same meaning, so this is probably its earlier form.
Insert flags (event 236)
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | f32 | latency | DawVert’s reading; PyFLP and flpdiff leave these bytes unknown. |
| 4 | 1 | u8 | flags_byte | The event is 5 bytes long in FL Studio 8.0.0 to 11.1.1, so these versions end here; the byte is 1 in all 6,198 events of the real files checked. The flags dword below (offset 4, 4 bytes) and the zero dword after it (offset 8) are written only from 12.3.0.33 (8-byte form) and 12.9.3.321 (12-byte form), by the next variants. |
| Bit | Meaning |
|---|---|
| 0 | Polarity reversed |
| 1 | Swap left and right |
| 2 | Effects on |
| 3 | Enabled |
| 4 | Threaded processing off |
| 6 | Docked in the middle |
| 7 | Docked on the right; neither bit means left |
| 10 | Separator shown |
| 11 | Locked |
| 12 | Solo |
| 15 | Audio track |
| 5, 8, 9, 13, 14 | Unknown |
Insert routing (event 235)
One byte for each insert in the mixer, in order: non-zero means this insert sends audio to that one. The send levels are the mixer parameters 64 to 191 below. The event is 105 bytes long in every real file checked (10.9 to 11.1.1), one byte for each of the 105 inserts.
Mixer parameters (event 225)
A run of 12-byte records. Each sets one parameter of an insert or slot; a parameter left out has its default.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | bytes | reserved | Unused by every reader. |
| 4 | 1 | u8 | id | The parameter. See below. |
| 5 | 1 | u8 | control_high | LMMS and DawVert read this and id as one 16-bit control; LMMS matches volume as 0x1FC0. PyFLP leaves it unknown. |
| 6 | 2 | u16 | location | Insert in bits 6 to 12, slot in bits 0 to 5. |
| 8 | 4 | i32 | value | In the units below. |
| ID | Parameter | Values |
|---|---|---|
| 0 | Slot enabled | 0 or 1, in the slot given by the location |
| 1 | Slot mix | 0 to 12,800 for 0 to 100%; 12,800 is the default |
| 64 to 191 | Send level to insert (ID − 64) | 0 to 12800 is 0 to 100% |
| 192 | Volume | 0 to 16000, default 12800 (100%), not linear |
| 193 | Pan | −6400 to 6400, default 0 |
| 194 | Stereo separation | 64 merged to −64 separated, default 0 |
| 208, 209, 210 | Low, mid and high gain | −1800 to 1800, default 0 |
| 216, 217, 218 | Low, mid and high frequency | 0 to 65536 is 10 Hz to 16 kHz, not linear; defaults 5777, 33145, 55825 |
| 224, 225, 226 | Low, mid and high Q | 0 to 65536, default 17500 |
No source maps every number in between; IDs not listed are unknown.
Control locations
Mixer parameters, remote controls and start values name what they change with a 16-bit control word and a 16-bit group word; DawVert reads them this way, and flpdiff’s remote link reading agrees. The group’s top three bits say what is addressed:
- 0, a channel: the channel is the group’s low 12 bits. The control’s high byte picks a set and its low byte the parameter: set 0 (0 volume, 1 pan, 2 mod X, 3 mod Y, 4 pitch, 5 filter type, 6 portamento slide, 7 mute, 8 mixer track, 9 time gate, 11 time shift, 12 swing, 13 start offset, 14 stretch time, 16 to 20 volume, pan, mod X and mod Y offsets); set 2 echo (0 feedback, 1 pan, 2 pitch, 3 echoes, 4 time, 5 mod Y, 6 mod X); set 3 arpeggiator (0 type, 1 range, 2 chord, 3 time, 4 gate, 5 repeat); set 5 tracking (0 to 2 volume to pan, mod X, mod Y; 16 to 18 key to pan, mod X, mod Y); sets 17 to 20 the volume, mod X, mod Y and pitch envelopes (2 delay, 3 attack, 4 hold, 5 decay, 6 sustain, 7 release, 8 amount, 9 LFO predelay, 10 LFO attack, 11 LFO amount, 12 LFO speed, 14 to 16 attack, decay and release tension). Control words of 0x8000 and over are plugin parameters.
- 1, a mixer insert or slot: bits 6 to 12 the insert, bits 0 to 5 the slot. The control’s low 6 bits are as the mixer parameters above; bit 15 set means a plugin parameter.
- 2, the project: 0 volume, 1 swing, 2 pitch, 5 tempo.