delta (256hz ticks) all values are bit-packed data (ie if bit7 is set, then this data is 7 bits longer with another length bit) (upto 28 bits) channel select (256 channels) source type (adpcm,pcm8,pcm16,psg) source 25-bit pnt 16-bit len 16-bit OR table entry (10-bit) volume 11-bit volume timer 16-bit period panning 7-bit panning envelope ADSR 8-bit attack 8-bit decay 8-bit sustain level 8-bit sustain rate 8-bit release rate DIRECT 11-bit volume cue 8-bit data length 8-bit tone length key-on 32 keyon bits (1/channel) key-off 32 keyoff bits (1/channel) apply channels: 0-7: first 8 hardware channels 8-15: psg-capable hardware channels 16-31: software channels special use: 1,3 used for reverb (left,right) 4,5 used for audio stream 6,7 used for software mixer ***************************************************************** stream format: [1 byte] : [delta] bits 0-7: 8-bit delta value (in 256hz [1 byte] : [selection] [channel] bits 0-4: channel selection bit5: