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.
PyFLP’s table of maximums, which it labels as estimates, gives 127 insert slots for versions after 9.0: 125 numbered inserts, the master and a “current” insert. 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. |
Inserts
| ID | Size class | Name | Holds |
|---|---|---|---|
| 0x5F (95) | Word | Insert icon | The insert’s icon. |
| 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. |
Slots
| ID | Size class | Name | Holds |
|---|---|---|---|
| 0x62 (98) | Word | Slot index | Closes the effect slot with this number; the plugin events before it fill the slot. |
The order of an insert
The 21 projects from 12.3 to 12.5 among the real files checked (none from 11.5 to 12.2 is available) write an insert’s events in this order: colour (149), icon (95) and name (204), each only if set; flags (236); ten slots; routing (235); input (154); output (147), which ends the insert. The insert properties byte (27) of 11.1.1 and earlier no longer occurs. DawVert and flpkit agree on the first event, 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
A slot’s plugin events (201, 212, 203 if renamed, 155, 128, 213) come first, and its slot index event (98) closes it: the value is the slot’s number, 0 to 9. An empty slot is just the index event. The event first occurs in 12.3.0.72 among the real files checked; projects up to 11.1.1 have none and give the slot number only in the wrapper (212, offset 4), so a file from 11.5 to 12.2, which none of the files checked covers, may do either. DawVert, flpkit and flpdiff all read it with the index event.
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 | 4 | u32 | flags | See below. |
| 8 | 4 | bytes | unknown | Not present in the real files checked from this variant: the event is 8 bytes long from 12.3.0.33 to 12.5.0.59 (and 5 bytes, a float and a byte that is always 1, in 11.1.1 and earlier), and 12 bytes from 12.9.3.321. DawVert writes zeroes, and the dword is zero in all 8,147 events of 12 bytes checked. |
| 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 from 12.3 to 12.5, one byte for each of 105 inserts; it grows to 127 bytes in 12.9.3.321 (the next variant).
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.