Home | History | Annotate | Download | only in lib_src

Lines Matching refs:temp

519     EAS_I32 temp;
553 temp = pChannel->staticPitch + pWTRegion->tuning;
557 temp += pVoice->note * 100;
559 temp += (pVoice->note + pSynth->globalTranspose) * 100;
560 intFrame.frame.phaseIncrement = WT_UpdatePhaseInc(pWTVoice, pArt, pChannel, temp);
561 temp = pWTVoice->loopEnd - pWTVoice->loopStart;
562 if (temp != 0) {
563 temp = temp << NUM_PHASE_FRAC_BITS;
564 if (intFrame.frame.phaseIncrement > temp) {
566 intFrame.frame.phaseIncrement %= temp;
637 EAS_I32 temp;
640 temp = MULT_EG1_EG1(DEFAULT_LFO_MOD_WHEEL_TO_PITCH_CENTS,
644 temp += MULT_EG1_EG1(DEFAULT_LFO_CHANNEL_PRESSURE_TO_PITCH_CENTS,
648 temp = MULT_EG1_EG1(pWTVoice->modLFO.lfoValue, temp);
656 temp += pitchCents +
661 return EAS_Calculate2toX(temp);
748 EAS_I32 temp;
758 temp = (pVoice->velocity) << (NUM_EG1_FRAC_BITS - 7);
759 temp = MULT_EG1_EG1(temp, temp);
762 temp = MULT_EG1_EG1(temp, gain);
765 temp = MULT_EG1_EG1(temp, pChannel->staticGain);
773 temp = MULT_EG1_EG1(temp, lfoGain);
776 temp = (EAS_I16)MULT_EG1_EG1(temp, pWTVoice->eg1Value);
778 return temp;
802 EAS_I32 temp;
807 temp = pWTVoice->eg1Value + pWTVoice->eg1Increment;
810 if (temp >= SYNTH_FULL_SCALE_EG1_GAIN)
813 temp = SYNTH_FULL_SCALE_EG1_GAIN;
824 temp = MULT_EG1_EG1(pWTVoice->eg1Value, pWTVoice->eg1Increment);
827 if (temp <= pEnv->sustainLevel)
830 temp = pEnv->sustainLevel;
833 if (temp > 0)
847 temp = MULT_EG1_EG1(pWTVoice->eg1Value, pWTVoice->eg1Increment);
850 if (temp <= 0)
852 temp = 0;
859 temp = 0;
864 temp = 0;
873 pWTVoice->eg1Value = (EAS_I16) temp;
895 EAS_I32 temp;
900 temp = pWTVoice->eg2Value + pWTVoice->eg2Increment;
903 if (temp >= SYNTH_FULL_SCALE_EG1_GAIN)
906 temp = SYNTH_FULL_SCALE_EG1_GAIN;
918 temp = pWTVoice->eg2Value -pWTVoice->eg2Increment;
921 if (temp <= pEnv->sustainLevel)
924 temp = pEnv->sustainLevel;
935 temp = pWTVoice->eg2Value - pWTVoice->eg2Increment;
937 if (temp <= 0)
939 temp = 0;
947 temp = 0;
952 temp = 0;
960 pWTVoice->eg2Value = (EAS_I16) temp;
1249 EAS_I32 temp;
1260 temp = k2g1[resonance] + MULT_AUDIO_COEF(cutoff, k2g2[resonance]);
1261 temp = k2g0 + MULT_AUDIO_COEF(cutoff, temp);
1262 pIntFrame->frame.b2 = temp;
1265 temp = MULT_AUDIO_COEF(cutoff, nk1g2);
1266 temp = nk1g0 + MULT_AUDIO_COEF(cutoff, temp);
1267 temp += MULT_AUDIO_COEF(temp, pIntFrame->frame.b2);
1268 pIntFrame->frame.b1 = temp >> 1;
1271 temp = n1g2[resonance] + MULT_AUDIO_COEF(cutoff, n1g3[resonance]);
1272 temp = MULT_AUDIO_COEF(cutoff, temp);
1273 temp = MULT_AUDIO_COEF(cutoff, temp);
1274 pIntFrame->frame.k = temp;