WAV

Reference

0000000: 5249 4646 GGGG GGGG 5741 5645 666d 7420  RIFF....WAVEfmt
0000010: HHHH HHHH IIII JJJJ KKKK KKKK LLLL MMMM  ........D.......
0000020: MMMM NNNN 6461 7461 MMMM MMMM            ....data....
                                                                                                                                                      
GGGG = chksize
HH = cksize = 16 # printf "%x\n" 16    #10
I : format                                                                                                                                            
J : chan                                                                                                                                              
K : rate                                                                                                                                              
L : avg                                                                                                                                               
M : align
N : bits pers
M : size

EXT / PADDING / KAOSSILATOR

file KO2D00_1.WAV
KO2D00_1.WAV: RIFF (little-endian) data, WAVE audio, Microsoft PCM, 16 bit, stereo 48000 Hz
mediainfo KO2D00_1.WAV
General
Complete name                            : KO2D00_1.WAV
Format                                   : Wave
File size                                : 375 KiB
Duration                                 : 2s 0ms
Overall bit rate mode                    : Constant
Overall bit rate                         : 1 536 Kbps

Audio
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : 1
Duration                                 : 2s 0ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 375 KiB (100%)

xxd KO2D00_1.WAV  | head
0000000: 5249 4646 54dc 0500 5741 5645 666d 7420  RIFFT...WAVEfmt 
0000010: 1000 0000 0100 0200 80bb 0000 00ee 0200  ................
0000020: 0400 1000 6461 7461 00dc 0500 98e7 f5e5  ....data........
0000030: a3e7 9ee5 d7e7 7de5 7fe9 5ae7 dce9 ade7  ......}...Z.....
0000040: 97e9 63e7 60e7 64e5 87e6 86e4 83e7 70e5  ..c.`.d.......p.
0000050: 28e9 c5e6 2be9 0ae7 7fe9 e6e7 e2e8 17e7  (...+...........
0000060: 8ae4 35e2 b2e4 3ee2 58e7 cee4 37e8 b7e5  ..5...>.X...7...
0000070: d5e7 97e5 25e8 1fe6 afe7 9ae5 4ce8 99e6  ....%.......L...
0000080: d1e8 54e7 e3e7 d9e5 c5e5 f0e2 a8e4 9fe1  ..T.............
0000090: 7be5 f1e2 b5e7 b5e5 b1e7 8ae5 a0e6 79e4  {.............y.

xxd KO2D00_1.WAV | tail
005dbc0: ebea e3e8 7ded 02ec f9ec deeb 92e9 2fe8  ....}........./.
005dbd0: a0ea c7e8 e4eb c0e9 a0eb 91e9 d2eb f3e9  ................
005dbe0: 84ea 9ee8 77e9 7ee7 ecea 2ee9 0beb 5ee9  ....w.~.......^.
005dbf0: 69e8 80e6 20e7 18e5 2dea 97e8 99ea 27e9  i... ...-.....'.
005dc00: 7be9 0ee8 40e9 43e7 38e8 f3e5 9fe8 a8e6  {...@.C.8.......
005dc10: e5ea 0de9 07eb 29e9 8aeb 91e9 5ae9 12e7  ......).....Z...
005dc20: 8be8 97e6 cbe8 4be7 15e8 5ee6 6b6f 7267  ......K...^.korg
005dc30: 2800 0000 6b6f 6c70 2000 0000 0077 0100  (...kolp ....w..
005dc40: e02e 0101 0100 0100 0010 3c02 e02e 583c  ..........<...X<
005dc50: 0200 0000 0032 3200 0200 0000            .....22.....


GGGGG=54dc0500

384092 KO2D00_1.WAV

printf "%d\n" 0x54dc0500
1423705344

printf "%d\n" 0x0005dc54
384084

printf "%d" 0x0005dc00   # MMMM
384000

dd if=$file bs=1 skip=44 | dd bs=1 skip=384000|xxd
0000000: 6b6f 7267 2800 0000 6b6f 6c70 2000 0000  korg(...kolp ...
0000010: 0077 0100 e02e 0101 0100 0100 0010 3c02  .w............<.
0000020: e02e 583c 0200 0000 0032 3200 0200 0000  ..X<.....22.....


wine ~/.wine/drive_c/Program\ Files/KORG/KAOSSILATOR\ PRO/KaossilatorProEditor.exe 

# Phrase Play Length : [L4] 4/1
# Phrase Play Level : 127 (0x7f?)
# Original BMP : 120 (0x78?)


After comparing with other files this header pattern seems fixed :

0000000: 6b6f 7267 2800 0000 6b6f 6c70 2000 0000  korg(...kolp ...

Comparing one 2sec (4b) and some 4secs (8b) give those diffs :

00ee 0200 e02e 0101 0200 0200 0010 3c0f e02e 443c 0f00 0000 0032 3200 0200 0000 

0077 0100 e02e 0101 0100 0100 0010 3c02 e02e 583c 0200 0000 0032 3200 0200 0000  
00ee 0200 e02e 0101 0200 0200 0010 3c1c e02e 6d3c 1c00 0000 0032 3200 0200 0000   

MORE

MORE

sound.txt · Last modified: 2014/09/04 22:10 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki