Home | History | Annotate | Download | only in lib_src

Lines Matching refs:temp

506     EAS_I32 temp;
540 temp = pChannel->staticPitch + pWTRegion->tuning;
544 temp += pVoice->note * 100;
546 temp += (pVoice->note + pSynth->globalTranspose) * 100;
547 intFrame.frame.phaseIncrement = WT_UpdatePhaseInc(pWTVoice, pArt, pChannel, temp);
611 EAS_I32 temp;
614 temp = MULT_EG1_EG1(DEFAULT_LFO_MOD_WHEEL_TO_PITCH_CENTS,
618 temp += MULT_EG1_EG1(DEFAULT_LFO_CHANNEL_PRESSURE_TO_PITCH_CENTS,
622 temp = MULT_EG1_EG1(pWTVoice->modLFO.lfoValue, temp);
630 temp += pitchCents +
635 return EAS_Calculate2toX(temp);
722 EAS_I32 temp;
732 temp = (pVoice->velocity) << (NUM_EG1_FRAC_BITS - 7);
733 temp = MULT_EG1_EG1(temp, temp);
736 temp = MULT_EG1_EG1(temp, gain);
739 temp = MULT_EG1_EG1(temp, pChannel->staticGain);
747 temp = MULT_EG1_EG1(temp, lfoGain);
750 temp = (EAS_I16)MULT_EG1_EG1(temp, pWTVoice->eg1Value);
752 return temp;
776 EAS_I32 temp;
781 temp = pWTVoice->eg1Value + pWTVoice->eg1Increment;
784 if (temp >= SYNTH_FULL_SCALE_EG1_GAIN)
787 temp = SYNTH_FULL_SCALE_EG1_GAIN;
798 temp = MULT_EG1_EG1(pWTVoice->eg1Value, pWTVoice->eg1Increment);
801 if (temp <= pEnv->sustainLevel)
804 temp = pEnv->sustainLevel;
807 if (temp > 0)
821 temp = MULT_EG1_EG1(pWTVoice->eg1Value, pWTVoice->eg1Increment);
824 if (temp <= 0)
826 temp = 0;
833 temp = 0;
838 temp = 0;
847 pWTVoice->eg1Value = (EAS_I16) temp;
869 EAS_I32 temp;
874 temp = pWTVoice->eg2Value + pWTVoice->eg2Increment;
877 if (temp >= SYNTH_FULL_SCALE_EG1_GAIN)
880 temp = SYNTH_FULL_SCALE_EG1_GAIN;
892 temp = pWTVoice->eg2Value -pWTVoice->eg2Increment;
895 if (temp <= pEnv->sustainLevel)
898 temp = pEnv->sustainLevel;
909 temp = pWTVoice->eg2Value - pWTVoice->eg2Increment;
911 if (temp <= 0)
913 temp = 0;
921 temp = 0;
926 temp = 0;
934 pWTVoice->eg2Value = (EAS_I16) temp;
1223 EAS_I32 temp;
1234 temp = k2g1[resonance] + MULT_AUDIO_COEF(cutoff, k2g2[resonance]);
1235 temp = k2g0 + MULT_AUDIO_COEF(cutoff, temp);
1236 pIntFrame->frame.b2 = temp;
1239 temp = MULT_AUDIO_COEF(cutoff, nk1g2);
1240 temp = nk1g0 + MULT_AUDIO_COEF(cutoff, temp);
1241 temp += MULT_AUDIO_COEF(temp, pIntFrame->frame.b2);
1242 pIntFrame->frame.b1 = temp >> 1;
1245 temp = n1g2[resonance] + MULT_AUDIO_COEF(cutoff, n1g3[resonance]);
1246 temp = MULT_AUDIO_COEF(cutoff, temp);
1247 temp = MULT_AUDIO_COEF(cutoff, temp);
1248 pIntFrame->frame.k = temp;