MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / set_trans

Function set_trans

extlibs/soloud/src/audiosource/speech/klatt.cpp:809–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

807 */
808
809static void set_trans(Slope *t, Element * a, Element * b,int ext, int e)
810{
811 int i;
812
813 for (i = 0; i < ELM_COUNT; i++)
814 {
815 t[i].mTime = ((ext) ? a->mInterpolator[i].mExtDelay : a->mInterpolator[i].mIntDelay);
816
817 if (t[i].mTime)
818 {
819 t[i].mValue = a->mInterpolator[i].mFixed + (a->mInterpolator[i].mProportion * b->mInterpolator[i].mSteady) * 0.01f; // mProportion is in scale 0..100, so *0.01.
820 }
821 else
822 {
823 t[i].mValue = b->mInterpolator[i].mSteady;
824 }
825 }
826}
827
828static float lerp(float a, float b, int t, int d)
829{

Callers 1

synthMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected