Go to the documentation of this file. 1 #ifndef __SOUND_SEQ_MIDI_EMUL_H
2 #define __SOUND_SEQ_MIDI_EMUL_H
99 #define MIDI_CTL_PITCHBEND 0x80
100 #define MIDI_CTL_AFTERTOUCH 0x81
101 #define MIDI_CTL_CHAN_PRESSURE 0x82
108 #define gm_bank_select control[0]
109 #define gm_modulation control[1]
110 #define gm_breath control[2]
111 #define gm_foot_pedal control[4]
112 #define gm_portamento_time control[5]
113 #define gm_data_entry control[6]
114 #define gm_volume control[7]
115 #define gm_balance control[8]
116 #define gm_pan control[10]
117 #define gm_expression control[11]
118 #define gm_effect_control1 control[12]
119 #define gm_effect_control2 control[13]
120 #define gm_slider1 control[16]
121 #define gm_slider2 control[17]
122 #define gm_slider3 control[18]
123 #define gm_slider4 control[19]
125 #define gm_bank_select_lsb control[32]
126 #define gm_modulation_wheel_lsb control[33]
127 #define gm_breath_lsb control[34]
128 #define gm_foot_pedal_lsb control[36]
129 #define gm_portamento_time_lsb control[37]
130 #define gm_data_entry_lsb control[38]
131 #define gm_volume_lsb control[39]
132 #define gm_balance_lsb control[40]
133 #define gm_pan_lsb control[42]
134 #define gm_expression_lsb control[43]
135 #define gm_effect_control1_lsb control[44]
136 #define gm_effect_control2_lsb control[45]
138 #define gm_sustain control[MIDI_CTL_SUSTAIN]
139 #define gm_hold gm_sustain
140 #define gm_portamento control[MIDI_CTL_PORTAMENTO]
141 #define gm_sostenuto control[MIDI_CTL_SOSTENUTO]
148 #define SNDRV_GM_BANK_SELECT(cp) (((cp)->control[0]<<7)|((cp)->control[32]))
149 #define SNDRV_GM_MODULATION_WHEEL(cp) (((cp)->control[1]<<7)|((cp)->control[33]))
150 #define SNDRV_GM_BREATH(cp) (((cp)->control[2]<<7)|((cp)->control[34]))
151 #define SNDRV_GM_FOOT_PEDAL(cp) (((cp)->control[4]<<7)|((cp)->control[36]))
152 #define SNDRV_GM_PORTAMENTO_TIME(cp) (((cp)->control[5]<<7)|((cp)->control[37]))
153 #define SNDRV_GM_DATA_ENTRY(cp) (((cp)->control[6]<<7)|((cp)->control[38]))
154 #define SNDRV_GM_VOLUME(cp) (((cp)->control[7]<<7)|((cp)->control[39]))
155 #define SNDRV_GM_BALANCE(cp) (((cp)->control[8]<<7)|((cp)->control[40]))
156 #define SNDRV_GM_PAN(cp) (((cp)->control[10]<<7)|((cp)->control[42]))
157 #define SNDRV_GM_EXPRESSION(cp) (((cp)->control[11]<<7)|((cp)->control[43]))
161 #define SNDRV_MIDI_MODE_NONE 0
162 #define SNDRV_MIDI_MODE_GM 1
163 #define SNDRV_MIDI_MODE_GS 2
164 #define SNDRV_MIDI_MODE_XG 3
165 #define SNDRV_MIDI_MODE_MT32 4
168 #define SNDRV_MIDI_NOTE_OFF 0x00
169 #define SNDRV_MIDI_NOTE_ON 0x01
170 #define SNDRV_MIDI_NOTE_RELEASED 0x02
171 #define SNDRV_MIDI_NOTE_SOSTENUTO 0x04
173 #define SNDRV_MIDI_PARAM_TYPE_REGISTERED 0
174 #define SNDRV_MIDI_PARAM_TYPE_NONREGISTERED 1