
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
@holzchopf/flp-file
Advanced tools
This file was auto-generated with zdoccer.js 2.0.3
type FLPChunkType = 'FLhd' | 'FLdt'abstract class FLPChunk
class FLPHeaderChunk extends FLPChunk
class FLPDataChunk extends FLPChunk
type FLPEventTypeName = keyof typeof FLPEventTypeRawtype FLPEventTypeId = typeof FLPEventTypeRaw[FLPEventTypeName]const FLPEventType =
type FLPDataType = 'int8' | 'int16' | 'int32' | 'uint8' | 'uint16' | 'uint32' | 'float32' | 'binary' | 'ascii' | 'utf-16le'let FLPEventValueDataType: Partial<Record<FLPEventTypeName, FLPDataType>> =class FLPEvent
type FLPFileFormatName = keyof typeof FLPFileFormatRawtype FLPFileFormatId = typeof FLPFileFormatRaw[FLPFileFormatName]const FLPFileFormat =
class FLPFile
original Markdown from src/_preamble.md
Allows to read and write FL Studio project and state files.
transformed Javadoc from src/flp-chunk.ts
type FLPChunkType = 'FLhd' | 'FLdt'The chunks in an FLPFile have a 4-byte ASCII-string indicated type. These are those types.
abstract class FLPChunkClass representing a chunk in an FLPFile.
type: FLPChunkTypeType of this chunk.
abstract getBinary(): ArrayBufferCreates the binary data for this chunk and returns it.
abstract setBinary(buffer: ArrayBuffer): voidSets this chunk's values from binary data.
buffer — Binary data.class FLPHeaderChunk extends FLPChunkSpecific class for the header chunk.
format: number = -1Numeric file format identifier.
get formatName()Name of file format.
channelCnt: number = 0Number of channels.
ppq: number = 96Project PPQ.
class FLPDataChunk extends FLPChunkSpecific class for the data chunk.
events: FLPEvent[] = []FLPEvents in this chunk.
transformed Javadoc from src/flp-event-type.ts
type FLPEventTypeName = keyof typeof FLPEventTypeRawKnown event names.
type FLPEventTypeId = typeof FLPEventTypeRaw[FLPEventTypeName]Known event IDs.
const FLPEventType =Types of the events in an FLPDataChunk 🡵.
name: (id: number): FLPEventTypeName | 'unknown' =>Returns the name of a given event ID, or 'unknown'.
id — Event ID.byName: (name: string): FLPEventTypeId | undefined =>Returns the ID for a given event name, or undefined
name — Event name.transformed Javadoc from src/flp-event.ts
type FLPDataType = 'int8' | 'int16' | 'int32' | 'uint8' | 'uint16' | 'uint32' | 'float32' | 'binary' | 'ascii' | 'utf-16le'Possible data types for event values.
let FLPEventValueDataType: Partial<Record<FLPEventTypeName, FLPDataType>> =Data types for event's values. Falls back to uint8 for event ids < 64, uint16 for event ids < 128, uint32 for event ids < 192, utf-16le for event ids < 210, binary otherwise.
This is not a const - you can add or overwrite types for events in your project.
class FLPEventClass for events.
type: numberNumeric FLPEventType 🡵.
get typeName()Name of FLPEventType 🡵. Readonly.
value: number | string | ArrayBufferPrimitive representation of event data. Data type varies by event type.
get maxByteLength()Returns the maximum allowed byte length depending on event type.
getBinary(): ArrayBufferCreates the binary data for this event and returns it.
setBinary(buffer: ArrayBuffer)Sets this event's values from binary data.
buffer — Binary data.static getValueDataType(type: number | FLPEventTypeName): FLPDataTypeReturns the expected data type for a given event type.
type — Event type.transformed Javadoc from src/flp-file-format.ts
type FLPFileFormatName = keyof typeof FLPFileFormatRawKnown file format names.
type FLPFileFormatId = typeof FLPFileFormatRaw[FLPFileFormatName]Known file format IDs.
const FLPFileFormat =Specific file formats of FLPFile 🡵s.
name: (id: number): FLPFileFormatName | 'unknown' =>Returns the name of a given file format ID, or 'unknown'
id — File format ID.byName: (name: string): FLPFileFormatId | undefined =>Returns the ID for a given file format name, or undefined
name — File format name.transformed Javadoc from src/flp-file.ts
class FLPFileClass representing an FL Studio file, which might be a project file (.flp). But other FL Studio files, like state files (.fst) have the same format.
Every FLPFile consists of two chunks:
header: FLPHeaderChunkHeader chunk.
data: FLPDataChunkData chunk.
getBinary(): ArrayBufferCreates the binary data for this file and returns it.
setBinary(buffer: ArrayBuffer)Sets this files's values from binary data.
buffer — Binary data.FAQs
Reads and writes FL Studio project and state files.
We found that @holzchopf/flp-file demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.