112
edits
Changes
Jump to navigation
Jump to search
Add information of drum table
|3
|drum_map_offset: signed int16
|The <code>drum_map_offset</code> is a relative offset pointing to the drum instrument map table that maps , which determines the instrument and articulation for each keys.
|-
|[[FF7/PSX/Sound/Opcodes/0xeced|0xED]]
|Code-referenced to 0xA0. Should not be used.
|}
== Drum Instrument Map Table ==
When a song uses a drum kit with [[FF7/PSX/Sound/Opcodes/0xeced|opcode 0xEC]], a drum instrument map table will be placed at the end of the sequence. The table determines the instrument, channel volume and pan for each keys.
The table consists of a repetition of 5-byte items.
struct AkaoDrumNoteAttr
{
uint8_t instrument; // corresponding to opcode 0xA1
uint8_t note_number; // note number when playing the drum note
uint16_t volume; // corresponding to opcode 0xA8 (lower 8bit is a fractional part of the volume)
uint8_t pan; // corresponding to opcode 0xAA
}