SHARE
TWEET

INSTR.DAT

a guest Jan 21st, 2019 12 in 23 days
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. INSTR.DAT data located at 0x80166000 in PSFLab (PSX address 0x009C0EE0)                
  2.     Each entry is 64 bytes                 
  3.     For our example, let's look at sample 69 (instr h53)                   
  4.     Should be located at h53 x 64 bytes = h14C0                
  5.     Data should be:                
  6.                        
  7.     Offset      0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F 
  8.     000014C0    10 50 06 00 20 61 06 00 00 0F 0F 7F 05 01 03 03
  9.     000014D0    02 17 00 00 5F 18 00 00 D2 19 00 00 5B 1B 00 00
  10.     000014E0    FC 1C 00 00 B5 1E 00 00 88 20 00 00 78 22 00 00
  11.     000014F0    85 24 00 00 B0 26 00 00 FE 28 00 00 6E 2B 00 00
  12.                        
  13.     000014C0    Start location (offset) of the sample. h065010  - h1000 = h064010              
  14.     000014C4    Sample loop start offset (decrement h1000) = h65120            
  15.     000014C8    Envelope 1. 14C8 is Attack rate (h00-7F). Values under 44 are usable. 14C9 is Att2 (hx0-xF), 14CA is Att3 (hx0-xF). 14CB is initial sample Decay rate (h00-7F)             
  16.     000014CC    Envelope 2. 14CC is Release rate, usable range 00-14. 14CD is Rel2, 14CE is Rel3               
  17.     000014D0    Tuning table? Seems complicated, hopefully isn't in practice.              
  18.     000014D4    More Tuning            
  19.     000014D8    More Tuning            
  20.     ↓ ↓            
  21.     000014FC    More Tuning. Ends here, total of 12 words for 12 notes (2 byte sets)               
  22.                        
  23.         Space left for 35 instrument definitions in the INSTR.DAT file!            
  24.                
  25.        
  26. INSTR.ALL data at 0x800F0000 (PSX address unknown)                 
  27.     0x0000  Unknown            
  28.     0x0004  File size, subtract hF bytes from absolute size            
  29.         Probably the length of the sample in ADPCM blocks. Full sample file length in our example: h30D0 = 21868. Actual sound data should be 21840 samples            
  30.         Could also be some parameters for the sample               
  31.                        
  32.         Actual sample data starts 16 bytes after specified offset for each sample              
  33.         Each 16 bytes correspond to 28 uncompressed samples            
  34.         Sample loop point can be calculated by ( [loop start offset] - [sample offset] - h10 ) * 1,75              
  35.                        
  36.         After conversion, the looping section should be from 7617 to 21840 in our example instrument (in samples)              
  37.                        
  38.                        
  39. INSTR2.ALL data located at 0x801680000 in PSFLab                   
  40.         When loaded for Last Battle, actually seems to overwrite samples in the memory starting from “Tom-tom 1” at 0x38560, ending to “Koto” at 0x75A3F               
  41.         Theoretically the last 700 samples of “Koto” could be heard at the end of “Lasbos6” sample             
  42.         h1560 bytes free for additional sample data in INSTR2.ALL              
  43. INSTR2.DAT data located at 0x801A60000 in PSFLab                   
  44.         When loaded for Last Battle, seems to overwrite instrument definition data starting from “Tom-tom 1” at 0x0D40, ending to “Solo Violin” at 0x0EBF
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top