Home | History | Annotate | Download | only in ic

Lines Matching refs:voice

169 	/* Set up voice table */
294 * a lot of registers each time a voice-attack happens. some kind of
300 opl_set_op_reg(struct opl_softc *sc, int base, int voice, int op, u_char value)
302 struct opl_voice *v = &sc->voices[voice];
310 opl_set_ch_reg(struct opl_softc *sc, int base, int voice, u_char value)
312 struct opl_voice *v = &sc->voices[voice];
490 uint_fast16_t voice, midipitch_t mp, int16_t level_cB)
492 oplsyn_setv(ms, voice, mp, level_cB,
497 oplsyn_repitchv(midisyn *ms, uint_fast16_t voice, midipitch_t mp)
499 oplsyn_setv(ms, voice, mp, 0, OPLACT_PITCH);
503 oplsyn_relevelv(midisyn *ms, uint_fast16_t voice, int16_t level_cB)
505 oplsyn_setv(ms, voice, 0, level_cB, OPLACT_LEVEL);
510 uint_fast16_t voice, midipitch_t mp, int16_t level_cB, int act)
525 DPRINTFN(3, ("%s: %p %d %u %d\n", __func__, sc, voice,
529 if (voice >= sc->syn.nvoice) {
530 printf("%s: bad voice %d\n", __func__, voice);
534 v = &sc->voices[voice];
538 opl_set_op_reg(sc, OPL_KSL_LEVEL, voice, 0, 0xff);
539 opl_set_op_reg(sc, OPL_KSL_LEVEL, voice, 1, 0xff);
540 opl_set_ch_reg(sc, OPL_KEYON_BLOCK, voice, 0);
542 chan = MS_GETCHAN(&ms->voices[voice]);
545 opl_load_patch(sc, voice);
552 opl_set_ch_reg(sc, OPL_FEEDBACK_CONNECTION, voice, fbc);
557 /* 2 voice */
570 opl_set_op_reg(sc, OPL_KSL_LEVEL, voice, 0, r40m);
571 opl_set_op_reg(sc, OPL_KSL_LEVEL, voice, 1, r40c);
608 opl_set_op_reg(sc, OPL_AM_VIB, voice, 0, r20m);
609 opl_set_op_reg(sc, OPL_AM_VIB, voice, 1, r20c);
611 opl_set_ch_reg(sc, OPL_FNUM_LOW, voice, rA0);
612 opl_set_ch_reg(sc, OPL_KEYON_BLOCK, voice, rB0);
617 oplsyn_releasev(midisyn *ms, uint_fast16_t voice, uint_fast8_t vel)
624 DPRINTFN(1, ("%s: %p %d\n", __func__, sc, voice));
627 if (voice >= sc->syn.nvoice) {
628 printf("oplsyn_noteoff: bad voice %d\n", voice);
632 v = &sc->voices[voice];
633 opl_set_ch_reg(sc, 0xB0, voice, v->rB0 & ~OPL_KEYON_BIT);