Every clip placed in an arrangement’s playlist is one playlist item. An arrangement’s playlist items event (233) holds them all, as fixed-size records with nothing between them. In FL Studio 20 every record is 32 bytes long, so the number of items is the event’s size divided by 32.
Record
Every number is little-endian. Positions and lengths are in ticks.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | u32 | position | Where the item starts in the playlist, in ticks. |
| 4 | 2 | u16 | pattern_base | Always 20480. See What an item plays. |
| 6 | 2 | u16 | item_index | What the item plays: a pattern or a channel. |
| 8 | 4 | u32 | length | The item’s length, in ticks. |
| 12 | 2 | u16 | track | The track the item sits on, counted backwards. See Track numbers. |
| 14 | 2 | u16 | group | The item group: 0 for none, otherwise a number shared by the clips in a group. |
| 16 | 2 | bytes | note_fine_pitch | Always 78 00. FL Studio 2026’s new-clip code sets 0x78 here: the default fine pitch (120) of a note, copied into the clip; no clip meaning. |
| 18 | 2 | u16 | item_flags | Usually 64 (40 00). Bit 13 (0x2000) is muted (FL Studio 2026’s mute step sets it; FLParser is right, DawVert’s 0x1000 is wrong). Bit 15 (0x8000) is selected. Bit 6 (0x40) is the default low byte of every new clip; no behaviour was found for it. |
| 20 | 4 | bytes | note_defaults | Always 40 64 80 80: the default note pan, velocity, mod X and mod Y that FL Studio 2026 copies into every new clip; no clip meaning. |
| 24 | 4 | u32 or f32 | start_offset | Start offset within the item: whole ticks for a pattern clip, a 32-bit float for an audio clip. DawVert and FLParser read it this way; PyFLP reads a float for both. −1.0 or FF FF FF FF is none. FLParser reads the float in beats (it multiplies by the PPQ); DawVert divides an audio clip’s by 4 and by the clip’s stretch rate, and an automation clip’s by 0.008, before multiplying by the PPQ, so the unit is not settled. The viewer shows FLParser’s beats. |
| 28 | 4 | u32 or f32 | end_offset | End offset within the item, read as above. |
What an item plays
An item plays either a pattern or a channel’s clip, such as an audio or automation
clip. The item_index tells them apart by comparing it with
pattern_base, which is always 20480:
- Greater than 20480: a pattern. The pattern index is
item_indexminus 20480. - 20480 or less: a channel. The value is the channel index.
Track numbers
This is the change that sets these files apart from earlier ones. The record is the
same 32 bytes as before, but the track field now means something
different. Image-Line’s changelog for 12.9.1 Beta (21 December 2017) says “Playlist
now has 500 tracks instead of 199”. Before, the field was 198 minus the track; now it
counts down from 499:
track index = 499 − track
So the first track, index 0, is stored as 499. This is how PyFLP reads these files. flpkit, dawtool and PyFLP issue 199 give the same rule, written for tracks counted from 1 as 500 minus the field. A reader that keeps the old rule puts every item on the wrong track.
FLParser uses 501 minus the track for version 20. It reads the track and the group field after it as one number, so this looks like a workaround rather than a different rule.