Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;this is a tltle
- #Title The Legend of Zelda Title Theme
- ;this is the composer's name
- #Composer Koji Kondo
- ;this is the arranger's name
- #Arranger pedipanol
- ;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)
- #Option /v/c
- ;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
- #Filename .M2
- ;this is for instrument definitions that uses the DT2. if you don't use it, those instruments will sound screwed up.
- #DT2Flag on
- ;this determines the tempo
- #Tempo 90
- ;DF30
- A DF30 DS12 DR20
- ; FM instrument definitions
- ;The format is:
- ;@NUM AL FB
- ;AR DR SR RR SL TL KS ML DT (DT2) AM (4x)
- ;AL - Algorhythm
- ;FB - Feedback
- ;AR - Attack rate
- ;DR - Decay rate
- ;SR - Sustain rate
- ;RR - Release rate
- ;SL - Sustain level
- ;TL - Output level
- ;KS - Keyscale
- ;ML - Multiplier
- ;DT - Detune
- ;AM - Amplitude modulation
- ;DT2 (which is the OPM's second detune option) can be defined, but it'll be ignored for other soundchips using the DT2Flag command.
- ;if you put a = after the instrument number, AL and FB, you can define the instrument name
- ; AL FB
- @ 0 2 7 =brass
- ;AR DR SR RR SL TL KS ML DT DT2 AM
- 14 14 0 15 1 24 2 0 3 0 0
- 14 14 0 15 15 50 2 7 3 0 0
- 13 14 0 15 1 39 2 0 3 0 0
- 19 3 0 15 0 17 1 0 3 0 0
- ;The spacing doesn't matter, as long as you put the right amount of numbers.
- @ 1 0 4 =metalbass
- 31 7 7 15 2 20 3 6 6 0 0
- 31 6 6 15 1 55 3 5 6 0 0
- 31 9 6 15 1 15 2 0 6 0 0
- 31 6 8 15 15 0 2 1 6 0 0
- @ 2 4 5
- 27 6 11 4 10 35 0 12 7 0 0
- 30 7 1 6 15 0 0 4 0 0 0
- 27 6 11 4 10 35 0 12 0 0 0
- 30 7 1 6 15 0 0 4 3 0 0
- ;you can also put everything in one line as well, but that is discouraged if you wanna change the instrument settings later.
- @ 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
- ; Yay the song
- ; 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
- ; ABCDEF are the FM channels
- ; GHI are the SSG channels
- ; J is the PCM channel
- ; The compiler will differentiate between upper and lowercase, so keep that in mind.
- ; 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).
- ; l sets default note length
- ; o sets the octave
- ; V sets the volume (1-127)
- ; @ sets the instrument
- ; r is a rest
- ; same as in sheet music, a . will make the note/rest play an additional half of the set length,
- ; p sets the panning, 1 = right, 2 = left, 3 = center.
- ; D sets a fine detune, by default it'll detune upwards, but if you add a - before the number, it'll be downwards
- A l1 o4 V114 @3
- F l1 o4 V104 @3 r8. p1 D-2
- ; L makes the song loop from that point
- ; & will add another length to the note
- ; >< increases/decreases the octave
- ; 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
- AF L a+ &4f 4f 4a+4 g+8f+8g+..
- AF a+ &4f+4f+4a+4 a 8g 8a ..
- ; [] 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]
- AF [r1]12
- AF a+2f2 r4a+4a+8>c8d8d+8 f r4f4f6f+6g+6
- AF a+ r6r6a+6a+6g+6f+6 g+3f+6ff2
- AF d+4d+8f8f+f4d+4c+4c+8d+8fd+4c+4
- AF c4c8d8eg2f8r8<f8f8f8r8f8f8f8r8f8f8f4f4
- AF a+2f2r4a+4a+8>c8d8d+8fr4f4f6f+6g+6
- AF a+1.>c+2c4r4<af2
- ; : breaks the loop, on the last time it loops, it'll jump to the part right after the brackets
- AF [f+1.a+2a4r4f:f2]2d2
- AF d+1.f+2f4r4c+<a+2
- AF >c4c8d8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d+<g+>d+<g+>d+<g+
- C >c+rc+<f+>c+rc+<f+>c+rc+<f+>c+<f+>c+<f+>crc<f>crc<f>crc<f>c<f>c<f
- 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
- C >f+rf+<b>f+rf+<b>f+rf+<b>f+<b>f+<b>frf<a+>frf<a+>frf<a+>f<a+>f<a+
- C >erecerecerecececfrfcfrfcfrfcfcfc
- D l2 o4 V104 @2
- D L rfa+1rd+g+1
- D rc+f+1rcf1
- D [c+r]4
- D [ra+frr4a+4a+8>c8d8d+8fr]2
- D r2r2r2r2r4r8<a+8a+8>c8d8d+8f1
- D r2<f+8g+8a+8>c8c+r2r2c+6c+6d+f[r]16
- D r2r6r2r2r2r4r8<a+8a+8>c8d8d+8f1
- D [r1]20
- E l8 o3 V119 @1
- E L r1&1r1&1r1&1r1&1
- E [a+ra+a+]12[g+rg+g+]4
- E [f+rf+f+]4[frff]4
- E [a+ra+a+]4[g+rg+g+]4
- E [f+rf+f+]4>[c+rc+c+]4
- E <[brbb]4[a+ra+a+]4
- E >[crcc]4fr<ff[fr:ff]3aa+
- E [a+ra+a+]4[g+rg+g+]4
- E [f+rf+f+]4[frff]4
- E [e+ree]4[frff]4[e+ree]4[frff]4
- E [brbb]4 [a+ra+a+]4
- E >[crcc]4fr<ff[fr:ff]3<aa+
- ; P sets what sound the SSG channel will play, P1 = square wave, P2 = noise, P3 = both
- ; E sets the volume envelope [E AR , DR , SR , RR , SL ]
- G P2 w1 E31,26,24,20,18 l8 V120
- G Lr1&1r1&1r1&1r1&1
- G [grgg]104
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement