| 6 | {} |
| 7 | |
| 8 | void MorphFFTProcessor::spectral_process(const PolarVector &in, PolarVector &out, int halfSize) { |
| 9 | for (unsigned int i = 0; i < in.size(); ++i) { |
| 10 | out[i].m_mag = 0.0; |
| 11 | out[i].m_phase = 0.0; |
| 12 | } |
| 13 | |
| 14 | Array<int>* pMorphPoints = *m_pMorphPointsPointer; |
| 15 | int size = pMorphPoints->size(); |
| 16 | if(size != halfSize) { |
| 17 | return; |
| 18 | } |
| 19 | |
| 20 | for(int i=0; i < halfSize; ++i) { |
| 21 | const auto mappedIndex = (*pMorphPoints)[i]; |
| 22 | out[static_cast<size_t>(mappedIndex)] = in[static_cast<size_t>(i)]; |
| 23 | } |
| 24 | } |
nothing calls this directly
no outgoing calls
no test coverage detected