• Home
  • Raw
  • Download

Lines Matching full:note

28 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
84 * Converts the note frequency to block and fnum values for the FM chip
94 int note, struct snd_midi_channel *chan) in snd_opl3_calc_pitch() argument
96 int block = ((note / 12) & 0x07) - 1; in snd_opl3_calc_pitch()
97 int idx = (note % 12) + 2; in snd_opl3_calc_pitch()
136 * Get a FM voice (channel) to play a note on.
250 snd_opl3_note_off_unsafe(opl3, vp->note, 0, in snd_opl3_timer_func()
288 * Start a note.
290 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_opl3_note_on() argument
310 int key = note; in snd_opl3_note_on()
321 snd_printk(KERN_DEBUG "Note on, ch %i, inst %i, note %i, vel %i\n", in snd_opl3_note_on()
322 chan->number, chan->midi_program, note, vel); in snd_opl3_note_on()
331 prg = note; in snd_opl3_note_on()
349 snd_opl3_drum_switch(opl3, note, vel, 1, chan); in snd_opl3_note_on()
537 note = fm->fix_key; in snd_opl3_note_on()
542 note += (fm->trnsps - 64); in snd_opl3_note_on()
544 snd_opl3_calc_pitch(&fnum, &blocknum, note, chan); in snd_opl3_note_on()
562 /* kill note after fixed duration (in centiseconds) */ in snd_opl3_note_on()
576 vp->note = key; in snd_opl3_note_on()
584 vp2->note = key; in snd_opl3_note_on()
598 debug_alloc(opl3, "note on ", voice); in snd_opl3_note_on()
660 debug_alloc(opl3, "note off", voice); in snd_opl3_kill_voice()
666 * Release a note in response to a midi note off.
668 static void snd_opl3_note_off_unsafe(void *p, int note, int vel, in snd_opl3_note_off_unsafe() argument
679 snd_printk(KERN_DEBUG "Note off, ch %i, inst %i, note %i\n", in snd_opl3_note_off_unsafe()
680 chan->number, chan->midi_program, note); in snd_opl3_note_off_unsafe()
685 snd_opl3_drum_switch(opl3, note, vel, 0, chan); in snd_opl3_note_off_unsafe()
689 they are grouped by the same channel and note values */ in snd_opl3_note_off_unsafe()
692 if (vp->state > 0 && vp->chan == chan && vp->note == note) { in snd_opl3_note_off_unsafe()
705 void snd_opl3_note_off(void *p, int note, int vel, in snd_opl3_note_off() argument
712 snd_opl3_note_off_unsafe(p, note, vel, chan); in snd_opl3_note_off()
719 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan) in snd_opl3_key_press() argument
728 * terminate note
730 void snd_opl3_terminate_note(void *p, int note, struct snd_midi_channel *chan) in snd_opl3_terminate_note() argument
733 snd_printk(KERN_DEBUG "Terminate note, ch#: %i, inst#: %i\n", in snd_opl3_terminate_note()
765 snd_opl3_calc_pitch(&fnum, &blocknum, vp->note, vp->chan); in snd_opl3_update_pitch()