Lines Matching full: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) in snd_emux_note_on() argument
63 key = note; /* remember the original note */ in snd_emux_note_on()
64 nvoices = get_zone(emu, port, ¬e, vel, chan, table); in snd_emux_note_on()
68 /* exclusive note off */ in snd_emux_note_on()
76 /* Turn off the same note on the same channel. */ in snd_emux_note_on()
99 vp->note = note; in snd_emux_note_on()
131 /* clear voice position for the next note on this channel */ in snd_emux_note_on()
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) in snd_emux_note_off() argument
165 vp->chan == chan && vp->key == note) { in snd_emux_note_off()
168 /* if note-off is sent too shortly after in snd_emux_note_off()
169 * note-on, emuX engine cannot produce the sound in snd_emux_note_off()
170 * correctly. so we'll release this note in snd_emux_note_off()
179 /* ok now release the note */ in snd_emux_note_off()
189 * release the pending note-offs
222 snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_emux_key_press() argument
242 vp->chan == chan && vp->key == note) { in snd_emux_key_press()
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) in terminate_note1() argument
374 vp->key == note) in terminate_note1()
382 * terminate note - exported for midi emulation
385 snd_emux_terminate_note(void *p, int note, struct snd_midi_channel *chan) in snd_emux_terminate_note() argument
398 terminate_note1(emu, note, chan, 1); in snd_emux_terminate_note()
820 offset = (vp->note - vp->reg.root) * 4096 / 12; in calc_pitch()
885 /* Look for the zones matching with the given note and velocity.