Closed beserge closed 2 years ago
@brbrr Actually great point -- when using #include <cmath>
this would require sinf
instead of regular sin
to prevent unintentional casting to/from double-precision.
However, if we include our local dsp.h instead (that includes math.h, as well as the macros for PI_F
, etc.) It should use the std::sin
from the cpp std library, which is a template, that correctly maps to the float type.
Pending any changes for new features, and adding a buffer class to DaisySP this seems good to go
Works fine so far. The only thing is the way you initialize it is super annoying. Something like
The easiest fix would be to just make the user put the whole looper object in SDRAM rather than just the buffer.