xref: /haiku/src/tests/kits/midi/synth_file_reader/SynthFileFormat.txt (revision bb24170e40e943e21fbe6160f67d0a2b29fd3b01)
1Synth File Format
2=================
3
4Currently (*.sy) only!
5
6'IREZ'  | version?[4] | no_of_chunks[4] | chunks[no_of_chungs]
7
8chunks:
9-------
10next[4] | tag[4]
11
12tags:
13-----
14
15'INST'
16'snd '
17'CACH'
18
19
20'INST'
21------
22'INST' | instr[4] | nameLen[1] | name[nameLen] | dataSize[4] | data[dataSize]
23| sndId[2] | ???[10] | size[2] | insts[size*8+21] | rest[dataSize-...] |
24
25
26insts[size*8+21]:
27noteStart[1] | noteEnd[1] | sndId[2] | ??[4] | repeats number of size times
28??[21]
29
30rest[dataSize]:
31
32ADSR | [1] | [4] | [4] |
33LINE | [4] | [4] |
34SUST | [4] | [4] |
35LAST | [4] |
36LPGF | [4] | [4] | [4] |
37SINE | [4] | [4] |
38LPFR |
39LPRE | [1] | [4] | [4] |
40PITC | [1] | [4] | [4] |
41LPAM | [1] | [4] | [4] |
42VOLU | [1] | [4] | [4] |
43SPAN | [1] | [4] | [4] |
44TRIA | [4] | [4] |
45SQU2 | [8] |
46SQUA | [8] |
47
48
49
50'snd '
51------
52'snd ' | sndId[4] | nameLen[1] | name[nameLen] | dataSize[4] | [28] |
53rate[2] | ?[10] | 255 | drumId | ...
54
55
56