Lines Matching refs:pDLSArt

56     const S_DLS_ARTICULATION *pDLSArt;  in DLS_MuteVoice()  local
59 pDLSArt = &pSynth->pDLS->pDLSArticulations[pWTVoice->artIndex]; in DLS_MuteVoice()
69 pWTVoice->eg1Increment = pDLSArt->eg1ShutdownTime; in DLS_MuteVoice()
71 pWTVoice->eg2Increment = pDLSArt->eg2.releaseTime; in DLS_MuteVoice()
84 const S_DLS_ARTICULATION *pDLSArt; in DLS_ReleaseVoice() local
87 pDLSArt = &pSynth->pDLS->pDLSArticulations[pWTVoice->artIndex]; in DLS_ReleaseVoice()
97 pWTVoice->eg1Increment = pDLSArt->eg1.releaseTime; in DLS_ReleaseVoice()
101 pWTVoice->eg2Increment = pDLSArt->eg2.releaseTime; in DLS_ReleaseVoice()
115 const S_DLS_ARTICULATION *pDLSArt; in DLS_SustainPedal() local
118 pDLSArt = &pSynth->pDLS->pDLSArticulations[pWTVoice->artIndex]; in DLS_SustainPedal()
121 if (pWTVoice->eg1Value < pDLSArt->eg1.sustainLevel) in DLS_SustainPedal()
140 static EAS_I32 DLS_UpdatePhaseInc (S_WT_VOICE *pWTVoice, const S_DLS_ARTICULATION *pDLSArt, S_SYNTH… in DLS_UpdatePhaseInc() argument
145 temp = pDLSArt->modLFOToPitch; in DLS_UpdatePhaseInc()
149 temp += ((pDLSArt->modLFOCC1ToPitch * pChannel->modWheel) >> 7); in DLS_UpdatePhaseInc()
153 temp += ((pDLSArt->modLFOChanPressToPitch * pChannel->channelPressure) >> 7); in DLS_UpdatePhaseInc()
159 temp = pDLSArt->vibLFOToPitch; in DLS_UpdatePhaseInc()
163 temp += ((pDLSArt->vibLFOCC1ToPitch * pChannel->modWheel) >> 7); in DLS_UpdatePhaseInc()
167 temp += ((pDLSArt->vibLFOChanPressToPitch * pChannel->channelPressure) >> 7); in DLS_UpdatePhaseInc()
173 pitchCents += FMUL_15x15(pDLSArt->eg2ToPitch, pWTVoice->eg2Value); in DLS_UpdatePhaseInc()
185 static EAS_I32 DLS_UpdateGain (S_WT_VOICE *pWTVoice, const S_DLS_ARTICULATION *pDLSArt, S_SYNTH_CHA… in DLS_UpdateGain() argument
190 temp = pDLSArt->modLFOToGain; in DLS_UpdateGain()
194 temp += ((pDLSArt->modLFOCC1ToGain * pChannel->modWheel) >> 7); in DLS_UpdateGain()
198 temp += ((pDLSArt->modLFOChanPressToGain * pChannel->channelPressure) >> 7); in DLS_UpdateGain()
230 if (pDLSArt->filterQandFlags & FLAG_DLS_VELOCITY_SENSITIVE) in DLS_UpdateGain()
247 …*pWTVoice, S_WT_INT_FRAME *pIntFrame, S_SYNTH_CHANNEL *pChannel, const S_DLS_ARTICULATION *pDLSArt) in DLS_UpdateFilter() argument
253 if (pDLSArt->filterCutoff == DEFAULT_DLS_FILTER_CUTOFF_FREQUENCY) in DLS_UpdateFilter()
260 cutoff = pDLSArt->filterCutoff; in DLS_UpdateFilter()
263 temp = pDLSArt->modLFOToFc; in DLS_UpdateFilter()
267 temp += ((pDLSArt->modLFOCC1ToFc * pChannel->modWheel) >> 7); in DLS_UpdateFilter()
271 temp += ((pDLSArt->modLFOChanPressToFc* pChannel->channelPressure) >> 7); in DLS_UpdateFilter()
277 cutoff += FMUL_15x15(pWTVoice->eg2Value, pDLSArt->eg2ToFc); in DLS_UpdateFilter()
281 cutoff += (pVoice->velocity * pDLSArt->velToFc) >> 7; in DLS_UpdateFilter()
285 cutoff += (pVoice->note * pDLSArt->keyNumToFc) >> 7; in DLS_UpdateFilter()
296 WT_SetFilterCoeffs(pIntFrame, cutoff, pDLSArt->filterQandFlags & FILTER_Q_MASK); in DLS_UpdateFilter()
309 const S_DLS_ARTICULATION *pDLSArt; in DLS_StartVoice() local
320 pDLSArt = &pSynth->pDLS->pDLSArticulations[pWTVoice->artIndex]; in DLS_StartVoice()
324 …DLS_UpdateEnvelope(pVoice, pChannel, &pDLSArt->eg1, &pWTVoice->eg1Value, &pWTVoice->eg1Increment, … in DLS_StartVoice()
326 …DLS_UpdateEnvelope(pVoice, pChannel, &pDLSArt->eg2, &pWTVoice->eg2Value, &pWTVoice->eg2Increment, … in DLS_StartVoice()
330 pWTVoice->modLFO.lfoPhase = pDLSArt->modLFO.lfoDelay; in DLS_StartVoice()
332 pWTVoice->vibLFO.lfoPhase = pDLSArt->vibLFO.lfoDelay; in DLS_StartVoice()
335 …DLS_UpdateEnvelope(pVoice, pChannel, &pDLSArt->eg1, &pWTVoice->eg1Value, &pWTVoice->eg1Increment, … in DLS_StartVoice()
336 …DLS_UpdateEnvelope(pVoice, pChannel, &pDLSArt->eg2, &pWTVoice->eg2Value, &pWTVoice->eg2Increment, … in DLS_StartVoice()
337 …pVoice->gain = (EAS_I16) DLS_UpdateGain(pWTVoice, pDLSArt, pChannel, pDLSRegion->wtRegion.gain, pV… in DLS_StartVoice()
340 …EAS_CalcPanControl((EAS_INT) pChannel->pan - 64 + (EAS_INT) pDLSArt->pan, &pWTVoice->gainLeft, &pW… in DLS_StartVoice()
383 const S_DLS_ARTICULATION *pDLSArt; in DLS_UpdateVoice() local
392 pDLSArt = &pSynth->pDLS->pDLSArticulations[pWTVoice->artIndex]; in DLS_UpdateVoice()
395 …DLS_UpdateEnvelope(pVoice, pChannel, &pDLSArt->eg1, &pWTVoice->eg1Value, &pWTVoice->eg1Increment, … in DLS_UpdateVoice()
396 …DLS_UpdateEnvelope(pVoice, pChannel, &pDLSArt->eg2, &pWTVoice->eg2Value, &pWTVoice->eg2Increment, … in DLS_UpdateVoice()
399 WT_UpdateLFO(&pWTVoice->modLFO, pDLSArt->modLFO.lfoFreq); in DLS_UpdateVoice()
400 WT_UpdateLFO(&pWTVoice->vibLFO, pDLSArt->vibLFO.lfoFreq); in DLS_UpdateVoice()
403 temp = pDLSArt->tuning + pChannel->staticPitch + pDLSRegion->wtRegion.tuning + in DLS_UpdateVoice()
404 (((EAS_I32) pVoice->note * (EAS_I32) pDLSArt->keyNumToPitch) >> 7); in DLS_UpdateVoice()
411 intFrame.frame.phaseIncrement = DLS_UpdatePhaseInc(pWTVoice, pDLSArt, pChannel, temp); in DLS_UpdateVoice()
414 …intFrame.frame.gainTarget = DLS_UpdateGain(pWTVoice, pDLSArt, pChannel, pDLSRegion->wtRegion.gain,… in DLS_UpdateVoice()
417 DLS_UpdateFilter(pVoice, pWTVoice, &intFrame, pChannel, pDLSArt); in DLS_UpdateVoice()