Every FLP file starts with a 14-byte header chunk whose ID is FLhd.
Image-Line’s own description of the format, written for FruityLoops 1.7 in 1999, covers
it in full, and adds that “most of this chunk is not used”.
00000000 46 4C 68 64 06 00 00 00 00 00 10 00 60 00 46 4C FLhd........`.FL
Fields
All numbers are little-endian. The names are the ones the 1999 document uses.
| Offset | Size | Type | Name | Description |
|---|---|---|---|---|
| 0 | 4 | ASCII | ChunkID | Always FLhd (46 4C 68 64). |
| 4 | 4 | u32 | Length | The size of the rest of the header: 6, “because of the 3 words below”. |
| 8 | 2 | u16 | Format | Set to 0 for full songs. See File type. |
| 10 | 2 | u16 | nChannels | The total number of channels, which the document notes is “not really used”. |
| 12 | 2 | u16 | BeatDiv | Pulses per quarter note: the number of ticks in one beat. |
The data chunk follows straight after, at offset 14.
File type
The 1999 document defines only one value: 0, a full song. PyFLP notes that from FruityLoops 2.5 the same container was also used for other files, such as channel and plugin presets, with other values in this field. Presets from FruityLoops 2.2.0 to FL Studio 5.0.1 on this site’s disks use 32 (a channel), 48 (a plugin) and 64 (a mixer insert), and are described as FST files. A reader looking for projects should expect 0. FL Studio 2026’s saver (read statically) writes exactly 0, 0x10, 0x18, 0x20, 0x30 and 0x40, like FL Studio 5’s; the values 0x31 and 0x32 that PyFLP names (generator and effect state) are labels it derives from a 0x30 file, and 0x50 occurs in no program as a file type.
Pulses per quarter note
Positions and lengths in the event stream are counted in ticks, and
BeatDiv says how many ticks make one beat. Before version 2.1 it is 16: every
file examined for this site from 1.3.80 to 2.0.0 has 16. From 2.1 the default is 96;
Image-Line’s changelog for 2.1.1 says “Switched default ticks per beat (PPQ) to 96”.
From 2.5, files with 192, 384 and 768 also occur, and one 5.0 file seen has 24. No
source lists the values these versions allow, so a reader should take the field as
it is.