Home | History | Annotate | Download | only in lib_src

Lines Matching refs:pArt

55 static EAS_I32 WT_UpdatePhaseInc (S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 pitchCents);
56 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain);
66 static void WT_UpdateFilter (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pIntFrame, const S_ARTICULATION *pArt);
282 * and the RPN2 (coarse tuning) value. By using RPN2 as part of the
311 const S_ARTICULATION *pArt;
346 pArt = &pSynth->pEAS->pArticulations[pWTVoice->artIndex];
351 pWTVoice->eg1Increment = pArt->eg1.attackTime;
354 pWTVoice->eg2Increment = pArt->eg2.attackTime;
358 pWTVoice->modLFO.lfoPhase = -pArt->lfoDelay;
371 pan += pArt->pan;
505 const S_ARTICULATION *pArt;
517 pArt = &pSynth->pEAS->pArticulations[pWTVoice->artIndex];
522 WT_UpdateEG1(pWTVoice, &pArt->eg1);
523 WT_UpdateEG2(pWTVoice, &pArt->eg2);
526 WT_UpdateLFO(&pWTVoice->modLFO, pArt->lfoFreq);
531 WT_UpdateFilter(pWTVoice, &intFrame, pArt);
537 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain);
547 intFrame.frame.phaseIncrement = WT_UpdatePhaseInc(pWTVoice, pArt, pChannel, temp);
609 static EAS_I32 WT_UpdatePhaseInc (S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 pitchCents)
631 (MULT_EG1_EG1(pWTVoice->eg2Value, pArt->eg2ToPitch)) +
632 (MULT_EG1_EG1(pWTVoice->modLFO.lfoValue, pArt->lfoToPitch));
706 * Calculate and assign static voice parameters as part of WT_UpdateVoice()
719 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain)
735 /* region gain is fixed as part of the articulation */
742 lfoGain = MULT_EG1_EG1(pWTVoice->modLFO.lfoValue, pArt->lfoToGain);
994 static void WT_UpdateFilter (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pIntFrame, const S_ARTICULATION *pArt)
999 if (pArt->filterCutoff == DEFAULT_EAS_FILTER_CUTOFF_FREQUENCY)
1006 cutoff = MULT_EG1_EG1(pWTVoice->eg2Value, pArt->eg2ToFc);
1007 cutoff += pArt->filterCutoff;
1018 WT_SetFilterCoeffs(pIntFrame, cutoff, pArt->filterQ);