Clips placed in the playlist are stored as playlist items in event 233, as 28-byte records with nothing between them. The size is carried over from LMMS’s old importer, removed after LMMS 1.0, which was written for files of this time and reads 28-byte playlist items from files of version 6 and later. No file from FL Studio 6 to 8 has been examined for this site, so the size is not confirmed. In files from FL 3.6 to 5.0 it is.
Two forms
In earlier files the records come in two forms, told apart by where the constant
20480 (00 50) sits: at offset 4 in a channel clip, and at offset 6 in a
pattern clip, which has 0 at offset 4. The tables below give both as they are read in
those earlier files. All numbers are little-endian, and positions and lengths are in
ticks. Fields marked “probably” are inferred from values seen in earlier files, not
documented.
Channel clip
A clip that plays a channel, such as an audio clip or an automation clip.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | u32 | position | Where the clip starts in the playlist. |
| 4 | 2 | u16 | 20480 (00 50). | |
| 6 | 2 | u16 | channel | The channel the clip plays. |
| 8 | 4 | u32 | length | How long the clip lasts. |
| 12 | 1 | u8 | track | Probably the playlist track, counted backwards. |
| 13 | 1 | u8 | Unknown. | |
| 14 | 2 | u16 | flags | FL Studio 2026’s converter for old files takes byte 14 as the high byte of the track (the track is byte 12 plus byte 14 times 256), so this is not a flags word as earlier notes had it. The muted bit of later records is 0x2000 and the selected bit 0x8000, in a separate field. |
| 16 | 4 | Unknown. | ||
| 20 | 4 | f32 | start | Start offset. −1.0 for none. FLParser reads such floats in later records as beats; DawVert scales them differently, so the unit is not settled. The viewer shows beats. |
| 24 | 4 | f32 | end | End offset. −1.0 for none. |
Pattern clip
A clip that places a pattern. Image-Line’s changelog for 7.0.0 says “Added pattern clips to the Playlist”, and PyFLP marks pattern items in event 233 as “New in FL Studio v7.0.0”. Before that, event 233 held channel clips, and patterns were placed with event 129 or with this pattern-clip form. The change adds to the file and does not alter what was there.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | u32 | position | Where the clip starts in the playlist. |
| 4 | 2 | u16 | 0. | |
| 6 | 2 | u16 | 20480 (00 50). | |
| 8 | 4 | u32 | length | How long the clip lasts. |
| 12 | 4 | u32 | pattern | A pattern code. LMMS and node-flp take the pattern as 2278 minus the low 12 bits; LMMS’s own comments call these “magic numbers”. |
| 16 | 4 | Unknown. | ||
| 20 | 4 | start | Start offset; the float −1.0 for none in FL 5 files. | |
| 24 | 4 | end | End offset; the float −1.0 for none in FL 5 files. |
Track numbers
How many playlist tracks these versions have, and how the track byte maps to a track index, is not documented.