Lines Matching refs:note
48 int note, int vel);
98 dest_channel = ev->data.note.channel; in snd_midi_process_event()
115 if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0) in snd_midi_process_event()
122 if (ev->data.note.note >= 128) in snd_midi_process_event()
128 if (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON) { in snd_midi_process_event()
130 ops->note_off(drv, ev->data.note.note, 0, chan); in snd_midi_process_event()
132 chan->note[ev->data.note.note] = SNDRV_MIDI_NOTE_ON; in snd_midi_process_event()
134 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event()
137 if (! (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON)) in snd_midi_process_event()
140 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); in snd_midi_process_event()
144 ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan); in snd_midi_process_event()
245 int note, int vel) in note_off() argument
249 chan->note[note] |= SNDRV_MIDI_NOTE_RELEASED; in note_off()
250 } else if (chan->note[note] & SNDRV_MIDI_NOTE_SOSTENUTO) { in note_off()
253 chan->note[note] |= SNDRV_MIDI_NOTE_RELEASED; in note_off()
255 chan->note[note] = 0; in note_off()
257 ops->note_off(drv, note, vel, chan); in note_off()
283 if (chan->note[i] & SNDRV_MIDI_NOTE_RELEASED) { in do_control()
284 chan->note[i] = SNDRV_MIDI_NOTE_OFF; in do_control()
297 if (chan->note[i] & SNDRV_MIDI_NOTE_ON) in do_control()
298 chan->note[i] |= SNDRV_MIDI_NOTE_SOSTENUTO; in do_control()
303 if (chan->note[i] & SNDRV_MIDI_NOTE_SOSTENUTO) { in do_control()
304 chan->note[i] &= ~SNDRV_MIDI_NOTE_SOSTENUTO; in do_control()
305 if (chan->note[i] & SNDRV_MIDI_NOTE_RELEASED) { in do_control()
306 chan->note[i] = SNDRV_MIDI_NOTE_OFF; in do_control()
391 memset(chan->note, 0, sizeof(chan->note)); in snd_midi_channel_set_clear()
602 if (chan->note[n]) { in all_sounds_off()
604 chan->note[n] = 0; in all_sounds_off()
620 if (chan->note[n] == SNDRV_MIDI_NOTE_ON) in all_notes_off()