Lines Matching refs:note
312 static void snd_opl4_do_for_note(struct snd_opl4 *opl4, int note, struct snd_midi_channel *chan, in snd_opl4_do_for_note() argument
322 if (voice->chan == chan && voice->note == note) { in snd_opl4_do_for_note()
423 int note, pitch, octave; in snd_opl4_update_pitch() local
425 note = chan->drum_channel ? 60 : voice->note; in snd_opl4_update_pitch()
430 pitch = ((note - 60) << 7) * voice->sound->key_scaling / 100 + (60 << 7); in snd_opl4_update_pitch()
482 void snd_opl4_note_on(void *private_data, int note, int vel, struct snd_midi_channel *chan) in snd_opl4_note_on() argument
495 if (note >= regions->regions[i].key_min && in snd_opl4_note_on()
496 note <= regions->regions[i].key_max) { in snd_opl4_note_on()
510 voice[i]->note = note; in snd_opl4_note_on()
565 void snd_opl4_note_off(void *private_data, int note, int vel, struct snd_midi_channel *chan) in snd_opl4_note_off() argument
569 snd_opl4_do_for_note(opl4, note, chan, snd_opl4_voice_off); in snd_opl4_note_off()
581 void snd_opl4_terminate_note(void *private_data, int note, struct snd_midi_channel *chan) in snd_opl4_terminate_note() argument
585 snd_opl4_do_for_note(opl4, note, chan, snd_opl4_terminate_voice); in snd_opl4_terminate_note()