Files
haiku-beta6/src/tests/kits/midi/synth_file_reader/SynthFileFormat.txt
T
Michael Pfeiffer bc96256164 Minor changes.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@654 a95241bf-73f2-0310-859d-f6bbb57e9c96
2002-08-08 16:21:00 +00:00

56 lines
907 B
Plaintext

Synth File Format
=================
Currently (*.sy) only!
'IREZ' | version?[4] | no_of_chunks[4] | chunks[no_of_chungs]
chunks:
-------
next[4] | tag[4]
tags:
-----
'INST'
'snd '
'CACH'
'INST'
------
'INST' | instr[4] | nameLen[1] | name[nameLen] | dataSize[4] | data[dataSize]
| sndId[2] | ???[10] | size[2] | insts[size*8+21] | rest[dataSize-...] |
insts[size*8+21]:
noteStart[1] | noteEnd[1] | sndId[2] | ??[4] | repeats number of size times
??[21]
rest[dataSize]:
ADSR | [1] | [4] | [4] |
LINE | [4] | [4] |
SUST | [4] | [4] |
LAST | [4] |
LPGF | [4] | [4] | [4] |
SINE | [4] | [4] |
LPFR |
LPRE | [1] | [4] | [4] |
PITC | [1] | [4] | [4] |
LPAM | [1] | [4] | [4] |
VOLU | [1] | [4] | [4] |
SPAN | [1] | [4] | [4] |
TRIA | [4] | [4] |
SQU2 | [8] |
SQUA | [8] |
'snd '
------
'snd ' | sndId[4] | nameLen[1] | name[nameLen] | dataSize[4] | [28] |
rate[2] | ?[10] | 255 | drumId | ...