home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 1: Collection A
/
17Bit_Collection_A.iso
/
files
/
505.dms
/
505.adf
/
DOCS
/
SmusChunk.Doc
< prev
next >
Wrap
Text File
|
1989-09-09
|
3KB
|
48 lines
For other budding programmers. Here's what I know about the IFF SMUS
format. Unfortunately Sonix uses a number of not-standard (NAUGHTY)
chunk-id's. If anybody knows more about them, please let me know!
Chunks used in IFF SMUS format. (That I know the contents of!)
Type | Bytes | Description | Contents
------+-------+-------------+----------------------------------------
ULONG | 4 | ChunkID | 'FORM'
ULONG | 4 | Chunksize | Length of the rest of the file
ULONG | 4 | IFFType | 'SMUS'
- - - + - - - + - - - - - - + - - - - - - - - - - - - - - - - - - - -
ULONG | 4 | ChunkID | 'SHDR'
ULONG | 4 | Chunksize | Size of chunkdata
UWORD | 2 | Tempo | Tempo, 128ths quarter note per minute
UBYTE | 1 | Volume | Volume 0 - 127
UBYTE | 1 | ctTrack | #tracks in score (with Sonix always 8)
- - - + - - - + - - - - - - + - - - - - - - - - - - - - - - - - - - -
ULONG | 4 | ChunkID | 'NAME'
ULONG | 4 | Chunksize | Size of chunkdata
CHAR[]| n | Title | Songtitle, n = length of Title string
- - - + - - - + - - - - - - + - - - - - - - - - - - - - - - - - - - -
ULONG | 4 | ChunkID | '(c) '
ULONG | 4 | Chunksize | Size of chunkdata
CHAR[]| n | Message | Copyright, n = length of Message string
- - - + - - - + - - - - - - + - - - - - - - - - - - - - - - - - - - -
ULONG | 4 | ChunkID | 'AUTH'
ULONG | 4 | Chunksize | Size of chunkdata
CHAR[]| n | Author | Name, n = length of Author string
- - - + - - - + - - - - - - + - - - - - - - - - - - - - - - - - - - -
ULONG | 4 | ChunkID | 'ANNO'
ULONG | 4 | Chunksize | Size of chunkdata
CHAR[]| n | Annotation | Author's text annotations, n = length
- - - + - - - + - - - - - - + - - - - - - - - - - - - - - - - - - - -
ULONG | 4 | ChunkID | 'INS1'
ULONG | 4 | Chunksize | Size of chunkdata
UBYTE | 1 | Register | The register number of the instrument
UBYTE | 1 | Type | 1 = MIDI instrument / 0 = normal
UBYTE | 1 | Channel | if type = 1, contains MIDI channnel #
UBYTE | 1 | Preset | if Type = 1, contains MIDI preset #
CHAR[]| n | Instr. Name | Instrument name, N = length of string
- - - + - - - + - - - - - - + - - - - - - - - - - - - - - - - - - - -
ULONG | 4 | ChunkID | 'TRAK'
ULONG | 4 | Chunksize | Size of chunkdata
UBYTE | 1 | sID | type of SEvent \ can occur more
UBYTE | 1 | sdata | sID dependent data / than once.
------+-------+-------------+----------------------------------------