The mixer grew a great deal in this era. The 1999 document lists no mixer events of its own: a channel’s mixer insert is set by the channel event 22. The events below were added later.
Events
| ID | Size class | Name | Holds |
|---|---|---|---|
| 0x95 (149) | Dword | Insert colour | The insert’s colour, from version 4.0. In files older than 4.0.1, FL Studio 5’s reader replaces it with 0x625D54. |
| 0xCC (204) | Text | Insert name | The insert’s name, from version 3.5.4. |
| 0xE1 (225) | Data | Mixer parameters | Mixer settings, as 12-byte records. See below. |
| 0xEB (235) | Data | Insert routing | Which inserts this one sends to, one flag per insert. PyFLP dates routing to 4.0. |
Mixer parameters
A run of 12-byte records. Each sets one parameter of an insert or slot; a parameter left out has its default. Insert volumes in this variant are on the old scale, 100 times smaller than the values below, as LMMS reads them.
| 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 | 128 is 100%, the default (12,800 in FL Studio 6 and later) |
| 64 to 67 | Send level to send track 1 to 4 (inserts 65 to 68) | 0 to 128 for 0 to 100%, the same scale as volume; 0 is the default. Written for inserts 1 to 64 only: the master and the send tracks have none |
| 96 | Volume | 128 is 100% and the default; not linear. The maximum in these versions is not recorded |
| 97 | Pan | Default 0; the range is not recorded (the viewer takes 64 as full) |
| 98 | Stereo separation | Default 0; the range is not recorded (the viewer takes 64 as full) |
| 112, 113, 114 | Low, mid and high gain | Default 0 |
| 120, 121, 122 | Low, mid and high frequency | 0 to 65536; defaults 5777, 33145, 55825 |
| 128, 129, 130 | Low, mid and high Q | 0 to 65536, default 17500 |
These are the numbers FruityLoops 3 to FL Studio 5 write, seen in a real FL Studio 5.0.2 project: 28 records for each insert (8 slots, each an enabled and a mix record, then the volume, pan and stereo separation, the three gains, the three frequencies and the three Qs), and four send levels for each of the 64 inserts, 2,188 records in all for 69 inserts. FL Studio 6 numbers the volume, pan and stereo separation 192 to 194, the gains 208 to 210, the frequencies 216 to 218 and the Q values 224 to 226, which are the old numbers plus 96, and its sends are 64 plus the target insert. The IDs of FL Studio 6 and later follow in the next table for completeness; they are not used in files from this variant.
| ID | Parameter | Values |
|---|---|---|
| 192 | Volume | 12,800 is 100% in FL Studio 6 and later |
| 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.
How many inserts
PyFLP keeps a table of the largest mixer for each version, which it labels as estimates:
| Up to version | Inserts | Effect slots per insert |
|---|---|---|
| 1.6.5 | 5 | 4 |
| 2.0.1 | 8 | 8 |
| 3.0 | 18 (16 and 2 sends) | 8 |
| 3.3 | 20 | 10 |
| 4.0 | 64 | 10 |
PyFLP’s own notes disagree on when insert slots went from 8 to 10, so that column is uncertain.
The order of an insert
An insert’s events come in this order: name (204), colour (149) and icon (95), each only if set; flags (236); ten slots; routing (235); input (154); output (147), which ends the insert. 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. For old files FL Studio 5’s reader stores event 147 in the insert with 0x41 added, and before 3.6.4 an insert number of 0x11 jumps by 0x30.
How slots are stored
A slot’s plugin events 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. DawVert, flpkit and flpdiff all read it this way, and the plugin wrapper (212) repeats the slot number.
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 | Unknown; DawVert writes zeroes. |
| 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 above.
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.