petiaccja / DSPBB

Fundamental algorithms for manipulating and filtering digital signals.
Other
8 stars 2 forks source link

Allow overly large buffers for chunk filtering #41

Closed petiaccja closed 2 years ago

petiaccja commented 2 years ago

The size of the output buffer should be allowed to be larger than the input buffers, this makes it easy to include the fade-out when the signal runs out. Alternatively, one could feed an all-zero signal as input, but why create another signal just for that?

petiaccja commented 2 years ago

It's actually quite error-prone to allow larger signals. At the moment, a size mismatch is met with an exception, whereas with arbitrarily large outputs mismatched chunks would be silently accepted.

Possible solutions:

I'll close this for now as it's still fairly easy to just feed an all-zero signal