• 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/oss/

Lines Matching refs:note

40 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
41 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
42 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev);
111 return note_off_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev);
114 return note_on_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev);
122 q->n.chn, 0, q->n.note, ev);
193 return note_on_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev);
196 return note_off_event(dp, q->v.dev, q->v.chn, q->v.note, q->v.parm, ev);
200 q->v.chn, q->v.note, q->v.parm, ev);
275 * process note-on event for OSS synth
278 * Accept note 255 as volume change.
282 * Use key-pressure if note >= 128
285 note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev)
292 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
295 if (note == 255 && info->ch[ch].note >= 0) {
299 /* set volume to zero -- note off */
309 return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev);
310 } else if (note >= 128)
313 if (note != info->ch[ch].note && info->ch[ch].note >= 0)
314 /* note changed - note off at beginning */
315 set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, info->ch[ch].note, 0, ev);
317 info->ch[ch].note = note;
319 if (vel) /* non-zero velocity - start the note now */
320 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
325 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
328 if (note >= 128) /* key pressure: shifted by 128 */
329 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_KEYPRESS, ch, note - 128, vel, ev);
330 else /* normal note-on event */
331 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
337 * process note-off event for OSS synth
340 note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev)
347 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev);
350 if (info->ch[ch].note >= 0) {
351 note = info->ch[ch].note;
353 info->ch[ch].note = -1;
354 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev);
361 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev);
368 * create a note event
371 set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev)
378 ev->data.note.channel = ch;
379 ev->data.note.note = note;
380 ev->data.note.velocity = vel;