@holzchopf/flp-file
Version:
Reads and writes FL Studio project and state files.
43 lines (42 loc) • 1.09 kB
TypeScript
declare const FLPFileFormatRaw: {
readonly Project: 0;
readonly Score: 16;
readonly Automation: 24;
readonly ChannelState: 32;
readonly PluginState: 48;
readonly GeneratorState: 49;
readonly EffectState: 50;
readonly InsertState: 64;
};
/**
* Known file format names.
*/
export type FLPFileFormatName = keyof typeof FLPFileFormatRaw;
/**
* Known file format IDs.
*/
export type FLPFileFormatId = typeof FLPFileFormatRaw[FLPFileFormatName];
/**
* Specific file formats of [[FLPFile]]s.
*/
export declare const FLPFileFormat: {
/**
* Returns the name of a given file format ID, or `'unknown'`
* @param id File format ID.
*/
name: (id: number) => FLPFileFormatName | 'unknown';
/**
* Returns the ID for a given file format name, or `undefined`
* @param name File format name.
*/
byName: (name: string) => FLPFileFormatId | undefined;
Project: 0;
Score: 16;
Automation: 24;
ChannelState: 32;
PluginState: 48;
GeneratorState: 49;
EffectState: 50;
InsertState: 64;
};
export {};