A pattern’s notes are stored in its pattern notes event (224) as a run of 20-byte records, one per note, with nothing between them. The number of notes is the event’s size divided by 20. Controller changes are stored the same way in event 223, as 12-byte records.
The 20-byte size is carried over from LMMS’s old importer, removed after LMMS 1.0, which was written for files of this time. It reads 20-byte notes and applies its version 6 handling of volume and pan to the same files, so it expects 20-byte notes from these versions. No file from FL Studio 6 to 8 has been examined for this site, so the size is not confirmed. In files from FruityLoops 1 to FL Studio 5 it is.
Note record
Every number is little-endian. Positions and lengths are in ticks; the PPQ in the header says how many ticks make one beat. The offsets are the ones LMMS reads, and the ones confirmed in earlier files; fields marked “probably” are inferred from earlier files, not documented.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | u32 | position | Where the note starts, in ticks from the start of the pattern. |
| 4 | 2 | u16 | flags | Note flags, probably. flpkit found bit 14 (0x4000) set on every one of 24,435 notes in FL Studio’s own projects; what it means is unknown. |
| 6 | 2 | u16 | channel | The channel in the rack that plays the note. |
| 8 | 4 | u32 | length | How long the note lasts, in ticks. |
| 12 | 1 | u8 | key | The note number. 60 is C5 in FL’s naming. |
| 13 | 1 | u8 | finepitch | Fine pitch, probably. 120, the centre, in earlier files. |
| 14 | 2 | Unknown. | ||
| 16 | 1 | u8 | pan | Panning of the note. 64 is the centre in earlier files. |
| 17 | 1 | u8 | velocity | How hard the note is played. |
| 18 | 1 | u8 | modx | Modulation X, probably. |
| 19 | 1 | u8 | mody | Modulation Y, probably. |
Note colours
From version 6.0.1 the piano roll gives notes one of 16 colours. Image-Line’s changelog for 6.0.1 says the piano roll “now offers 16 note colors (that can be seen as MIDI channels)”, and PyFLP notes that the note record’s MIDI channel byte holds them from that version. Where that byte sits in the 20-byte record is not known, and the site’s explorer does not decode it.
Controller record
Each record in a pattern controllers event (223) is one controller change at one point in the pattern. The layout below is PyFLP’s, read from later files. LMMS’s old importer reads the same 12 bytes with the value as an integer. Which reading suits these versions is not known.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | u32 | position | Where the change happens, in ticks. |
| 4 | 2 | u16 | control | LMMS and DawVert: the control, the low half of a location. PyFLP leaves these two bytes unknown. |
| 6 | 1 | u8 | channel | The channel the change applies to: the low byte of the group, the location’s high half. |
| 7 | 1 | u8 | flags | The group’s high byte. Its top three bits say what is addressed (0 channel, 1 mixer, 2 project), DawVert’s reading; PyFLP calls this flags and leaves it unexplained. |
| 8 | 4 | f32 or i32 | value | The value: a 32-bit float in PyFLP and flpdiff, a whole number in LMMS and DawVert. The viewer shows a float when the value is a small number. |
PyFLP’s comment notes the position “can be delta as well”.