Skip to content

Instantly share code, notes, and snippets.

@mwicat
Created February 9, 2022 00:34
Show Gist options
  • Save mwicat/badfce2efcc9989e7318b2d6576ac454 to your computer and use it in GitHub Desktop.
Save mwicat/badfce2efcc9989e7318b2d6576ac454 to your computer and use it in GitHub Desktop.
Kaitai Struct format for VST 2.4 .fxp program files
meta:
id: vst_fxp
endian: be
seq:
- id: chunk_magic
type: s4
- id: byte_size
type: s4
- id: fx_magic
type: s4le
enum: program_types
- id: version
type: s4
- id: fx_id
type: s4
- id: fx_version
type: s4
- id: num_params
type: s4
- id: prg_name
size: 28
- id: content
type:
switch-on: fx_magic
cases:
'program_types::regular': regular_content
'program_types::opaque_chunk': opaque_content
types:
regular_content:
seq:
- id: params
type: f4
opaque_content:
seq:
- id: size
type: s4
- id: chunk
size: size
enums:
program_types:
# FxCk - Regular Program (fxp) identifier.
0x6b437846: regular
# FPCh - Program (fxp) identifier for opaque chunk data.
0x68435046: opaque_chunk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment