From e094a4011b958c9cfd3136270b5dd79ef04e741a Mon Sep 17 00:00:00 2001 From: Gordon JC Pearce Date: Tue, 3 Sep 2024 15:33:48 +0100 Subject: [PATCH] antialiased saw --- plugin/voice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/voice.cpp b/plugin/voice.cpp index 29499ef..4b2f3d1 100644 --- a/plugin/voice.cpp +++ b/plugin/voice.cpp @@ -66,6 +66,6 @@ void Voice::run(float *buffer, uint32_t samples) { y = (2*phase)-1; y-=blep(phase,omega); - buffer[i] += y * env; + buffer[i] += 0.5*y * env; } }