Lines Matching refs:temp

225     EAS_I32 temp;
228 temp = (EAS_I32) nLogRate << 7;
229 temp += ((EAS_I32) nKeyNumber - EG_SCALE_PIVOT_POINT) * (EAS_I32) nEGScale;
232 temp = max(temp, 0);
233 temp = min(temp, 32767);
237 return fmRateTable[temp >> 8];
401 EAS_I32 temp;
422 temp = (EAS_I32) pChannel->pan - 64;
423 temp += (EAS_I32) pRegion->pan;
424 if (temp < -64)
425 temp = -64;
426 if (temp > 64)
427 temp = 64;
428 pFMVoice->pan = (EAS_I8) temp;
449 temp = (EAS_I32) (pVoice->velocity - 127) << 5;
451 temp = (EAS_I32) fmControlTable[pVoice->velocity];
455 temp = (temp * (EAS_I32)(pRegion->oper[operIndex].velocityRelease & 0xf0)) >> 7;
458 temp -= ((EAS_I32) pVoice->note - KEY_SCALE_PIVOT_POINT) * (EAS_I32) fmScaleTable[pRegion->oper[operIndex].egKeyScale & 0x0f];
461 temp = min(temp, 0);
462 temp = max(temp, -32768);
465 pFMVoice->oper[operIndex].baseGain = (EAS_I16) EAS_LogToLinear16(temp);
518 EAS_I32 temp;
523 temp = fmControlTable[pChannel->volume];
526 temp += fmControlTable[pChannel->expression];
529 pChannel->staticGain = (EAS_I16) max(temp,-32768);
533 temp = (((EAS_I32)(pChannel->pitchBend) << 2) - 32768);
535 temp = FMUL_15x15(temp, pChannel->pitchBendSensitivity);
538 temp += MAGIC_NUMBER;
542 temp += (pChannel->finePitch + (pChannel->coarsePitch * 100));
545 pChannel->staticPitch = temp;
549 temp = FMUL_15x15(DEFAULT_LFO_MOD_WHEEL_TO_PITCH_CENTS,
553 pChannel->lfoAmt = (EAS_I16) (temp +
627 EAS_U32 temp;
640 temp = pOper->envGain + fmAttackTable[pOperData->attackDecay >> 4];
643 if (temp >= 0x7fff)
649 pOper->envGain = (EAS_U16) temp;
658 temp = (EAS_U32) (pOperData->sustain & 0xfc) << 7;
659 if (pOper->envGain <= (EAS_U16) temp)
674 pOper->envGain = (EAS_U16) temp;
730 EAS_I32 temp;
743 temp = (fmScaleTable[pRegion->vibTrem >> 4] >> 1) + pChannel->lfoAmt;
746 lfoPitch = FMUL_15x15(pFMVoice->lfoValue, temp);
757 temp = pRegion->oper[operIndex].tuning +
762 temp += lfoPitch;
766 temp += 6000;
768 temp += pitch;
769 pFMVoice->oper[operIndex].pitch = (EAS_I16) temp;
806 EAS_I32 temp;
865 temp = ((fmScaleTable[pRegion->vibTrem & 0x0f] >> 1) * pFMVoice->lfoValue) >> FM_LFO_GAIN_SHIFT;
868 temp += pChannel->staticGain;
871 if (temp < -32767)
876 voiceGainTarget = EAS_LogToLinear16(temp);