Lines Matching refs:temp

518     EAS_I32 temp;  in WT_UpdateVoice()  local
552 temp = pChannel->staticPitch + pWTRegion->tuning; in WT_UpdateVoice()
556 temp += pVoice->note * 100; in WT_UpdateVoice()
558 temp += (pVoice->note + pSynth->globalTranspose) * 100; in WT_UpdateVoice()
559 intFrame.frame.phaseIncrement = WT_UpdatePhaseInc(pWTVoice, pArt, pChannel, temp); in WT_UpdateVoice()
628 EAS_I32 temp; in WT_UpdatePhaseInc() local
631 temp = MULT_EG1_EG1(DEFAULT_LFO_MOD_WHEEL_TO_PITCH_CENTS, in WT_UpdatePhaseInc()
635 temp += MULT_EG1_EG1(DEFAULT_LFO_CHANNEL_PRESSURE_TO_PITCH_CENTS, in WT_UpdatePhaseInc()
639 temp = MULT_EG1_EG1(pWTVoice->modLFO.lfoValue, temp); in WT_UpdatePhaseInc()
647 temp += pitchCents + in WT_UpdatePhaseInc()
652 return EAS_Calculate2toX(temp); in WT_UpdatePhaseInc()
739 EAS_I32 temp; in WT_UpdateGain() local
749 temp = (pVoice->velocity) << (NUM_EG1_FRAC_BITS - 7); in WT_UpdateGain()
750 temp = MULT_EG1_EG1(temp, temp); in WT_UpdateGain()
753 temp = MULT_EG1_EG1(temp, gain); in WT_UpdateGain()
756 temp = MULT_EG1_EG1(temp, pChannel->staticGain); in WT_UpdateGain()
764 temp = MULT_EG1_EG1(temp, lfoGain); in WT_UpdateGain()
767 temp = (EAS_I16)MULT_EG1_EG1(temp, pWTVoice->eg1Value); in WT_UpdateGain()
769 return temp; in WT_UpdateGain()
793 EAS_I32 temp; in WT_UpdateEG1() local
798 temp = pWTVoice->eg1Value + pWTVoice->eg1Increment; in WT_UpdateEG1()
801 if (temp >= SYNTH_FULL_SCALE_EG1_GAIN) in WT_UpdateEG1()
804 temp = SYNTH_FULL_SCALE_EG1_GAIN; in WT_UpdateEG1()
815 temp = MULT_EG1_EG1(pWTVoice->eg1Value, pWTVoice->eg1Increment); in WT_UpdateEG1()
818 if (temp <= pEnv->sustainLevel) in WT_UpdateEG1()
821 temp = pEnv->sustainLevel; in WT_UpdateEG1()
824 if (temp > 0) in WT_UpdateEG1()
838 temp = MULT_EG1_EG1(pWTVoice->eg1Value, pWTVoice->eg1Increment); in WT_UpdateEG1()
841 if (temp <= 0) in WT_UpdateEG1()
843 temp = 0; in WT_UpdateEG1()
850 temp = 0; in WT_UpdateEG1()
855 temp = 0; in WT_UpdateEG1()
864 pWTVoice->eg1Value = (EAS_I16) temp; in WT_UpdateEG1()
886 EAS_I32 temp; in WT_UpdateEG2() local
891 temp = pWTVoice->eg2Value + pWTVoice->eg2Increment; in WT_UpdateEG2()
894 if (temp >= SYNTH_FULL_SCALE_EG1_GAIN) in WT_UpdateEG2()
897 temp = SYNTH_FULL_SCALE_EG1_GAIN; in WT_UpdateEG2()
909 temp = pWTVoice->eg2Value -pWTVoice->eg2Increment; in WT_UpdateEG2()
912 if (temp <= pEnv->sustainLevel) in WT_UpdateEG2()
915 temp = pEnv->sustainLevel; in WT_UpdateEG2()
926 temp = pWTVoice->eg2Value - pWTVoice->eg2Increment; in WT_UpdateEG2()
928 if (temp <= 0) in WT_UpdateEG2()
930 temp = 0; in WT_UpdateEG2()
938 temp = 0; in WT_UpdateEG2()
943 temp = 0; in WT_UpdateEG2()
951 pWTVoice->eg2Value = (EAS_I16) temp; in WT_UpdateEG2()
1240 EAS_I32 temp; in WT_SetFilterCoeffs() local
1251 temp = k2g1[resonance] + MULT_AUDIO_COEF(cutoff, k2g2[resonance]); in WT_SetFilterCoeffs()
1252 temp = k2g0 + MULT_AUDIO_COEF(cutoff, temp); in WT_SetFilterCoeffs()
1253 pIntFrame->frame.b2 = temp; in WT_SetFilterCoeffs()
1256 temp = MULT_AUDIO_COEF(cutoff, nk1g2); in WT_SetFilterCoeffs()
1257 temp = nk1g0 + MULT_AUDIO_COEF(cutoff, temp); in WT_SetFilterCoeffs()
1258 temp += MULT_AUDIO_COEF(temp, pIntFrame->frame.b2); in WT_SetFilterCoeffs()
1259 pIntFrame->frame.b1 = temp >> 1; in WT_SetFilterCoeffs()
1262 temp = n1g2[resonance] + MULT_AUDIO_COEF(cutoff, n1g3[resonance]); in WT_SetFilterCoeffs()
1263 temp = MULT_AUDIO_COEF(cutoff, temp); in WT_SetFilterCoeffs()
1264 temp = MULT_AUDIO_COEF(cutoff, temp); in WT_SetFilterCoeffs()
1265 pIntFrame->frame.k = temp; in WT_SetFilterCoeffs()