Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Commands test mml
- * for mmlc v0.92
- */
- #title "Command test"
- #game " Λ Λ"
- #composer " (゚ω゚)"
- #dumper " [⊃旦⊂]"
- #comment "POP TERM EPIC"
- #length 0:06,1000
- // ~~~~ ~~~~
- // | +--- Fade time(ms)
- // +-------- Play time
- // swap < and >
- // default: > is up / < is down
- #swap<>
- // set l4 = 24ticks
- // default is l4 = 48 (Recommended value)
- #timebase 24
- // exchange left and right
- // default is (left)0,1, ... ,31,32, (center) 33,... ,62,63(right)
- #reversestereo
- // define music tone
- #tone 0, 2,0,0, 1, 15,7,7,0,20 // @0
- // This means
- // param1: brr num or brr name(e.g. "saw.brr") or noise(n0 ~ n31)
- // param2: pitch multiple nums
- // param3: transpose
- // param4: detune
- // param5: adsr or gain(1 = ADSR)
- // param6: AR
- // param7: DR
- // param8: SL
- // param9: SR
- // param10: RR
- // Tone is assigned sequentially from @0. @0,@1,@2, ...
- // KON[>>>>>>>>>>>>>>|*********]KOF
- // ~~~~~~~~~~~~~~ ~~~~~~~~~
- // | +-------- Release(Apply SL/RR)
- // +--------------------- Ringing(Apply AR/DR/SL/SR) , this time is specifyed by "q" command.
- /* define drum tone */
- #drum 0, 2,0,0, 1, 15,7,7,0,10, 1,10,32,49 //a
- // This means
- // param1: brr num or brr name or noise
- // param2: pitch multiple nums
- // param3: transpose
- // param4: detune
- // param5: adsr or gain(1 = ADSR)
- // param6: AR
- // param7: DR
- // param8: SL
- // param9: SR
- // param10: RR
- // param11: Gatetime
- // param12: Velocity
- // param13: Panpot
- // param14: Key
- // DrumNote is assigned sequentially from a. a,b,c, ... h,i,j
- /* define macro */
- #macro SAW @0
- #track 1 // track = 1 ~ 12
- /* <-- Comment --> */
- // Comment
- %A15 // AR change(0-15)
- %D7 // DR change(0-7)
- %L7 // SL change(0-7)
- %S0 // SR change(0-31)
- %R20 // RR change(0-31)
- %G0,0,127 // GAIN1 Change(gaintype, gainmode, gain)
- %G1,0,127 // GAIN2 Change(gaintype, gainmode, gain)
- %E48,4,96 // Echo parameter set(evol, edl, efb)
- %F127,0,0,0,0,0,0,0 // Echo-FIR parameter
- %e1 // Echo-On
- %e0 // Echo-Off
- %p1 // Portament-On
- %p0 // Portament-Off
- p16 // Panpot(0-63)
- p24,32 // Panpot-Fade(ticks, dest-pan)
- P20,30 // Panpot-Vibration(Freq, Depth)
- P0 // Panpot-Vibration-Off
- %r0,1 // Enable-Antiphase-Surround(left,right)
- V192 // Global-Volume(0-255)
- V24,128 // Global-Volume-Fade(ticks, dest-volume)
- v96 // Track-Volume(0-255)
- v48,160 // Track-Volume-Fade(ticks, dest-volume)
- %v0,12,40 // Tremolo(delay, freq, depth)
- %v0 // Tremolo-Off
- m24,16,24 // Vibrato(delay, freq, depth)
- m0 // Vibrato-Off
- %m1 // HW Pitch-Moduration-On
- %m0 // HW Pitch-Moduration-Off
- B0,18,12 // Pitchbend(delay, ticks, diff)
- E4,8,-12 // PitchEnvelope(delay, ticks, diff)
- E0 // PitchEnvelope-Off
- T2 // Transpose
- %T2 // Relative-Transpose
- %t1 // Compiler internal transpose
- %k1 // KeyOff-Disable
- %k0 // KeyOff-Enable
- %W30 // SpecialWav(BRR:0) update freq
- k16 // Velocity(1-16)
- q8 // Gatetime(1-8)
- t160 // Tempo(1~600? specify by bpm)
- t24,120 // Tempo-fade(ticks, dest-tempo)
- / // Loop-point
- o4 // Octave set
- > // Octave-up
- < // Octave-down
- @1 // Music-tone
- @@0 // Driver internal tone
- $(SAW) // Expand macro
- l16 // Set default length
- cdefgab // Note
- c+d+e+f+g+a+b+ // Note(Sharp)
- c#d#e#f#g#a#b# // Note(Sharp)
- c-d-e-f-g-a-b- // Note(Flat)
- ^ // Tie
- r // Rest
- %d1 // DrumPart-On
- abcdefghij // Drum-note
- %d0 // DrumPart-Off
- a=24 // Note(specify ticks)
- [abcd]2 // Loop
- *2 // Loop re-use
- [abc|d]2 e // Loop break if final loop (*It will expand to "abcdabce")
- (1)[abc]2 // Label loop
- (1)2 // Label loop re-use
- [abc [de|f]2 g|c ]3 // Nest loop (only 1 level)
- *3 // Nest loop re-use (*It will expand to "abc defde gc abc defde gc abc defde g")
- X0 // Command direct input
- ! // stop compile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement