From 3a41e95cc760ab50ecad91f027bfc89769ded393 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Westk=C3=A4mper?= Date: Tue, 27 Aug 2013 22:48:37 +0300 Subject: [PATCH] Improve as impulse #64 --- dsp/oscillator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsp/oscillator.cpp b/dsp/oscillator.cpp index 3058ed6..99acf47 100644 --- a/dsp/oscillator.cpp +++ b/dsp/oscillator.cpp @@ -957,7 +957,7 @@ void AS::square(float* output, float* out_sync, int samples) { void AS::impulse(float* output, float* out_sync, int samples) { float inc = freq / sample_rate; float p = phase; - int max = 40.0f * wt; + int max = 20.0f * wt; // first for (uint i = 0; i < samples; i++) {