Advertisement
pedipanol

Zelda 1 Reference MML

Aug 1st, 2018
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.08 KB | None | 0 0
  1. ;this is a tltle
  2. #Title The Legend of Zelda Title Theme
  3. ;this is the composer's name
  4. #Composer Koji Kondo
  5. ;this is the arranger's name
  6. #Arranger pedipanol
  7. ;these are the options for the compiler. /v makes it load the instruments from this MML file instead of a separate one and /c makes it calculate the length of the song in bytes (really useful)
  8. #Option /v/c
  9. ;this change the compiled file's extension, makes no actual difference, but .M2 is prefered for OPNA and .M is prefered for OPN. if you don't specify this, it'l output a M file automatically
  10. #Filename .M2
  11. ;this is for instrument definitions that uses the DT2. if you don't use it, those instruments will sound screwed up.
  12. #DT2Flag on
  13. ;this determines the tempo
  14. #Tempo 90
  15.  
  16. ;DF30
  17. A DF30 DS12 DR20
  18.  
  19. ; FM instrument definitions
  20. ;The format is:
  21. ;@NUM AL FB
  22. ;AR DR SR RR SL TL KS ML DT (DT2) AM (4x)
  23. ;AL - Algorhythm
  24. ;FB - Feedback
  25. ;AR - Attack rate
  26. ;DR - Decay rate
  27. ;SR - Sustain rate
  28. ;RR - Release rate
  29. ;SL - Sustain level
  30. ;TL - Output level
  31. ;KS - Keyscale
  32. ;ML - Multiplier
  33. ;DT - Detune
  34. ;AM - Amplitude modulation
  35. ;DT2 (which is the OPM's second detune option) can be defined, but it'll be ignored for other soundchips using the DT2Flag command.
  36. ;if you put a = after the instrument number, AL and FB, you can define the instrument name
  37.  
  38. ; AL FB
  39. @ 0 2 7 =brass
  40. ;AR DR SR RR SL TL KS ML DT DT2 AM
  41. 14 14 0 15 1 24 2 0 3 0 0
  42. 14 14 0 15 15 50 2 7 3 0 0
  43. 13 14 0 15 1 39 2 0 3 0 0
  44. 19 3 0 15 0 17 1 0 3 0 0
  45.  
  46. ;The spacing doesn't matter, as long as you put the right amount of numbers.
  47.  
  48. @ 1 0 4 =metalbass
  49. 31 7 7 15 2 20 3 6 6 0 0
  50. 31 6 6 15 1 55 3 5 6 0 0
  51. 31 9 6 15 1 15 2 0 6 0 0
  52. 31 6 8 15 15 0 2 1 6 0 0
  53.  
  54. @ 2 4 5
  55. 27 6 11 4 10 35 0 12 7 0 0
  56. 30 7 1 6 15 0 0 4 0 0 0
  57. 27 6 11 4 10 35 0 12 0 0 0
  58. 30 7 1 6 15 0 0 4 3 0 0
  59.  
  60. ;you can also put everything in one line as well, but that is discouraged if you wanna change the instrument settings later.
  61.  
  62. @ 3 4 7 25 0 0 2 0 30 3 4 3 0 0 23 2 0 7 3 0 0 4 3 0 0 25 0 0 2 0 31 3 2 7 0 0 22 2 0 7 3 0 0 4 7 0 0
  63.  
  64. ; Yay the song
  65.  
  66. ; The channel that will be playing what's in the current line can only be specified at the start. You can play a line in 2 channels if you specify their 2 letters
  67. ; ABCDEF are the FM channels
  68. ; GHI are the SSG channels
  69. ; J is the PCM channel
  70.  
  71. ; The compiler will differentiate between upper and lowercase, so keep that in mind.
  72.  
  73. ; cdefgab are the notes, + adds a semitone. if you don't specify a length number after it, it'll use the default note length (if that one is also not specified it'll play a quarter note).
  74. ; l sets default note length
  75. ; o sets the octave
  76. ; V sets the volume (1-127)
  77. ; @ sets the instrument
  78. ; r is a rest
  79. ; same as in sheet music, a . will make the note/rest play an additional half of the set length,
  80. ; p sets the panning, 1 = right, 2 = left, 3 = center.
  81. ; D sets a fine detune, by default it'll detune upwards, but if you add a - before the number, it'll be downwards
  82. A l1 o4 V114 @3
  83. F l1 o4 V104 @3 r8. p1 D-2
  84.  
  85. ; L makes the song loop from that point
  86. ; & will add another length to the note
  87. ; >< increases/decreases the octave
  88. ; you can use space as you want, it's encouraging since it aids visually to read the MML, but it doesn't matter for the compiler
  89. AF L a+ &4f 4f 4a+4 g+8f+8g+..
  90. AF a+ &4f+4f+4a+4 a 8g 8a ..
  91.  
  92. ; [] makes the part between the brackets loop, adding a number right after it sets how many times it will loop [if no number is added, it'll loop infinitely]
  93. AF [r1]12
  94. AF a+2f2 r4a+4a+8>c8d8d+8 f r4f4f6f+6g+6
  95. AF a+ r6r6a+6a+6g+6f+6 g+3f+6ff2
  96. AF d+4d+8f8f+f4d+4c+4c+8d+8fd+4c+4
  97. AF c4c8d8eg2f8r8<f8f8f8r8f8f8f8r8f8f8f4f4
  98. AF a+2f2r4a+4a+8>c8d8d+8fr4f4f6f+6g+6
  99. AF a+1.>c+2c4r4<af2
  100.  
  101. ; : breaks the loop, on the last time it loops, it'll jump to the part right after the brackets
  102. AF [f+1.a+2a4r4f:f2]2d2
  103. AF d+1.f+2f4r4c+<a+2
  104. AF >c4c8d8eg2f8r8<f8f8f8r8f8f8f8r8f8f8f4f4
  105.  
  106. B l1 o4 V114 @3
  107. B L d1&4 d4d4d4c8<b+8>c1..
  108. B c+1&4 <a+4a+4>c+4c8<b+8>c1..
  109. B r1&1r1&1
  110. B [a+2f2r4a+4a+8>c8d8d+8fr]2
  111. B <d2d6d6c6d4r8d8d8d+8f8g8g+r2g+6a+6>c6
  112. B <f+4r8f+8f+8g+8a+8>c8c+4r8c+8c+6c6<a+6>c+4r<8a+8g+6g+6f+6g+3g+6g+6f+6g+6
  113. B f+4f+8f8f+4f+8g+8a+2g+4f+4f4f8d+8f4f8f+8g+2f+4f4e2e4e8f8g4g8a8a+4>c4<<a4a8a8g+4g+8g+8g4g8g8f+4f+8f+8
  114. B >d2d6d6c6d4r8d8d8d+8f8g8g+r2g+6a+6>c6
  115. B c+1.e2d+2c<a2
  116. B <[<e12r12a+12r12>c+12r12e12r12a+12r12>c+12r12e4r2r4f4r4<f12r12f12r12f12r12f4r2r4]2
  117. B >f+1.b2a+4r4fc+2
  118. B e2e4e8f8g4g8a8a+4>c4<<a4a8a8g+4g+8g+8g4g8g8f+4f+8f+8
  119.  
  120. C l2 o1 V114 @3
  121. C L a+1&1g+1&1
  122. C f+1&1f1&1
  123. C l8 [>frf<a+>frf<a+>frf<a+>f<a+>f<a+]3
  124. C >d+rd+<g+>d+rd+<g+>d+rd+<g+>d+<g+>d+<g+
  125. C >c+rc+<f+>c+rc+<f+>c+rc+<f+>c+<f+>c+<f+>crc<f>crc<f>crc<f>c<f>c<f
  126. C >frf<a+>frf<a+>frf<a+>f<a+>f<a+>d+rd+<g+>d+rd+<g+>d+rd+<g+>d+<g+>d+<g+
  127. C >c+rc+<f+>c+rc+<f+>c+rc+<f+>c+<f+>c<f+>g+rg+c+g+rg+c+g+rg+c+g+c+g+c+
  128. C f+rf+<b>f+rf+<b>f+rf+<b>f+<b>f+<b>frf<a+>frf<a+>frf<a+>f<a+>f<a+
  129. C >erecerecerecececfrfcfrfcfrfcfcfc
  130. C frf<a+>frf<a+>frf<a+>f<a+>f<a+>d+rd+<g+>d+rd+<g+>d+rd+<g+>d+<g+>d+<g+
  131. C >c+rc+<f+>c+rc+<f+>c+rc+<f+>c+<f+>c+<f+>crc<f>crc<f>crc<f>c<f>c<f
  132. C [>c+rc+<e>c+rc+<e>c+rc+<e>c+<e>c+<e>crc<f>crc<f>crc<f>c<f>c<f]2
  133. C >f+rf+<b>f+rf+<b>f+rf+<b>f+<b>f+<b>frf<a+>frf<a+>frf<a+>f<a+>f<a+
  134. C >erecerecerecececfrfcfrfcfrfcfcfc
  135.  
  136. D l2 o4 V104 @2
  137. D L rfa+1rd+g+1
  138. D rc+f+1rcf1
  139. D [c+r]4
  140. D [ra+frr4a+4a+8>c8d8d+8fr]2
  141. D r2r2r2r2r4r8<a+8a+8>c8d8d+8f1
  142. D r2<f+8g+8a+8>c8c+r2r2c+6c+6d+f[r]16
  143. D r2r6r2r2r2r4r8<a+8a+8>c8d8d+8f1
  144. D [r1]20
  145.  
  146. E l8 o3 V119 @1
  147. E L r1&1r1&1r1&1r1&1
  148. E [a+ra+a+]12[g+rg+g+]4
  149. E [f+rf+f+]4[frff]4
  150. E [a+ra+a+]4[g+rg+g+]4
  151. E [f+rf+f+]4>[c+rc+c+]4
  152. E <[brbb]4[a+ra+a+]4
  153. E >[crcc]4fr<ff[fr:ff]3aa+
  154. E [a+ra+a+]4[g+rg+g+]4
  155. E [f+rf+f+]4[frff]4
  156. E [e+ree]4[frff]4[e+ree]4[frff]4
  157. E [brbb]4 [a+ra+a+]4
  158. E >[crcc]4fr<ff[fr:ff]3<aa+
  159.  
  160. ; P sets what sound the SSG channel will play, P1 = square wave, P2 = noise, P3 = both
  161. ; E sets the volume envelope [E AR , DR , SR , RR , SL ]
  162. G P2 w1 E31,26,24,20,18 l8 V120
  163. G Lr1&1r1&1r1&1r1&1
  164. G [grgg]104
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement