UNPKG

@holzchopf/flp-file

Version:

Reads and writes FL Studio project and state files.

333 lines (332 loc) 9.81 kB
declare const FLPEventTypeRaw: { readonly ByteEnabled: 0; readonly ByteNoteOn: 1; readonly ByteVol: 2; readonly BytePan: 3; readonly ByteMidiChan: 4; readonly ByteMidiNote: 5; readonly ByteMidiPatch: 6; readonly ByteMidiBank: 7; readonly ByteLoopActive: 9; readonly ByteShowInfo: 10; readonly ByteShuffle: 11; readonly ByteMainVol: 12; readonly ByteStretch: 13; readonly BytePitchable: 14; readonly ByteZipped: 15; readonly ByteDelayFlags: 16; readonly ByteProjectTimeSigNumerator: 17; readonly ByteProjectTimeSigDenominator: 18; readonly ByteUseLoopPoints: 19; readonly ByteChannelLoopType: 20; readonly ByteChannelType: 21; readonly ByteTargetFXTrack: 22; readonly BytePanningLaw: 23; readonly ByteNStepsShown: 24; readonly ByteSSLength: 25; readonly ByteSSLoop: 26; readonly ByteEffectChannelMuted: 27; readonly ByteIsRegistered: 28; readonly ByteAPDC: 29; readonly BytePlayTruncatedNotes: 30; readonly ByteEEAutoMode: 31; readonly ByteTimeSigMarkerNumerator: 33; readonly ByteTimeSigMarkerDenominator: 34; readonly ByteProjectShouldUseTimeSignatures: 35; readonly ByteShouldCutNotesFast: 40; readonly BytePluginIgnoresTheme: 41; readonly ByteInsertIgnoresTheme: 42; readonly ByteTrackIgnoresTheme: 43; readonly BytePlaylistShouldUseAutoCrossfades: 44; readonly WordNewChan: 64; readonly WordNewPat: 65; readonly WordTempo: 66; readonly WordCurrentPatNum: 67; readonly WordPatData: 68; readonly WordFx: 69; readonly WordFadeStereo: 70; readonly WordCutOff: 71; readonly WordDotVol: 72; readonly WordDotPan: 73; readonly WordPreAmp: 74; readonly WordDecay: 75; readonly WordAttack: 76; readonly WordDotNote: 77; readonly WordDotPitch: 78; readonly WordDotMix: 79; readonly WordMainPitch: 80; readonly WordRandChan: 81; readonly WordMixChan: 82; readonly WordResonance: 83; readonly WordLoopBar: 84; readonly WordStDel: 85; readonly WordFx3: 86; readonly WordDotReso: 87; readonly WordDotCutOff: 88; readonly WordShiftDelay: 89; readonly WordLoopEndBar: 90; readonly WordDot: 91; readonly WordDotShift: 92; readonly WordTempoFine: 93; readonly WordLayerChans: 94; readonly WordInsertIcon: 95; readonly WordDotRel: 96; readonly WordSwingMix: 97; readonly WordCurrentSlotNum: 98; readonly WordNewArrangement: 99; readonly WordCurrentArrangementNum: 100; readonly DWordColor: 128; readonly DWordPlayListItem: 129; readonly DWordEcho: 130; readonly DWordFxSine: 131; readonly DWordCutCutBy: 132; readonly DWordWindowH: 133; readonly DWordMiddleNote: 135; readonly DWordReserved: 136; readonly DWordMainResoCutOff: 137; readonly DWordDelayReso: 138; readonly DWordReverb: 139; readonly DWordIntStretch: 140; readonly DWordSsNote: 141; readonly DWordFineTune: 142; readonly DWordChannelSampleFlags: 143; readonly DWordChannelLayerFlags: 144; readonly DWordChanFilterNum: 145; readonly DWordCurFilterNum: 146; readonly DWordInsertOutChanNum: 147; readonly DWordNewTimeMarker: 148; readonly DWordInsertColor: 149; readonly DWordPatternColor: 150; readonly DWordPatternAutoMode: 151; readonly DwordSongLoopPos: 152; readonly DWordAUSmpRate: 153; readonly DwordInsertInChanNum: 154; readonly DWordPluginIcon: 155; readonly DWordFineTempo: 156; readonly DWordVersionBuilNumber: 159; readonly TextChanName: 192; readonly TextPatName: 193; readonly TextTitle: 194; readonly TextComment: 195; readonly TextSampleFileName: 196; readonly TextUrl: 197; readonly TextCommentRtf: 198; readonly TextVersion: 199; readonly TextRegName: 200; readonly TextDefPluginName: 201; readonly TextProjectDataPath: 202; readonly TextPluginName: 203; readonly TextInsertName: 204; readonly TextTimeMarkerName: 205; readonly TextGenre: 206; readonly TextProjectAuthor: 207; readonly TextMidiControls: 208; readonly TextDelay: 209; readonly DataTs404Params: 210; readonly DataDelayLine: 211; readonly DataNewPlugin: 212; readonly DataPluginParams: 213; readonly DataChanParams: 215; readonly DataCtrlRecChan: 216; readonly DataPlaylistSelection: 217; readonly DataEnvLfoParams: 218; readonly DataBasicChanParams: 219; readonly DataOldFilterParams: 220; readonly DataChanPoly: 221; readonly DataNoteEvents: 222; readonly DataOldAutomationData: 223; readonly DataPatternNotes: 224; readonly DataInsertParams: 225; readonly DataMIDIInfo: 226; readonly DataAutomationChannels: 227; readonly DataChannelTracking: 228; readonly DataChanOfsLevels: 229; readonly DataRemoteCtrlFormula: 230; readonly DataChanGroupName: 231; readonly DataRegBlackList: 232; readonly DataPlayListItems: 233; readonly DataAutomationData: 234; readonly DataInsertRoutes: 235; readonly DataInsertFlags: 236; readonly DataSaveTimestamp: 237; readonly DataNewPlaylistTrack: 238; readonly DataPlaylistTrackName: 239; readonly DataArrangementName: 241; }; /** * Known event names. */ export type FLPEventTypeName = keyof typeof FLPEventTypeRaw; /** * Known event IDs. */ export type FLPEventTypeId = typeof FLPEventTypeRaw[FLPEventTypeName]; /** * Types of the events in an [[FLPDataChunk]]. */ export declare const FLPEventType: { /** * Returns the name of a given event ID, or `'unknown'`. * @param id Event ID. */ name: (id: number) => FLPEventTypeName | 'unknown'; /** * Returns the ID for a given event name, or `undefined` * @param name Event name. */ byName: (name: string) => FLPEventTypeId | undefined; ByteEnabled: 0; ByteNoteOn: 1; ByteVol: 2; BytePan: 3; ByteMidiChan: 4; ByteMidiNote: 5; ByteMidiPatch: 6; ByteMidiBank: 7; ByteLoopActive: 9; ByteShowInfo: 10; ByteShuffle: 11; ByteMainVol: 12; ByteStretch: 13; BytePitchable: 14; ByteZipped: 15; ByteDelayFlags: 16; ByteProjectTimeSigNumerator: 17; ByteProjectTimeSigDenominator: 18; ByteUseLoopPoints: 19; ByteChannelLoopType: 20; ByteChannelType: 21; ByteTargetFXTrack: 22; BytePanningLaw: 23; ByteNStepsShown: 24; ByteSSLength: 25; ByteSSLoop: 26; ByteEffectChannelMuted: 27; ByteIsRegistered: 28; ByteAPDC: 29; BytePlayTruncatedNotes: 30; ByteEEAutoMode: 31; ByteTimeSigMarkerNumerator: 33; ByteTimeSigMarkerDenominator: 34; ByteProjectShouldUseTimeSignatures: 35; ByteShouldCutNotesFast: 40; BytePluginIgnoresTheme: 41; ByteInsertIgnoresTheme: 42; ByteTrackIgnoresTheme: 43; BytePlaylistShouldUseAutoCrossfades: 44; WordNewChan: 64; WordNewPat: 65; WordTempo: 66; WordCurrentPatNum: 67; WordPatData: 68; WordFx: 69; WordFadeStereo: 70; WordCutOff: 71; WordDotVol: 72; WordDotPan: 73; WordPreAmp: 74; WordDecay: 75; WordAttack: 76; WordDotNote: 77; WordDotPitch: 78; WordDotMix: 79; WordMainPitch: 80; WordRandChan: 81; WordMixChan: 82; WordResonance: 83; WordLoopBar: 84; WordStDel: 85; WordFx3: 86; WordDotReso: 87; WordDotCutOff: 88; WordShiftDelay: 89; WordLoopEndBar: 90; WordDot: 91; WordDotShift: 92; WordTempoFine: 93; WordLayerChans: 94; WordInsertIcon: 95; WordDotRel: 96; WordSwingMix: 97; WordCurrentSlotNum: 98; WordNewArrangement: 99; WordCurrentArrangementNum: 100; DWordColor: 128; DWordPlayListItem: 129; DWordEcho: 130; DWordFxSine: 131; DWordCutCutBy: 132; DWordWindowH: 133; DWordMiddleNote: 135; DWordReserved: 136; DWordMainResoCutOff: 137; DWordDelayReso: 138; DWordReverb: 139; DWordIntStretch: 140; DWordSsNote: 141; DWordFineTune: 142; DWordChannelSampleFlags: 143; DWordChannelLayerFlags: 144; DWordChanFilterNum: 145; DWordCurFilterNum: 146; DWordInsertOutChanNum: 147; DWordNewTimeMarker: 148; DWordInsertColor: 149; DWordPatternColor: 150; DWordPatternAutoMode: 151; DwordSongLoopPos: 152; DWordAUSmpRate: 153; DwordInsertInChanNum: 154; DWordPluginIcon: 155; DWordFineTempo: 156; DWordVersionBuilNumber: 159; TextChanName: 192; TextPatName: 193; TextTitle: 194; TextComment: 195; TextSampleFileName: 196; TextUrl: 197; TextCommentRtf: 198; TextVersion: 199; TextRegName: 200; TextDefPluginName: 201; TextProjectDataPath: 202; TextPluginName: 203; TextInsertName: 204; TextTimeMarkerName: 205; TextGenre: 206; TextProjectAuthor: 207; TextMidiControls: 208; TextDelay: 209; DataTs404Params: 210; DataDelayLine: 211; DataNewPlugin: 212; DataPluginParams: 213; DataChanParams: 215; DataCtrlRecChan: 216; DataPlaylistSelection: 217; DataEnvLfoParams: 218; DataBasicChanParams: 219; DataOldFilterParams: 220; DataChanPoly: 221; DataNoteEvents: 222; DataOldAutomationData: 223; DataPatternNotes: 224; DataInsertParams: 225; DataMIDIInfo: 226; DataAutomationChannels: 227; DataChannelTracking: 228; DataChanOfsLevels: 229; DataRemoteCtrlFormula: 230; DataChanGroupName: 231; DataRegBlackList: 232; DataPlayListItems: 233; DataAutomationData: 234; DataInsertRoutes: 235; DataInsertFlags: 236; DataSaveTimestamp: 237; DataNewPlaylistTrack: 238; DataPlaylistTrackName: 239; DataArrangementName: 241; }; export {};