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

Method initsynth

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

Source from the content-addressed store, hash-verified

880
881
882void klatt::initsynth(int aElementCount,unsigned char *aElement)
883{
884 mElement = aElement;
885 mElementCount = aElementCount;
886 mElementIndex = 0;
887 mLastElement = &gElement[0];
888 mSeed = 5;
889 mTStress = 0;
890 mNTStress = 0;
891 mFrame.mF0FundamentalFreq = mBaseF0;
892 mTop = 1.1f * mFrame.mF0FundamentalFreq;
893 mFrame.mNasalPoleFreq = (int)mLastElement->mInterpolator[ELM_FN].mSteady;
894 mFrame.mFormant1ParallelBandwidth = mFrame.mFormant1Bandwidth = 60;
895 mFrame.mFormant2ParallelBandwidth = mFrame.mFormant2Bandwidth = 90;
896 mFrame.mFormant3ParallelBandwidth = mFrame.mFormant3Bandwidth = 150;
897// mFrame.mFormant4ParallelBandwidth = (default)
898
899 // Set stress attack/decay slope
900 mStressS.mTime = 40;
901 mStressE.mTime = 40;
902 mStressE.mValue = 0.0;
903}
904
905int klatt::synth(int aSampleCount, short *aSamplePointer)
906{

Callers 2

SpeechInstanceMethod · 0.80
rewindMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected