diff clojure/com/aurellem/exp/music.clj @ 444:3ee628fea5c2

mapped most of music-playing RAM
author Robert McIntyre <rlm@mit.edu>
date Thu, 26 Apr 2012 08:14:03 -0500
parents afdc51232e4f
children ea5ed834be11
line wrap: on
line diff
     1.1 --- a/clojure/com/aurellem/exp/music.clj	Thu Apr 26 06:52:35 2012 -0500
     1.2 +++ b/clojure/com/aurellem/exp/music.clj	Thu Apr 26 08:14:03 2012 -0500
     1.3 @@ -98,7 +98,7 @@
     1.4  (def fight-gym-leader-song-simp
     1.5    [   
     1.6  
     1.7 -   (Integer/parseInt "00000111" 2) ;; channel-on/off
     1.8 +   (Integer/parseInt "00000100" 2) ;; channel-on/off
     1.9  
    1.10     0 ;; no-effect
    1.11  
    1.12 @@ -152,16 +152,26 @@
    1.13     
    1.14     0 0 0 0 0 0 0 0 0 0 0 0 0
    1.15  
    1.16 -   0 ;; 0xC0D6 (transient pitch channel 0)
    1.17 +   7 ;; 0xC0D6 (transient pitch channel 0)
    1.18  
    1.19 -   0 0 0 0 0 0 0
    1.20 +   5 4 0 4 4 3 0
    1.21  
    1.22 -   179
    1.23 -   195
    1.24 +   ;; volume
    1.25 +   ;; channel 0 volume (first 4 bits)
    1.26 +   (Integer/parseInt "11110000" 2) ;; 0xC0DE
    1.27 +   ;; channel 1 volume (first 4 bits)
    1.28 +   (Integer/parseInt "11000000" 2) ;; 0xC0DF
    1.29 +   ;; channel 2 volume (unknown syntax)
    1.30 +   (Integer/parseInt "00100000" 2) ;; 0xC0E0
    1.31     
    1.32 -   32
    1.33 -   0 180 196 32 0 3 0 0 104 1 0 65 176 0 8 8 224 255
    1.34 +   0 0 0 0 0 0 0 0
    1.35  
    1.36 +   104 ;; MASTER TEMPO  0xC0E9 
    1.37 +
    1.38 +   0 0 0 0 0
    1.39 +
    1.40 +
    1.41 +   8 ;; checksum? address? 
    1.42     ])
    1.43  
    1.44  (defn change-music