From e235ca79332a42c0d0aae2b392ab60ba7d837054 Mon Sep 17 00:00:00 2001 From: mat kelcey Date: Thu, 4 Jul 2024 18:27:40 +1000 Subject: [PATCH] fix minor bug in mix() i think it's an unused function, but anways :) --- TimeMachine/dsp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TimeMachine/dsp.h b/TimeMachine/dsp.h index 1602f42..813f627 100644 --- a/TimeMachine/dsp.h +++ b/TimeMachine/dsp.h @@ -12,7 +12,7 @@ int seconds_to_samples(float x, float sampleRate) { } float mix(float x, float a, float b) { - return x*(1-x) + b*x; + return a*(1-x) + b*x; } float clamp(float x, float a, float b) { @@ -372,4 +372,4 @@ class ClockRateDetector { } lastVal = triggered; } -}; \ No newline at end of file +};