Differences
This shows you the differences between two versions of the page.
ff3:ff3us:doc:asm:codes:music_codes [2016/04/03 06:28] m06 created |
ff3:ff3us:doc:asm:codes:music_codes [2019/02/12 12:52] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Music Commands ===== | ||
- | ==== Notes ==== | ||
- | < | ||
- | 00-0D Play note, C | ||
- | 0E-1B Play note, C# | ||
- | 1C-29 Play note, D | ||
- | 2A-37 Play note, D# | ||
- | 38-45 Play note, E | ||
- | 46-53 Play note, F | ||
- | 54-61 Play note, F# | ||
- | 62-6F Play note, G | ||
- | 70-7D Play note, G# | ||
- | 7E-8B Play note, A | ||
- | 8C-99 Play note, A# | ||
- | 9A-A7 Play note, B | ||
- | A8-B5 | ||
- | B6-C3 Rest | ||
- | </ | ||
- | ==== Other ==== | ||
- | < | ||
- | C4 xx Set volume of channel to xx (00-7F), higher values == greater volume. | ||
- | C5 ss xx Fade volume to xx at speed ss | ||
- | C6 xx Pan song left-> | ||
- | C7 ss xx Pan slide | ||
- | C8 tt pp | ||
- | C9 ss tt dd Vibrato: ss == speed, tt == time until vibrato, dd == depth | ||
- | CA | ||
- | CB ss tt dd Tremolo: ss == speed, tt == time until tremolo, dd == depth | ||
- | CC | ||
- | CD xx yy Pan repeatedly back and forth at speed xx (00-FF), higher values == slower panning. | ||
- | CE | ||
- | CF xx | ||
- | D0 | ||
- | D1 | ||
- | D2 | ||
- | D3 | ||
- | D4 | ||
- | D5 | ||
- | D6 oo Set octave to oo | ||
- | D7 Raise octave by 1 | ||
- | D8 Lower octave by 1 | ||
- | D9 xx Set transpose | ||
- | DA xx Increment transpose | ||
- | DB xx | ||
- | DC ss Change channel' | ||
- | DD xx | ||
- | DE xx Disables DF. | ||
- | DF xx | ||
- | E0 xx | ||
- | E1 | ||
- | E2 nn Begin loop: nn == number of iterations - 1 (max nesting == 4) | ||
- | E3 End loop | ||
- | E4 ??? | ||
- | E5 | ||
- | E6 | ||
- | E7 | ||
- | E8 xx ??? Set length of next note | ||
- | E9 xx | ||
- | EA xx | ||
- | EB End of channel | ||
- | F0 xx Set tempo to xx (00-FF), higher values == faster tempo. | ||
- | F1 ss xx Fade tempo to xx at speed ss | ||
- | F2 xx Set echo to xx | ||
- | F3 ss xx Fade echo to xx at speed ss | ||
- | F4 xx | ||
- | F5 nn aaaa When this instruction has been executed nn times, break out of most recent loop and goto $aaaa | ||
- | F6 aaaa Goto $aaaa | ||
- | F7 xx yy | ||
- | F8 xx yy | ||
- | F9 | ||
- | FA | ||
- | FB | ||
- | FC xx yy | ||
- | </ |