You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

StateBaseSynthesisH.inl 602B

12345678910111213141516
  1. template <typename Sample>
  2. inline Sample processSynthesis (const Sample in, const Cascade& c)
  3. {
  4. double out = in;
  5. StateType* state = m_stateArray;
  6. Biquad const* stage = c.m_stageArray;
  7. // const double vsa = ac(); // => vsa = -vsa
  8. int i = c.m_numStages - 1;
  9. out = (state++)->process1 (out, *stage++, 0); // => 0 instead of vsa
  10. for (; --i >= 0;)
  11. out = (state++)->process1 (out, *stage++, 0);
  12. //for (int i = c.m_numStages; --i >= 0; ++state, ++stage)
  13. // out = state->process1 (out, *stage, vsa);
  14. return Sample (out);
  15. }