Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
seq_midi_emul.h File Reference
#include <sound/seq_kernel.h>

Go to the source code of this file.

Data Structures

struct  snd_midi_channel
 
struct  snd_midi_channel_set
 
struct  snd_midi_op
 

Macros

#define MIDI_CTL_PITCHBEND   0x80
 
#define MIDI_CTL_AFTERTOUCH   0x81
 
#define MIDI_CTL_CHAN_PRESSURE   0x82
 
#define gm_bank_select   control[0]
 
#define gm_modulation   control[1]
 
#define gm_breath   control[2]
 
#define gm_foot_pedal   control[4]
 
#define gm_portamento_time   control[5]
 
#define gm_data_entry   control[6]
 
#define gm_volume   control[7]
 
#define gm_balance   control[8]
 
#define gm_pan   control[10]
 
#define gm_expression   control[11]
 
#define gm_effect_control1   control[12]
 
#define gm_effect_control2   control[13]
 
#define gm_slider1   control[16]
 
#define gm_slider2   control[17]
 
#define gm_slider3   control[18]
 
#define gm_slider4   control[19]
 
#define gm_bank_select_lsb   control[32]
 
#define gm_modulation_wheel_lsb   control[33]
 
#define gm_breath_lsb   control[34]
 
#define gm_foot_pedal_lsb   control[36]
 
#define gm_portamento_time_lsb   control[37]
 
#define gm_data_entry_lsb   control[38]
 
#define gm_volume_lsb   control[39]
 
#define gm_balance_lsb   control[40]
 
#define gm_pan_lsb   control[42]
 
#define gm_expression_lsb   control[43]
 
#define gm_effect_control1_lsb   control[44]
 
#define gm_effect_control2_lsb   control[45]
 
#define gm_sustain   control[MIDI_CTL_SUSTAIN]
 
#define gm_hold   gm_sustain
 
#define gm_portamento   control[MIDI_CTL_PORTAMENTO]
 
#define gm_sostenuto   control[MIDI_CTL_SOSTENUTO]
 
#define SNDRV_GM_BANK_SELECT(cp)   (((cp)->control[0]<<7)|((cp)->control[32]))
 
#define SNDRV_GM_MODULATION_WHEEL(cp)   (((cp)->control[1]<<7)|((cp)->control[33]))
 
#define SNDRV_GM_BREATH(cp)   (((cp)->control[2]<<7)|((cp)->control[34]))
 
#define SNDRV_GM_FOOT_PEDAL(cp)   (((cp)->control[4]<<7)|((cp)->control[36]))
 
#define SNDRV_GM_PORTAMENTO_TIME(cp)   (((cp)->control[5]<<7)|((cp)->control[37]))
 
#define SNDRV_GM_DATA_ENTRY(cp)   (((cp)->control[6]<<7)|((cp)->control[38]))
 
#define SNDRV_GM_VOLUME(cp)   (((cp)->control[7]<<7)|((cp)->control[39]))
 
#define SNDRV_GM_BALANCE(cp)   (((cp)->control[8]<<7)|((cp)->control[40]))
 
#define SNDRV_GM_PAN(cp)   (((cp)->control[10]<<7)|((cp)->control[42]))
 
#define SNDRV_GM_EXPRESSION(cp)   (((cp)->control[11]<<7)|((cp)->control[43]))
 
#define SNDRV_MIDI_MODE_NONE   0 /* Generic midi */
 
#define SNDRV_MIDI_MODE_GM   1
 
#define SNDRV_MIDI_MODE_GS   2
 
#define SNDRV_MIDI_MODE_XG   3
 
#define SNDRV_MIDI_MODE_MT32   4
 
#define SNDRV_MIDI_NOTE_OFF   0x00
 
#define SNDRV_MIDI_NOTE_ON   0x01
 
#define SNDRV_MIDI_NOTE_RELEASED   0x02
 
#define SNDRV_MIDI_NOTE_SOSTENUTO   0x04
 
#define SNDRV_MIDI_PARAM_TYPE_REGISTERED   0
 
#define SNDRV_MIDI_PARAM_TYPE_NONREGISTERED   1
 

Enumerations

enum  {
  SNDRV_MIDI_SYSEX_NOT_PARSED = 0, SNDRV_MIDI_SYSEX_GM_ON, SNDRV_MIDI_SYSEX_GS_ON, SNDRV_MIDI_SYSEX_GS_RESET,
  SNDRV_MIDI_SYSEX_GS_CHORUS_MODE, SNDRV_MIDI_SYSEX_GS_REVERB_MODE, SNDRV_MIDI_SYSEX_GS_MASTER_VOLUME, SNDRV_MIDI_SYSEX_GS_PROGRAM,
  SNDRV_MIDI_SYSEX_GS_DRUM_CHANNEL, SNDRV_MIDI_SYSEX_XG_ON
}
 

Functions

void snd_midi_process_event (struct snd_midi_op *ops, struct snd_seq_event *ev, struct snd_midi_channel_set *chanset)
 
void snd_midi_channel_set_clear (struct snd_midi_channel_set *chset)
 
struct snd_midi_channel_setsnd_midi_channel_alloc_set (int n)
 
void snd_midi_channel_free_set (struct snd_midi_channel_set *chset)
 

Macro Definition Documentation

#define gm_balance   control[8]

Definition at line 115 of file seq_midi_emul.h.

#define gm_balance_lsb   control[40]

Definition at line 132 of file seq_midi_emul.h.

#define gm_bank_select   control[0]

Definition at line 108 of file seq_midi_emul.h.

#define gm_bank_select_lsb   control[32]

Definition at line 125 of file seq_midi_emul.h.

#define gm_breath   control[2]

Definition at line 110 of file seq_midi_emul.h.

#define gm_breath_lsb   control[34]

Definition at line 127 of file seq_midi_emul.h.

#define gm_data_entry   control[6]

Definition at line 113 of file seq_midi_emul.h.

#define gm_data_entry_lsb   control[38]

Definition at line 130 of file seq_midi_emul.h.

#define gm_effect_control1   control[12]

Definition at line 118 of file seq_midi_emul.h.

#define gm_effect_control1_lsb   control[44]

Definition at line 135 of file seq_midi_emul.h.

#define gm_effect_control2   control[13]

Definition at line 119 of file seq_midi_emul.h.

#define gm_effect_control2_lsb   control[45]

Definition at line 136 of file seq_midi_emul.h.

#define gm_expression   control[11]

Definition at line 117 of file seq_midi_emul.h.

#define gm_expression_lsb   control[43]

Definition at line 134 of file seq_midi_emul.h.

#define gm_foot_pedal   control[4]

Definition at line 111 of file seq_midi_emul.h.

#define gm_foot_pedal_lsb   control[36]

Definition at line 128 of file seq_midi_emul.h.

#define gm_hold   gm_sustain

Definition at line 139 of file seq_midi_emul.h.

#define gm_modulation   control[1]

Definition at line 109 of file seq_midi_emul.h.

#define gm_modulation_wheel_lsb   control[33]

Definition at line 126 of file seq_midi_emul.h.

#define gm_pan   control[10]

Definition at line 116 of file seq_midi_emul.h.

#define gm_pan_lsb   control[42]

Definition at line 133 of file seq_midi_emul.h.

#define gm_portamento   control[MIDI_CTL_PORTAMENTO]

Definition at line 140 of file seq_midi_emul.h.

#define gm_portamento_time   control[5]

Definition at line 112 of file seq_midi_emul.h.

#define gm_portamento_time_lsb   control[37]

Definition at line 129 of file seq_midi_emul.h.

#define gm_slider1   control[16]

Definition at line 120 of file seq_midi_emul.h.

#define gm_slider2   control[17]

Definition at line 121 of file seq_midi_emul.h.

#define gm_slider3   control[18]

Definition at line 122 of file seq_midi_emul.h.

#define gm_slider4   control[19]

Definition at line 123 of file seq_midi_emul.h.

#define gm_sostenuto   control[MIDI_CTL_SOSTENUTO]

Definition at line 141 of file seq_midi_emul.h.

#define gm_sustain   control[MIDI_CTL_SUSTAIN]

Definition at line 138 of file seq_midi_emul.h.

#define gm_volume   control[7]

Definition at line 114 of file seq_midi_emul.h.

#define gm_volume_lsb   control[39]

Definition at line 131 of file seq_midi_emul.h.

#define MIDI_CTL_AFTERTOUCH   0x81

Definition at line 100 of file seq_midi_emul.h.

#define MIDI_CTL_CHAN_PRESSURE   0x82

Definition at line 101 of file seq_midi_emul.h.

#define MIDI_CTL_PITCHBEND   0x80

Definition at line 99 of file seq_midi_emul.h.

#define SNDRV_GM_BALANCE (   cp)    (((cp)->control[8]<<7)|((cp)->control[40]))

Definition at line 155 of file seq_midi_emul.h.

#define SNDRV_GM_BANK_SELECT (   cp)    (((cp)->control[0]<<7)|((cp)->control[32]))

Definition at line 148 of file seq_midi_emul.h.

#define SNDRV_GM_BREATH (   cp)    (((cp)->control[2]<<7)|((cp)->control[34]))

Definition at line 150 of file seq_midi_emul.h.

#define SNDRV_GM_DATA_ENTRY (   cp)    (((cp)->control[6]<<7)|((cp)->control[38]))

Definition at line 153 of file seq_midi_emul.h.

#define SNDRV_GM_EXPRESSION (   cp)    (((cp)->control[11]<<7)|((cp)->control[43]))

Definition at line 157 of file seq_midi_emul.h.

#define SNDRV_GM_FOOT_PEDAL (   cp)    (((cp)->control[4]<<7)|((cp)->control[36]))

Definition at line 151 of file seq_midi_emul.h.

#define SNDRV_GM_MODULATION_WHEEL (   cp)    (((cp)->control[1]<<7)|((cp)->control[33]))

Definition at line 149 of file seq_midi_emul.h.

#define SNDRV_GM_PAN (   cp)    (((cp)->control[10]<<7)|((cp)->control[42]))

Definition at line 156 of file seq_midi_emul.h.

#define SNDRV_GM_PORTAMENTO_TIME (   cp)    (((cp)->control[5]<<7)|((cp)->control[37]))

Definition at line 152 of file seq_midi_emul.h.

#define SNDRV_GM_VOLUME (   cp)    (((cp)->control[7]<<7)|((cp)->control[39]))

Definition at line 154 of file seq_midi_emul.h.

#define SNDRV_MIDI_MODE_GM   1

Definition at line 162 of file seq_midi_emul.h.

#define SNDRV_MIDI_MODE_GS   2

Definition at line 163 of file seq_midi_emul.h.

#define SNDRV_MIDI_MODE_MT32   4

Definition at line 165 of file seq_midi_emul.h.

#define SNDRV_MIDI_MODE_NONE   0 /* Generic midi */

Definition at line 161 of file seq_midi_emul.h.

#define SNDRV_MIDI_MODE_XG   3

Definition at line 164 of file seq_midi_emul.h.

#define SNDRV_MIDI_NOTE_OFF   0x00

Definition at line 168 of file seq_midi_emul.h.

#define SNDRV_MIDI_NOTE_ON   0x01

Definition at line 169 of file seq_midi_emul.h.

#define SNDRV_MIDI_NOTE_RELEASED   0x02

Definition at line 170 of file seq_midi_emul.h.

#define SNDRV_MIDI_NOTE_SOSTENUTO   0x04

Definition at line 171 of file seq_midi_emul.h.

#define SNDRV_MIDI_PARAM_TYPE_NONREGISTERED   1

Definition at line 174 of file seq_midi_emul.h.

#define SNDRV_MIDI_PARAM_TYPE_REGISTERED   0

Definition at line 173 of file seq_midi_emul.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
SNDRV_MIDI_SYSEX_NOT_PARSED 
SNDRV_MIDI_SYSEX_GM_ON 
SNDRV_MIDI_SYSEX_GS_ON 
SNDRV_MIDI_SYSEX_GS_RESET 
SNDRV_MIDI_SYSEX_GS_CHORUS_MODE 
SNDRV_MIDI_SYSEX_GS_REVERB_MODE 
SNDRV_MIDI_SYSEX_GS_MASTER_VOLUME 
SNDRV_MIDI_SYSEX_GS_PROGRAM 
SNDRV_MIDI_SYSEX_GS_DRUM_CHANNEL 
SNDRV_MIDI_SYSEX_XG_ON 

Definition at line 177 of file seq_midi_emul.h.

Function Documentation

struct snd_midi_channel_set* snd_midi_channel_alloc_set ( int  n)
read

Definition at line 689 of file seq_midi_emul.c.

void snd_midi_channel_free_set ( struct snd_midi_channel_set chset)

Definition at line 717 of file seq_midi_emul.c.

void snd_midi_channel_set_clear ( struct snd_midi_channel_set chset)

Definition at line 383 of file seq_midi_emul.c.

void snd_midi_process_event ( struct snd_midi_op ops,
struct snd_seq_event ev,
struct snd_midi_channel_set chanset 
)

Definition at line 83 of file seq_midi_emul.c.