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;
509 const S_ARTICULATION *pArt;
521 pArt = &pSynth->pEAS->pArticulations[pWTVoice->artIndex];
526 WT_UpdateEG1(pWTVoice, &pArt->eg1);
527 WT_UpdateEG2(pWTVoice, &pArt->eg2);
530 WT_UpdateLFO(&pWTVoice->modLFO, pArt->lfoFreq);
535 WT_UpdateFilter(pWTVoice, &intFrame, pArt);
541 intFrame.frame.gainTarget = WT_UpdateGain(pVoice, pWTVoice, pArt, pChannel, pWTRegion->gain);
551 intFrame.frame.phaseIncrement = WT_UpdatePhaseInc(pWTVoice, pArt, pChannel, temp);
615 static EAS_I32 WT_UpdatePhaseInc (S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 pitchCents)
637 (MULT_EG1_EG1(pWTVoice->eg2Value, pArt->eg2ToPitch)) +
638 (MULT_EG1_EG1(pWTVoice->modLFO.lfoValue, pArt->lfoToPitch));
712 * Calculate and assign static voice parameters as part of WT_UpdateVoice()
725 static EAS_I32 WT_UpdateGain (S_SYNTH_VOICE *pVoice, S_WT_VOICE *pWTVoice, const S_ARTICULATION *pArt, S_SYNTH_CHANNEL *pChannel, EAS_I32 gain)
741 /* region gain is fixed as part of the articulation */
748 lfoGain = MULT_EG1_EG1(pWTVoice->modLFO.lfoValue, pArt->lfoToGain);
1000 static void WT_UpdateFilter (S_WT_VOICE *pWTVoice, S_WT_INT_FRAME *pIntFrame, const S_ARTICULATION *pArt)
1005 if (pArt->filterCutoff == DEFAULT_EAS_FILTER_CUTOFF_FREQUENCY)
1012 cutoff = MULT_EG1_EG1(pWTVoice->eg2Value, pArt->eg2ToFc);
1013 cutoff += pArt->filterCutoff;
1024 WT_SetFilterCoeffs(pIntFrame, cutoff, pArt->filterQ);