| 880 | |
| 881 | |
| 882 | void 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 | |
| 905 | int klatt::synth(int aSampleCount, short *aSamplePointer) |
| 906 | { |
no outgoing calls
no test coverage detected