SHARE
TWEET

Untitled

a guest Aug 22nd, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ch  0          1          2    vol   3
  2.   f#4 00 --- D#2 05 --- D#3 02 --- --- -- ---
  3.   --- -- --- --- -- --- D#4 02 --- F#4 03 ---
  4.   f#4 00 --- --- -- --- D#3 02 --- --- -- ---
  5.   --- -- --- --- -- --- D#4 02 032 --- -- ---
  6. bits
  7.   0-4 = channel
  8.     5 = instrument+note
  9.     6 = volume
  10.     7 = effect
  11.  
  12. "f#4 00 ---" -> %0010 0000, value_for_f#4, 0(note) -> 3 bytes
  13. "%0010 0000" means bit 5 is set -> instrument+note are coming (2 bytes to read for player)
  14.  
  15. row1 in total is:
  16. %0010 0000, value_for_f#4, 0, %0010 0001, value_for_d#2, 5, %0010 0010, value_for_d#3, 2, %0000 0000
  17. row2 is:
  18. %0010 0010, value_for_d#4, 2, %0010 0011, value_for_f#4, 3, %0000 0000
  19. row3 is:
  20. %0010 0000, value_for_f#4, 0, %0010 0001, value_for_d#2, 5, %0010 0010, value_for_d#3, 2, %0000 0000
  21. row4 is:
  22. %0110 0010, value_for_d#4, 2, volume32, %0000 0000
  23.  
  24. the example above is
  25. 32 bytes large (if I didnt miscount :)
  26.  
  27.  
  28. when control byte is %0000 0000 it means 'we are done with that row'
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top