• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/core/seq/

Lines Matching refs:note

48 		     int note, int vel);
98 dest_channel = ev->data.note.channel;
113 /* Make sure that we don't have a note on that should really be
114 * a note off */
115 if (ev->type == SNDRV_SEQ_EVENT_NOTEON && ev->data.note.velocity == 0)
118 /* Make sure the note is within array range */
122 if (ev->data.note.note >= 128)
128 if (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON) {
130 ops->note_off(drv, ev->data.note.note, 0, chan);
132 chan->note[ev->data.note.note] = SNDRV_MIDI_NOTE_ON;
134 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan);
137 if (! (chan->note[ev->data.note.note] & SNDRV_MIDI_NOTE_ON))
140 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity);
144 ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan);
241 * release note
245 int note, int vel)
248 /* Hold this note until pedal is turned off */
249 chan->note[note] |= SNDRV_MIDI_NOTE_RELEASED;
250 } else if (chan->note[note] & SNDRV_MIDI_NOTE_SOSTENUTO) {
251 /* Mark this note as release; it will be turned off when sostenuto
253 chan->note[note] |= SNDRV_MIDI_NOTE_RELEASED;
255 chan->note[note] = 0;
257 ops->note_off(drv, note, vel, chan);
283 if (chan->note[i] & SNDRV_MIDI_NOTE_RELEASED) {
284 chan->note[i] = SNDRV_MIDI_NOTE_OFF;
295 /* Mark each note that is currently held down */
297 if (chan->note[i] & SNDRV_MIDI_NOTE_ON)
298 chan->note[i] |= SNDRV_MIDI_NOTE_SOSTENUTO;
303 if (chan->note[i] & SNDRV_MIDI_NOTE_SOSTENUTO) {
304 chan->note[i] &= ~SNDRV_MIDI_NOTE_SOSTENUTO;
305 if (chan->note[i] & SNDRV_MIDI_NOTE_RELEASED) {
306 chan->note[i] = SNDRV_MIDI_NOTE_OFF;
391 memset(chan->note, 0, sizeof(chan->note));
602 if (chan->note[n]) {
604 chan->note[n] = 0;
620 if (chan->note[n] == SNDRV_MIDI_NOTE_ON)