Lines Matching defs:vel
21 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
53 void snd_opl3_calc_volume(unsigned char *volbyte, int vel,
59 volume = (vel * chan->gm_volume * chan->gm_expression) / (127*127);
282 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
311 opl3_dbg(opl3, "Note on, ch %i, inst %i, note %i, vel %i\n",
312 chan->number, chan->midi_program, note, vel);
338 snd_opl3_drum_switch(opl3, note, vel, 1, chan);
435 snd_opl3_calc_volume(&vol_op[3], vel, chan);
438 snd_opl3_calc_volume(&vol_op[2], vel, chan);
441 snd_opl3_calc_volume(&vol_op[0], vel, chan);
444 snd_opl3_calc_volume(&vol_op[1], vel, chan);
447 snd_opl3_calc_volume(&vol_op[1], vel, chan);
449 snd_opl3_calc_volume(&vol_op[0], vel, chan);
638 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
653 snd_opl3_drum_switch(opl3, note, vel, 0, chan);
673 void snd_opl3_note_off(void *p, int note, int vel,
679 snd_opl3_note_off_unsafe(p, note, vel, chan);
685 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan)