Home
last modified time | relevance | path

Searched refs:main_vol (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/sound/synth/emux/
Demux_synth.c743 int main_vol, expression_vol, master_vol; in calc_volume() local
752 main_vol = chan->control[MIDI_CTL_MSB_MAIN_VOLUME]; in calc_volume()
753 vol = (vp->velocity * main_vol * expression_vol) / (127*127); in calc_volume()
762 main_vol = chan->control[MIDI_CTL_MSB_MAIN_VOLUME] * vp->reg.amplitude / 127; in calc_volume()
763 LIMITVALUE(main_vol, 0, 127); in calc_volume()
765 vol = voltab1[main_vol] + voltab2[vp->velocity]; in calc_volume()