Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
emux_nrpn.c File Reference
#include "emux_voice.h"
#include <sound/asoundef.h>

Go to the source code of this file.

Data Structures

struct  nrpn_conv_table
 

Macros

#define FX_CUTOFF   0
 
#define FX_RESONANCE   1
 
#define FX_ATTACK   2
 
#define FX_RELEASE   3
 
#define FX_VIBRATE   4
 
#define FX_VIBDEPTH   5
 
#define FX_VIBDELAY   6
 
#define FX_NUMS   7
 
#define DEF_FX_CUTOFF   170
 
#define DEF_FX_RESONANCE   6
 
#define DEF_FX_ATTACK   50
 
#define DEF_FX_RELEASE   50
 
#define DEF_FX_VIBRATE   30
 
#define DEF_FX_VIBDEPTH   4
 
#define DEF_FX_VIBDELAY   1500
 
#define fx_env1_delay   fx_delay /* [0,5900] 4msec */
 
#define fx_env1_attack   fx_attack /* [0,5940] 1msec */
 
#define fx_env1_hold   fx_hold /* [0,8191] 1msec */
 
#define fx_env1_decay   fx_decay /* [0,5940] 4msec */
 
#define fx_env1_release   fx_decay /* [0,5940] 4msec */
 
#define fx_env1_sustain   fx_the_value /* [0,127] 0.75dB */
 
#define fx_env1_pitch   fx_the_value /* [-127,127] 9.375cents */
 
#define fx_env1_cutoff   fx_the_value /* [-127,127] 56.25cents */
 
#define fx_env2_delay   fx_delay /* [0,5900] 4msec */
 
#define fx_env2_attack   fx_attack /* [0,5940] 1msec */
 
#define fx_env2_hold   fx_hold /* [0,8191] 1msec */
 
#define fx_env2_decay   fx_decay /* [0,5940] 4msec */
 
#define fx_env2_release   fx_decay /* [0,5940] 4msec */
 
#define fx_env2_sustain   fx_the_value /* [0,127] 0.75dB */
 
#define fx_lfo1_delay   fx_delay /* [0,5900] 4msec */
 
#define fx_lfo1_freq   fx_twice_value /* [0,127] 84mHz */
 
#define fx_lfo1_volume   fx_twice_value /* [0,127] 0.1875dB */
 
#define fx_lfo1_pitch   fx_the_value /* [-127,127] 9.375cents */
 
#define fx_lfo1_cutoff   fx_twice_value /* [-64,63] 56.25cents */
 
#define fx_lfo2_delay   fx_delay /* [0,5900] 4msec */
 
#define fx_lfo2_freq   fx_twice_value /* [0,127] 84mHz */
 
#define fx_lfo2_pitch   fx_the_value /* [-127,127] 9.375cents */
 
#define fx_init_pitch   fx_conv_pitch /* [-8192,8192] cents */
 
#define fx_chorus   fx_the_value /* [0,255] -- */
 
#define fx_reverb   fx_the_value /* [0,255] -- */
 
#define fx_cutoff   fx_twice_value /* [0,127] 62Hz */
 
#define fx_filterQ   fx_conv_Q /* [0,127] -- */
 

Functions

void snd_emux_nrpn (void *p, struct snd_midi_channel *chan, struct snd_midi_channel_set *chset)
 
int snd_emux_xg_control (struct snd_emux_port *port, struct snd_midi_channel *chan, int param)
 
void snd_emux_sysex (void *p, unsigned char *buf, int len, int parsed, struct snd_midi_channel_set *chset)
 

Macro Definition Documentation

#define DEF_FX_ATTACK   50

Definition at line 70 of file emux_nrpn.c.

#define DEF_FX_CUTOFF   170

Definition at line 68 of file emux_nrpn.c.

#define DEF_FX_RELEASE   50

Definition at line 71 of file emux_nrpn.c.

#define DEF_FX_RESONANCE   6

Definition at line 69 of file emux_nrpn.c.

#define DEF_FX_VIBDELAY   1500

Definition at line 74 of file emux_nrpn.c.

#define DEF_FX_VIBDEPTH   4

Definition at line 73 of file emux_nrpn.c.

#define DEF_FX_VIBRATE   30

Definition at line 72 of file emux_nrpn.c.

#define FX_ATTACK   2

Definition at line 40 of file emux_nrpn.c.

#define fx_chorus   fx_the_value /* [0,255] -- */

Definition at line 136 of file emux_nrpn.c.

#define FX_CUTOFF   0

Definition at line 38 of file emux_nrpn.c.

#define fx_cutoff   fx_twice_value /* [0,127] 62Hz */

Definition at line 138 of file emux_nrpn.c.

#define fx_env1_attack   fx_attack /* [0,5940] 1msec */

Definition at line 110 of file emux_nrpn.c.

#define fx_env1_cutoff   fx_the_value /* [-127,127] 56.25cents */

Definition at line 116 of file emux_nrpn.c.

#define fx_env1_decay   fx_decay /* [0,5940] 4msec */

Definition at line 112 of file emux_nrpn.c.

#define fx_env1_delay   fx_delay /* [0,5900] 4msec */

Definition at line 109 of file emux_nrpn.c.

#define fx_env1_hold   fx_hold /* [0,8191] 1msec */

Definition at line 111 of file emux_nrpn.c.

#define fx_env1_pitch   fx_the_value /* [-127,127] 9.375cents */

Definition at line 115 of file emux_nrpn.c.

#define fx_env1_release   fx_decay /* [0,5940] 4msec */

Definition at line 113 of file emux_nrpn.c.

#define fx_env1_sustain   fx_the_value /* [0,127] 0.75dB */

Definition at line 114 of file emux_nrpn.c.

#define fx_env2_attack   fx_attack /* [0,5940] 1msec */

Definition at line 119 of file emux_nrpn.c.

#define fx_env2_decay   fx_decay /* [0,5940] 4msec */

Definition at line 121 of file emux_nrpn.c.

#define fx_env2_delay   fx_delay /* [0,5900] 4msec */

Definition at line 118 of file emux_nrpn.c.

#define fx_env2_hold   fx_hold /* [0,8191] 1msec */

Definition at line 120 of file emux_nrpn.c.

#define fx_env2_release   fx_decay /* [0,5940] 4msec */

Definition at line 122 of file emux_nrpn.c.

#define fx_env2_sustain   fx_the_value /* [0,127] 0.75dB */

Definition at line 123 of file emux_nrpn.c.

#define fx_filterQ   fx_conv_Q /* [0,127] -- */

Definition at line 139 of file emux_nrpn.c.

#define fx_init_pitch   fx_conv_pitch /* [-8192,8192] cents */

Definition at line 135 of file emux_nrpn.c.

#define fx_lfo1_cutoff   fx_twice_value /* [-64,63] 56.25cents */

Definition at line 129 of file emux_nrpn.c.

#define fx_lfo1_delay   fx_delay /* [0,5900] 4msec */

Definition at line 125 of file emux_nrpn.c.

#define fx_lfo1_freq   fx_twice_value /* [0,127] 84mHz */

Definition at line 126 of file emux_nrpn.c.

#define fx_lfo1_pitch   fx_the_value /* [-127,127] 9.375cents */

Definition at line 128 of file emux_nrpn.c.

#define fx_lfo1_volume   fx_twice_value /* [0,127] 0.1875dB */

Definition at line 127 of file emux_nrpn.c.

#define fx_lfo2_delay   fx_delay /* [0,5900] 4msec */

Definition at line 131 of file emux_nrpn.c.

#define fx_lfo2_freq   fx_twice_value /* [0,127] 84mHz */

Definition at line 132 of file emux_nrpn.c.

#define fx_lfo2_pitch   fx_the_value /* [-127,127] 9.375cents */

Definition at line 133 of file emux_nrpn.c.

#define FX_NUMS   7

Definition at line 45 of file emux_nrpn.c.

#define FX_RELEASE   3

Definition at line 41 of file emux_nrpn.c.

#define FX_RESONANCE   1

Definition at line 39 of file emux_nrpn.c.

#define fx_reverb   fx_the_value /* [0,255] -- */

Definition at line 137 of file emux_nrpn.c.

#define FX_VIBDELAY   6

Definition at line 44 of file emux_nrpn.c.

#define FX_VIBDEPTH   5

Definition at line 43 of file emux_nrpn.c.

#define FX_VIBRATE   4

Definition at line 42 of file emux_nrpn.c.

Function Documentation

void snd_emux_nrpn ( void p,
struct snd_midi_channel chan,
struct snd_midi_channel_set chset 
)

Definition at line 286 of file emux_nrpn.c.

void snd_emux_sysex ( void p,
unsigned char buf,
int  len,
int  parsed,
struct snd_midi_channel_set chset 
)

Definition at line 375 of file emux_nrpn.c.

int snd_emux_xg_control ( struct snd_emux_port port,
struct snd_midi_channel chan,
int  param 
)

Definition at line 362 of file emux_nrpn.c.