43 #define TEST_REGISTER 0x01
44 #define ENABLE_WAVE_SELECT 0x20
46 #define TIMER1_REGISTER 0x02
47 #define TIMER2_REGISTER 0x03
48 #define TIMER_CONTROL_REGISTER 0x04
49 #define IRQ_RESET 0x80
50 #define TIMER1_MASK 0x40
51 #define TIMER2_MASK 0x20
52 #define TIMER1_START 0x01
53 #define TIMER2_START 0x02
55 #define CONNECTION_SELECT_REGISTER 0x04
56 #define RIGHT_4OP_0 0x01
57 #define RIGHT_4OP_1 0x02
58 #define RIGHT_4OP_2 0x04
59 #define LEFT_4OP_0 0x08
60 #define LEFT_4OP_1 0x10
61 #define LEFT_4OP_2 0x20
63 #define OPL3_MODE_REGISTER 0x05
64 #define OPL3_ENABLE 0x01
65 #define OPL4_ENABLE 0x02
67 #define KBD_SPLIT_REGISTER 0x08
68 #define COMPOSITE_SINE_WAVE_MODE 0x80
69 #define KEYBOARD_SPLIT 0x40
71 #define PERCOSSION_REGISTER 0xbd
72 #define TREMOLO_DEPTH 0x80
73 #define VIBRATO_DEPTH 0x40
74 #define PERCOSSION_ENABLE 0x20
75 #define BASSDRUM_ON 0x10
76 #define SNAREDRUM_ON 0x08
77 #define TOMTOM_ON 0x04
78 #define CYMBAL_ON 0x02
88 #define TREMOLO_ON 0x80
89 #define VIBRATO_ON 0x40
90 #define SUSTAIN_ON 0x20
92 #define MULTIPLE_MASK 0x0f
97 #define KSL_LEVEL 0x40
99 #define TOTAL_LEVEL_MASK 0x3f
104 #define ATTACK_DECAY 0x60
105 #define ATTACK_MASK 0xf0
106 #define DECAY_MASK 0x0f
111 #define SUSTAIN_RELEASE 0x80
112 #define SUSTAIN_MASK 0xf0
113 #define RELEASE_MASK 0x0f
118 #define WAVE_SELECT 0xe0
126 #define FNUM_LOW 0xa0
131 #define KEYON_BLOCK 0xb0
132 #define KEYON_BIT 0x20
133 #define BLOCKNUM_MASK 0x1c
134 #define FNUM_HIGH_MASK 0x03
148 #define FEEDBACK_CONNECTION 0xc0
149 #define FEEDBACK_MASK 0x0e
150 #define CONNECTION_BIT 0x01
185 #define STEREO_BITS 0x30
186 #define VOICE_TO_LEFT 0x10
187 #define VOICE_TO_RIGHT 0x20
220 { 0, 2,
USE_LEFT, {0x00, 0x03, 0x08, 0x0b}},
221 { 1, 2,
USE_LEFT, {0x01, 0x04, 0x09, 0x0c}},
222 { 2, 2,
USE_LEFT, {0x02, 0x05, 0x0a, 0x0d}},
224 { 3, 2,
USE_LEFT, {0x08, 0x0b, 0x00, 0x00}},
225 { 4, 2,
USE_LEFT, {0x09, 0x0c, 0x00, 0x00}},
226 { 5, 2,
USE_LEFT, {0x0a, 0x0d, 0x00, 0x00}},
228 { 6, 2,
USE_LEFT, {0x10, 0x13, 0x00, 0x00}},
229 { 7, 2,
USE_LEFT, {0x11, 0x14, 0x00, 0x00}},
230 { 8, 2,
USE_LEFT, {0x12, 0x15, 0x00, 0x00}},
232 { 0, 2,
USE_RIGHT, {0x00, 0x03, 0x08, 0x0b}},
233 { 1, 2,
USE_RIGHT, {0x01, 0x04, 0x09, 0x0c}},
234 { 2, 2,
USE_RIGHT, {0x02, 0x05, 0x0a, 0x0d}},
236 { 3, 2,
USE_RIGHT, {0x08, 0x0b, 0x00, 0x00}},
237 { 4, 2,
USE_RIGHT, {0x09, 0x0c, 0x00, 0x00}},
238 { 5, 2,
USE_RIGHT, {0x0a, 0x0d, 0x00, 0x00}},
240 { 6, 2,
USE_RIGHT, {0x10, 0x13, 0x00, 0x00}},
241 { 7, 2,
USE_RIGHT, {0x11, 0x14, 0x00, 0x00}},
242 { 8, 2,
USE_RIGHT, {0x12, 0x15, 0x00, 0x00}}