FAUST Buffer Freeze smooth fade
-
Hi there,
I created a freeze effect that loops the buffer of the incoming audio signal in FAUST, but I haven't found a proper solution to achieve smooth fades at the beginning and end of the buffer loop. I tried attack-release-envelope-like things, but that didn't get rid of the clicking. Does anyone have an idea how I can do this?
Here is the code:
import("stdfaust.lib"); size = 192000; index = ba.period(size); input(x) = +(x * (1 - r)) ~ (de.delay(size - 1, size - 1) * r); r = checkbox("Freeze Buffer"); process(x1, x2) = input(x1), input(x2);