Lines Matching defs:note

14 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
70 * Converts the note frequency to block and fnum values for the FM chip
80 int note, struct snd_midi_channel *chan)
82 int block = ((note / 12) & 0x07) - 1;
83 int idx = (note % 12) + 2;
122 * Get a FM voice (channel) to play a note on.
235 snd_opl3_note_off_unsafe(opl3, vp->note, 0,
273 * Start a note.
275 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
295 int key = note;
306 snd_printk(KERN_DEBUG "Note on, ch %i, inst %i, note %i, vel %i\n",
307 chan->number, chan->midi_program, note, vel);
316 prg = note;
334 snd_opl3_drum_switch(opl3, note, vel, 1, chan);
522 note = fm->fix_key;
527 note += (fm->trnsps - 64);
529 snd_opl3_calc_pitch(&fnum, &blocknum, note, chan);
547 /* kill note after fixed duration (in centiseconds) */
561 vp->note = key;
569 vp2->note = key;
583 debug_alloc(opl3, "note on ", voice);
645 debug_alloc(opl3, "note off", voice);
651 * Release a note in response to a midi note off.
653 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
664 snd_printk(KERN_DEBUG "Note off, ch %i, inst %i, note %i\n",
665 chan->number, chan->midi_program, note);
670 snd_opl3_drum_switch(opl3, note, vel, 0, chan);
674 they are grouped by the same channel and note values */
677 if (vp->state > 0 && vp->chan == chan && vp->note == note) {
690 void snd_opl3_note_off(void *p, int note, int vel,
697 snd_opl3_note_off_unsafe(p, note, vel, chan);
704 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan)
713 * terminate note
715 void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan)
718 snd_printk(KERN_DEBUG "Terminate note, ch#: %i, inst#: %i\n",
750 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan);