Lines Matching refs:voice
430 int voice; in alloc_voice() local
434 voice = synth_devs[dev]->alloc_voice(dev, chn, note, in alloc_voice()
436 synth_devs[dev]->alloc.map[voice] = key; in alloc_voice()
437 synth_devs[dev]->alloc.alloc_times[voice] = in alloc_voice()
439 return voice; in alloc_voice()
450 int voice = -1; in seq_chn_voice_event() local
462 voice = find_voice(dev, chn, note); in seq_chn_voice_event()
477 if (voice == -1 && seq_mode == SEQ_2 && synth_devs[dev]->alloc_voice) in seq_chn_voice_event()
480 voice = alloc_voice(dev, chn, note); in seq_chn_voice_event()
482 if (voice == -1) in seq_chn_voice_event()
483 voice = chn; in seq_chn_voice_event()
494 synth_devs[dev]->set_instr(dev, voice, 128 + note); in seq_chn_voice_event()
497 synth_devs[dev]->setup_voice(dev, voice, chn); in seq_chn_voice_event()
499 synth_devs[dev]->start_note(dev, voice, note, parm); in seq_chn_voice_event()
503 if (voice == -1) in seq_chn_voice_event()
504 voice = chn; in seq_chn_voice_event()
505 synth_devs[dev]->kill_note(dev, voice, note, parm); in seq_chn_voice_event()
509 if (voice == -1) in seq_chn_voice_event()
510 voice = chn; in seq_chn_voice_event()
511 synth_devs[dev]->aftertouch(dev, voice, parm); in seq_chn_voice_event()