Skip to content

Instantly share code, notes, and snippets.

@jpcima
Created March 21, 2021 18:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpcima/09328280f6832b61892e416d261073e5 to your computer and use it in GitHub Desktop.
Save jpcima/09328280f6832b61892e416d261073e5 to your computer and use it in GitHub Desktop.
exs.txt
EXS file
========
offset type description
----------------------------------------------
0 Header chunk See 'EXS header chunk'
[next] Data chunks Sequence of chunks of any kind except header
EXS header chunk
================
offset type description
----------------------------------------------
0 u32 signature $00000101 in little-endian, or reverse
4 u32 size of chunk minus 84 bytes
EXS zone chunk
================
offset type description
----------------------------------------------
0 u32 signature $01000101 in little-endian, or reverse
4 u32 size of chunk minus 84 bytes
84 u8 flags (or combination: 1=pitch track, 2=one shot)
85 u8 root note
86 s8 fine tune
87 s8 pan
88 s8 volume adjust
90 u8 start note
91 u8 end note
93 u8 minimum velocity
94 u8 maximum velocity
96 s32 sample start
100 s32 sample end
104 s32 loop start
108 s32 loop end
117 u8 loop
172 s32 group (or -1)
EXS group chunk
================
offset type description
----------------------------------------------
0 u32 signature $02000101 in little-endian, or reverse
4 u32 size of chunk minus 84 bytes
86 u8 polyphony
157 u8 trigger (1=trigger on release)
158 u8 output
164 s32 sequence
EXS sample chunk
================
offset type description
----------------------------------------------
0 u32 signature $03000101 in little-endian, or reverse
4 u32 size of chunk minus 84 bytes
88 s32 length
92 s32 rate
96 u8 bit depth
EXS param chunk
================
offset type description
----------------------------------------------
0 u32 signature $04000101 in little-endian, or reverse
4 u32 size of chunk minus 84 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment