Lines Matching defs: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) {
509 voice[i]->note = note;
563 void snd_opl4_note_off(void *private_data, int note, int vel, struct snd_midi_channel *chan)
567 snd_opl4_do_for_note(opl4, note, chan, snd_opl4_voice_off);
578 void snd_opl4_terminate_note(void *private_data, int note, struct snd_midi_channel *chan)
582 snd_opl4_do_for_note(opl4, note, chan, snd_opl4_terminate_voice);