Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
ff3:ff3us:music:mmlcommands [2018/02/23 19:43] madsiur |
ff3:ff3us:music:mmlcommands [2018/02/25 17:48] madsiur [Command] |
===== MML Commands ===== | ====== MML Commands ====== |
**Work in progress** | |
| ===== Command Chart ===== |
| |
| **Command** | **Description** | **Example** | **FF6 Command** | | | **Command** | **Description** | **Example** | **FF6 Command** | |
| a,b,c,d,e,f,g | Note | d1, g32 | 00-B5 | | | a,b,c,d,e,f,g | [[ff3:ff3us:music:mmlcommands#notes|Note]] | d, d32 | 00-B5 | |
| 1,2,4,8,16,32,64 | 1/n note | a8, c16 | 0-B5 | | | 1,2,4,8,16,32,64 | [[ff3:ff3us:music:mmlcommands#notes|1/n Note]] | a8, a16, a32 | 00-B5 | |
| + | Sharp Note | a+8 | | | | + | [[ff3:ff3us:music:mmlcommands#notes|Sharp Note]] | a+, a+8 | | |
| - | Flat Note | a-8 | | | | - | [[ff3:ff3us:music:mmlcommands#notes|Flat Note]] | a-, a-8 | | |
| @xx | Set Channel Instrument to xx | @16, @0x10 | DC | | | @xx | [[ff3:ff3us:music:mmlcommands#instrument|Set Channel Instrument]] to xx | @16, @0x10 | DC | |
| $ | Jump Command, the Channel will restart there when hitting ";" | | F6 xxxx | | | $ | [[ff3:ff3us:music:mmlcommands#jump|Jump]] to $, the Channel will restart there when hitting ";" | | F6 xxxx | |
| oxx | Set Octave to xx | o5 | D6 xx | | | oxx | [[ff3:ff3us:music:mmlcommands#octave|Set Octave]] to xx | o5 | D6 xx | |
| %xx | Set Song Volume to xx | | F4 xx | | | %xx | [[ff3:ff3us:music:mmlcommands#volume|Set Song Volume]] to xx | | F4 xx | |
| %bxx,yy | Set Echo Feedback to yy over xx frames | | F7 xx yy | | | %bxx,yy | [[ff3:ff3us:music:mmlcommands#echo feedback|Set Echo Feedback]] to yy over xx frames | | F7 xx yy | |
| %cxx | Set Noise Clock to xx | | CF xx | | | %cxx | [[ff3:ff3us:music:mmlcommands#noise clock|Set Noise Clock]] to xx | | CF xx | |
| %fxx,yy | Set Filter | | F8 xx yy | | | %fxx,yy | [[ff3:ff3us:music:mmlcommands#filter|Set Filter]] | | F8 xx yy | |
| %kxx | Set Transpose to xx | | D9 xx | | | %kxx | [[ff3:ff3us:music:mmlcommands#transpose|Set Transpose]] to xx | | D9 xx | |
| %vxx | Set Song Echo Volume to xx | %v28 | F2 xx | | | %vxx | [[ff3:ff3us:music:mmlcommands#echo|Set Song Echo Volume]] to xx | %v28 | F2 xx | |
| %d1 | Enable Drum Roll | | E6 | | | %d1 | [[ff3:ff3us:music:mmlcommands#drum roll|Enable Drum Roll]] | | E6 | |
| %d0 | Disable Drum Roll | | E7 | | | %d0 | [[ff3:ff3us:music:mmlcommands#drum roll|Disable Drum Roll]] | | E7 | |
| %e1 | Enable Echo | | D4 | | | %e1 | [[ff3:ff3us:music:mmlcommands#echo|Enable Echo]] | | D4 | |
| %e0 | Disable Echo | | D5 | | | %e0 | [[ff3:ff3us:music:mmlcommands#echo|Disable Echo]] | | D5 | |
| %p1 | Enable Pitch Modulation | | D2 | | | %p1 | [[ff3:ff3us:music:mmlcommands#pitch modulation|Enable Pitch Modulation]] | | D2 | |
| %p0 | Disable Pitch Modulation | | D3 | | | %p0 | [[ff3:ff3us:music:mmlcommands#pitch modulation|Disable Pitch Modulation]] | | D3 | |
| kxx | Add xx to Transpose | | DA xx | | | kxx | Add xx to [[ff3:ff3us:music:mmlcommands#transpose|Transpose]] | | DA xx | |
| m | Disable Vibrato | | CA | | | m | Disable [[ff3:ff3us:music:mmlcommands#vibrato|Vibrato]] | | CA | |
| mxx,yy | Change Pitch to yy with Envelope Duration xx | | C8 xx yy | | | mxx,yy | [[ff3:ff3us:music:mmlcommands#pitch|Change Pitch]] to yy with [[ff3:ff3us:music:mmlcommands#envelope|Envelope]] Duration xx | | C8 xx yy | |
| mxx,yy,zz | Enable Vibrato with delay of xx, cycle duration of yy and amplitude of zz | | C9 xx yy zz | | | mxx,yy,zz | Enable [[ff3:ff3us:music:mmlcommands#vibrato|vibrato]] with [[ff3:ff3us:music:mmlcommands#delay|Delay]] of xx, [[ff3:ff3us:music:mmlcommands#cycle duration|Cycle Duration]] of yy and amplitude of zz | | C9 xx yy zz | |
| p | Disable pan sweep | | CE | | | p | Disable [[ff3:ff3us:music:mmlcommands#pan sweep|pan sweep]] | | CE | |
| pxx | Set Channel Pan to xx | | C6 xx | | | pxx | [[ff3:ff3us:music:mmlcommands#pan sweep|Set Channel Pan]] to xx | | C6 xx | |
| pxx,yy | Set Channel Pan to xx with Envelope yy | | C7 xx yy | | | pxx,yy | [[ff3:ff3us:music:mmlcommands#pan sweep|Set Channel Pan]] to xx with [[ff3:ff3us:music:mmlcommands#envelope|Envelope]] yy | | C7 xx yy | |
| pxx,yy,zz | Enable Pansweep with delay of yy and cycle duration of zz | | CD yy zz | | | pxx,yy,zz | [[ff3:ff3us:music:mmlcommands#pan sweep|Enable Pan Sweep]] with delay of yy and [[ff3:ff3us:music:mmlcommands#cycle duration|Cycle Duration]] of zz | | CD yy zz | |
| v | Disable tremolo | | CC | | | v | [[ff3:ff3us:music:mmlcommands#tremolo|Disable Tremolo]] | | CC | |
| vxx | Set channel volume to xx | v127, v0x7F | C4 xx | | | vxx | [[ff3:ff3us:music:mmlcommands#volume|Set Channel Volume]] to xx | v127, v0x7F | C4 xx | |
| vxx,yy | Set channel volume to yy with an envelope of xx | | C5 xx yy | | | vxx,yy | [[ff3:ff3us:music:mmlcommands#volume|Set Channel Volume]] to yy with an [[ff3:ff3us:music:mmlcommands#envelope|Envelope]] of xx | | C5 xx yy | |
| vxx,yy,zz | Enable Tremolo with a delay of xx, cycle duration of yy and amplitude of zz | | CB xx yy zz | | | vxx,yy,zz | [[ff3:ff3us:music:mmlcommands#tremolo|Enable Tremolo]] with a [[ff3:ff3us:music:mmlcommands#delay|Delay]] of xx, [[ff3:ff3us:music:mmlcommands#cycle duration|Cycle Duration]] of yy and [[ff3:ff3us:music:mmlcommands#amplitude|Amplitude]] of zz | | CB xx yy zz | |
| r | Rest. The length of the rest is specified in the same way as note length | r8 | B6-C3 | | | r | [[ff3:ff3us:music:mmlcommands#rest|Rest]]. The length of the rest is specified in the same way as note length | r8 | B6-C3 | |
| txx | Set Tempo to xx bpm | t30 | F0 xx | | | txx | [[ff3:ff3us:music:mmlcommands#tempo|Set Tempo]] to xx bpm | t30 | F0 xx | |
| > | Increment Octave | | D7 | | | > | [[ff3:ff3us:music:mmlcommands#octave|Increment Octave]] | | D7 | |
| < | Decrement Octave | | D8 | | | < | [[ff3:ff3us:music:mmlcommands#octave|Decrement Octave]] | | D8 | |
| l | Apply length to a series of notes | l8 gab | | | | l | Apply length to a series of [[ff3:ff3us:music:mmlcommands#notes|notes]] | l8 gab | | |
| ; | End of channel | | EB | | | ; | End of [[ff3:ff3us:music:mmlcommands#channel|channel]] | | EB | |
| [xx | Loop start. Loop xx times | [8a1] | E2 xx | | | [xx | [[ff3:ff3us:music:mmlcommands#loop|Loop]] start. Loop xx times | [8a1] | E2 xx | |
| ] | Loop end | [8a1] | E3 | | | ] | [[ff3:ff3us:music:mmlcommands#loop|Loop]] end | [8a1] | E3 | |
| \^ | Sustained note or rest | d1\^8\^ | | | | <nowiki>^</nowiki> | Sustained [[ff3:ff3us:music:mmlcommands#note|note]] or [[ff3:ff3us:music:mmlcommands#rest|rest]] | d1<nowiki>^8</nowiki> | | |
| . | Sustain a note, as an example d1. equals d1\^2, d1.. equals d1\^2\^4, etc. | d1.. | | | | . | [[ff3:ff3us:music:mmlcommands#note|Sustain a note]], as an example d1. equals d1<nowiki>^</nowiki>2, d1.. equals d1<nowiki>^2^4</nowiki>, etc. | d1.. | | |
| , | Command argument separator (for 2 and more arguments) | | | | | , | [[ff3:ff3us:music:mmlcommands#argument|Command Argument]] separator (for 2 and more arguments) | | | |
| |
| |
| ===== Details ===== |
| |
| ==== Amplitude ==== |
| |
| ==== Channel ==== |
| |
| ==== Command ==== |
| |
| The things this page is about dummy! |
| |
| ==== Command Argument ==== |
| |
| ==== Cycle Duration ==== |
| |
| ==== Delay ==== |
| |
| ==== Drum Roll ==== |
| |
| ==== Envelope ==== |
| |
| ==== Echo ==== |
| |
| ==== Echo Feedback ==== |
| |
| ==== Filter ==== |
| |
| ==== Instrument ==== |
| |
| ==== Jump ==== |
| |
| ==== Loop ==== |
| |
| ==== Noise Clock ==== |
| |
| ==== Note ==== |
| |
| ==== Octave ==== |
| |
| ==== Pan Sweep ==== |
| |
| ==== Pitch ==== |
| |
| ==== Pitch Modulation ==== |
| |
| ==== Rest ==== |
| |
| ==== Tempo ==== |
| |
| ==== Transpose ==== |
| |
| ==== Tremolo ==== |
| |
| ==== Vibrato ==== |
| |
| ==== Volume ==== |