Lines Matching refs:note

32 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
98 int note, struct snd_midi_channel *chan) in snd_opl3_calc_pitch() argument
100 int block = ((note / 12) & 0x07) - 1; in snd_opl3_calc_pitch()
101 int idx = (note % 12) + 2; in snd_opl3_calc_pitch()
252 snd_opl3_note_off_unsafe(opl3, vp->note, 0, in snd_opl3_timer_func()
295 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_opl3_note_on() argument
315 int key = note; in snd_opl3_note_on()
327 chan->number, chan->midi_program, note, vel); in snd_opl3_note_on()
336 prg = note; in snd_opl3_note_on()
354 snd_opl3_drum_switch(opl3, note, vel, 1, chan); in snd_opl3_note_on()
536 note = fm->fix_key; in snd_opl3_note_on()
541 note += (fm->trnsps - 64); in snd_opl3_note_on()
543 snd_opl3_calc_pitch(&fnum, &blocknum, note, chan); in snd_opl3_note_on()
575 vp->note = key; in snd_opl3_note_on()
583 vp2->note = key; in snd_opl3_note_on()
667 static void snd_opl3_note_off_unsafe(void *p, int note, int vel, in snd_opl3_note_off_unsafe() argument
679 chan->number, chan->midi_program, note); in snd_opl3_note_off_unsafe()
684 snd_opl3_drum_switch(opl3, note, vel, 0, chan); in snd_opl3_note_off_unsafe()
691 if (vp->state > 0 && vp->chan == chan && vp->note == note) { in snd_opl3_note_off_unsafe()
704 void snd_opl3_note_off(void *p, int note, int vel, in snd_opl3_note_off() argument
711 snd_opl3_note_off_unsafe(p, note, vel, chan); in snd_opl3_note_off()
718 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_opl3_key_press() argument
732 void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan) in snd_opl3_terminate_note() argument
770 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan); in snd_opl3_update_pitch()