Differences
This shows you the differences between two versions of the page.
ff3:ff3us:doc:asm:codes:music_codes [2016/04/03 07:18] m06 |
ff3:ff3us:doc:asm:codes:music_codes [2019/02/12 12:52] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Music Commands ===== | ||
- | ==== Overview ==== | ||
- | |||
- | These commands are used in the [[ff3: | ||
- | |||
- | ==== Notes ==== | ||
- | < | ||
- | 1/1 1/2 1/3 3/8 1/4 1/6 3/16 1/8 1/12 1/16 1/24 1/32 1/48 1/ | ||
- | ------------------------------------------------------------------------ | ||
- | 00 | ||
- | 0E | ||
- | 1C | ||
- | 2A | ||
- | 38 | ||
- | 46 | ||
- | 54 | ||
- | 62 | ||
- | 70 | ||
- | 7E | ||
- | 8C | ||
- | 9A | ||
- | A8 | ||
- | B6 | ||
- | |||
- | Common names and ticks for note lengths: | ||
- | ------------------------------ | ||
- | 1/1 $0: Whole Note C0 | ||
- | 1/2 $1: Half Note 60 | ||
- | 1/3 $2: Half Note Triplet | ||
- | 3/8 $3: Dotted Quarter Note 48 | ||
- | 1/4 $4: Quarter Note 30 | ||
- | 1/6 $5: Quarter Note Triplet | ||
- | 3/16 $6: Dotted Eighth Note 24 | ||
- | 1/8 $7: Eighth Note 18 | ||
- | 1/12 $8: Triplet | ||
- | 1/16 $9: Sixteenth Note 0C | ||
- | 1/24 $A: Sixteenth Note Triplet | ||
- | 1/32 $B: Thirty-second Note 06 | ||
- | 1/48 $C: Thirty-second Note Tripet | ||
- | 1/64 $D: Sixty-fourth Note 03 | ||
- | </ | ||
- | ==== Other ==== | ||
- | < | ||
- | C4: xx $11D3 Set Voice Volume to xx (00-7F) | ||
- | C5: xx yy $11E4 Set Voice Volume w/ Envelope (yy: volume, xx: envelope duration) | ||
- | C6: xx $1236 Set Voice Pan to (xx: 01 = Left, 40 = Center, 7F = Right, top bit inactive) | ||
- | C7: xx yy $1246 Set Voice Pan w/ Envelope (yy: 01 = Left, 40 = Center, 7F = Right, top bit inactive, xx = envelope duration) | ||
- | C8: xx yy $1266 Change Pitch w/ Envelope (xx: envelope duration, yy: change in pitch, signed) | ||
- | C9: xx yy zz $12E3 Enable Vibrato (xx: delay in ticks, yy: cycle duration, ??zzzzzz: amplitude, max 1/4 step) | ||
- | CA: $138C Disable Vibrato | ||
- | CB: xx yy zz $1396 Enable Tremolo (xx: delay in ticks, yy: cycle duration, ??zzzzzz: amplitude, max 50%) | ||
- | CC: $13EA Disable Tremolo | ||
- | CD: xx yy $13F4 Enable Pansweep (xx: delay in ticks, yy: cycle duration) | ||
- | CE: $144A Disable Pansweep | ||
- | CF: xx $14CB Set Noise Clock (00-1F) | ||
- | D0: $148D Enable Noise | ||
- | D1: $14BB Disable Noise | ||
- | D2: $14D9 Enable Pitch Modulation | ||
- | D3: $14F2 Disable Pitch Modulation | ||
- | D4: $1464 Enable Echo | ||
- | D5: $147D Disable Echo | ||
- | D6: xx $1460 Set Octave to xx | ||
- | D7: $1456 Increment Octave | ||
- | D8: $145C Decrement Octave | ||
- | D9: xx $1275 Set Transpose | ||
- | DA: xx $1271 Add to Transpose | ||
- | DB: xx $174E Set Detune | ||
- | DC: xx $1502 Set Instrument | ||
- | DD: xx $1538 Set ADSR Attack Value (0-15) | ||
- | DE: xx $1568 Set ADSR Decay Value (0-7) | ||
- | DF: xx $157B Set ADSR Sustain Value (0-7) | ||
- | E0: xx $158D Set ADSR Release Value (0-31) | ||
- | E1: $159D Reset ADSR Default Values | ||
- | E2: xx $16C0 Loop Start (loop xx+1 times) | ||
- | E3: $16F0 Loop End | ||
- | E4: $15B4 Enable Slur (key on at beginning of first note only, no key off at end of note unless the next note is a rest) | ||
- | E5: $0FD3 Disable Slur | ||
- | E6: $15DE Enable Drum Roll (no key off at end of note unless the next note is a rest) | ||
- | E7: $0FD3 Disable Drum Roll | ||
- | E8: xx $174B Add to Note Duration (xx = duration in ticks) | ||
- | E9: xx $1602 Play Game Sound Effect (voice A) | ||
- | EA: xx $1606 Play Game Sound Effect (voice B) | ||
- | EB: $1770 End of Script | ||
- | EC: $1770 End of Script | ||
- | ED: $1770 End of Script | ||
- | EE: $1770 End of Script | ||
- | EF: $1770 End of Script | ||
- | F0: xx $11AF Set Tempo | ||
- | F1: xx yy $11B8 Set Tempo w/ Envelope | ||
- | F2: xx $1205 Set Song Echo Volume | ||
- | F3: xx yy $1212 Set Song Echo Volume w/ Envelope | ||
- | F4: xx $11D0 Set Song Volume | ||
- | F5: xx yyyy $1665 Jump to yyyy When Loop Count Reaches xx | ||
- | F6: xxxx $164A Jump to xxxx | ||
- | F7: xx yy $1279 Set Echo Feedback to yy over xx frames | ||
- | F8: xx yy $129B Set Filter ------yy | ||
- | F9: $1752 Increment Output Code | ||
- | FA: $1755 Clear Output Code | ||
- | FB: $15B0 Ignore Song Volume | ||
- | FC: xxxx $1759 Conditional Jump to xxxx | ||
- | FD: $1770 End of Script | ||
- | FE: $1770 End of Script | ||
- | FF: $1770 End of Script | ||
- | </ |