sensorium / Mozzi

sound synthesis library for Arduino
https://sensorium.github.io/Mozzi/
GNU Lesser General Public License v2.1
1.07k stars 186 forks source link

Added a simple wavefolder #159

Closed tomcombriat closed 1 year ago

tomcombriat commented 1 year ago

Clean PR for the wavefolder, in response to #153 .

Will test it a bit more extensively and add an example soon.

tomcombriat commented 1 year ago

Okay, at the cost of readability (have a look if you want ;) ), I gained a factor of 3 on the computation of the next() function. Two optimizations:

Will do an example soon but open to comments in the meantime. Best

tomcombriat commented 1 year ago

Hello! I think it starts to look good! I have added an example, and tested on Arduino and Teensy.

For the last, there is a compilation problem as the compiler does not know with overload to choose between:

A fix for that is coming soon. Best,

tomcombriat commented 1 year ago

Hi! I am merging this as it is quite small and not impacting the main core. Will solve #153