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