Lines Matching defs:voice

169 	/* Set up voice table */
293 * a lot of registers each time a voice-attack happens. some kind of
299 opl_set_op_reg(struct opl_softc *sc, int base, int voice, int op, u_char value)
301 struct opl_voice *v = &sc->voices[voice];
309 opl_set_ch_reg(struct opl_softc *sc, int base, int voice, u_char value)
311 struct opl_voice *v = &sc->voices[voice];
489 uint_fast16_t voice, midipitch_t mp, int16_t level_cB)
491 oplsyn_setv(ms, voice, mp, level_cB,
496 oplsyn_repitchv(midisyn *ms, uint_fast16_t voice, midipitch_t mp)
498 oplsyn_setv(ms, voice, mp, 0, OPLACT_PITCH);
502 oplsyn_relevelv(midisyn *ms, uint_fast16_t voice, int16_t level_cB)
504 oplsyn_setv(ms, voice, 0, level_cB, OPLACT_LEVEL);
509 uint_fast16_t voice, midipitch_t mp, int16_t level_cB, int act)
524 DPRINTFN(3, ("%s: %p %d %u %d\n", __func__, sc, voice,
528 if (voice >= sc->syn.nvoice) {
529 printf("%s: bad voice %d\n", __func__, voice);
533 v = &sc->voices[voice];
537 opl_set_op_reg(sc, OPL_KSL_LEVEL, voice, 0, 0xff);
538 opl_set_op_reg(sc, OPL_KSL_LEVEL, voice, 1, 0xff);
539 opl_set_ch_reg(sc, OPL_KEYON_BLOCK, voice, 0);
541 chan = MS_GETCHAN(&ms->voices[voice]);
544 opl_load_patch(sc, voice);
551 opl_set_ch_reg(sc, OPL_FEEDBACK_CONNECTION, voice, fbc);
556 /* 2 voice */
569 opl_set_op_reg(sc, OPL_KSL_LEVEL, voice, 0, r40m);
570 opl_set_op_reg(sc, OPL_KSL_LEVEL, voice, 1, r40c);
607 opl_set_op_reg(sc, OPL_AM_VIB, voice, 0, r20m);
608 opl_set_op_reg(sc, OPL_AM_VIB, voice, 1, r20c);
610 opl_set_ch_reg(sc, OPL_FNUM_LOW, voice, rA0);
611 opl_set_ch_reg(sc, OPL_KEYON_BLOCK, voice, rB0);
616 oplsyn_releasev(midisyn *ms, uint_fast16_t voice, uint_fast8_t vel)
623 DPRINTFN(1, ("%s: %p %d\n", __func__, sc, voice));
626 if (voice >= sc->syn.nvoice) {
627 printf("oplsyn_noteoff: bad voice %d\n", voice);
631 v = &sc->voices[voice];
632 opl_set_ch_reg(sc, 0xB0, voice, v->rB0 & ~OPL_KEYON_BIT);