Lines Matching defs:note

21 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
77 * Converts the note frequency to block and fnum values for the FM chip
87 int note, struct snd_midi_channel *chan)
89 int block = ((note / 12) & 0x07) - 1;
90 int idx = (note % 12) + 2;
132 * Get a FM voice (channel) to play a note on.
245 snd_opl3_note_off_unsafe(opl3, vp->note, 0,
280 * Start a note.
282 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan)
302 int key = note;
311 opl3_dbg(opl3, "Note on, ch %i, inst %i, note %i, vel %i\n",
312 chan->number, chan->midi_program, note, vel);
320 prg = note;
338 snd_opl3_drum_switch(opl3, note, vel, 1, chan);
514 note = fm->fix_key;
519 note += (fm->trnsps - 64);
521 snd_opl3_calc_pitch(&fnum, &blocknum, note, chan);
537 /* kill note after fixed duration (in centiseconds) */
551 vp->note = key;
559 vp2->note = key;
573 debug_alloc(opl3, "note on ", voice);
630 debug_alloc(opl3, "note off", voice);
636 * Release a note in response to a midi note off.
638 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
648 opl3_dbg(opl3, "Note off, ch %i, inst %i, note %i\n",
649 chan->number, chan->midi_program, note);
653 snd_opl3_drum_switch(opl3, note, vel, 0, chan);
657 they are grouped by the same channel and note values */
660 if (vp->state > 0 && vp->chan == chan && vp->note == note) {
673 void snd_opl3_note_off(void *p, int note, int vel,
679 snd_opl3_note_off_unsafe(p, note, vel, chan);
685 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan)
692 * terminate note
694 void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan)
696 opl3_dbg(p, "Terminate note, ch#: %i, inst#: %i\n",
727 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan);