Lines Matching refs:note
30 static void terminate_note1(struct snd_emux *emu, int note,
43 * Start a note.
46 snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
63 key = note; /* remember the original note */
64 nvoices = get_zone(emu, port, ¬e, vel, chan, table);
68 /* exclusive note off */
76 /* Turn off the same note on the same channel. */
99 vp->note = note;
131 /* clear voice position for the next note on this channel */
142 * Release a note in response to a midi note off.
145 snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan)
165 vp->chan == chan && vp->key == note) {
168 /* if note-off is sent too shortly after
169 * note-on, emuX engine cannot produce the sound
170 * correctly. so we'll release this note
179 /* ok now release the note */
189 * release the pending note-offs
222 snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan)
242 vp->chan == chan && vp->key == note) {
361 * terminate note - if free flag is true, free the terminated voice
364 terminate_note1(struct snd_emux *emu, int note, struct snd_midi_channel *chan, int free)
374 vp->key == note)
382 * terminate note - exported for midi emulation
385 snd_emux_terminate_note(void *p, int note, struct snd_midi_channel *chan)
398 terminate_note1(emu, note, chan, 1);
820 offset = (vp->note - vp->reg.root) * 4096 / 12;
885 /* Look for the zones matching with the given note and velocity.