surge-synthesizer / shortcircuit-xt

Will be a sampler when its done!
GNU General Public License v3.0
242 stars 27 forks source link

Document and Correct the FIR Positinoing in Generator #985

Closed baconpaul closed 2 months ago

baconpaul commented 2 months ago

The generator had, i think, never been quite correct with the FIR position of the samples. In 6e0df99 we fixed this sort of, in that we sent the right sample position to allow loops to not click, but by doing so invited a read beyond end of buffer. Whether to include the FIR offset or not in the read data was ambiguous and buggy.

So this commit aims to resolve that by

  1. Clearly documenting the expectation
  2. Adding the FIRoffsets in the appropriate places per the documentation
  3. Testing, and hoping, but definitely improving

This addresses #982 quite nicely and I think just makes everything 'better' but requires some pretty careful testing