const { readFileSync } = require('fs')
const { parse } = require('vst2-preset-parser')
const buffer = readFileSync('your-preset-file.fxp')
const result = parse(buffer) // result will have the following properties:
/**
* A Vst2 Patch or Bank.
* `.fxp` files will have a `.state64` string
* `.fxp` files will have one of: `.patchParams` or `.patchChunk`
* `.fxb` files will have one of: `.bankPatches` or `.bankChunk`
* @typedef {Object} Vst2Preset
* @property {string} fxMagic - one of: 'FxCk', 'FPCh', 'FxBk', 'FBCh'
* @property {number} version - format version (typically 1)
* @property {number} idUint - unique plugin id Number
* @property {number} idString - unique plugin id as a string
* @property {number} fxVersion -
* @property {number} count - number of parameters (for FxCk patches). Number of programs (for FxBk banks)
* @property {number[]} [patchParams] - all parameter values (for FxCk .fxp files)
* @property {Buffer} [patchChunk] - binary state (for FPCh .fxp files)
* @property {Vst2Preset[]} [bankPatches] - all patches in the bank (for FxBk .fxb files)
* @property {Buffer} [bankChunk] - binary state (for FBCh .fxb files)
* @property {string} [state64] - base64 encoded state (for all .fxp files)
*/
-
Notifications
You must be signed in to change notification settings - Fork 0
CharlesHolbrow/vst2-preset-parser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
vst2 .fxp and .fxb binary file parser for node.js
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published