UNPKG

@holzchopf/flp-file

Version:

Reads and writes FL Studio project and state files.

29 lines (28 loc) 800 B
import { FLPDataChunk, FLPHeaderChunk } from "./flp-chunk"; /** * Class 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: * - A header chunk, containing file and global project information. * - A data chunk, containing event data. */ export declare class FLPFile { /** * Header chunk. */ header: FLPHeaderChunk; /** * Data chunk. */ data: FLPDataChunk; /** * Creates the binary data for this file and returns it. */ getBinary(): ArrayBuffer; /** * Sets this files's values from binary data. * @param buffer Binary data. */ setBinary(buffer: ArrayBuffer): void; constructor(); }