From 5f8884c60fd3aa65b5015d64b14f18f3d30098c5 Mon Sep 17 00:00:00 2001 From: Oskar Wallgren Date: Fri, 29 Sep 2023 20:24:14 +0200 Subject: [PATCH] Update plugins/Stk/Mallets/Mallets.cpp Co-authored-by: saker --- plugins/Stk/Mallets/Mallets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Stk/Mallets/Mallets.cpp b/plugins/Stk/Mallets/Mallets.cpp index 7c8aca3a6f5..126926d1128 100644 --- a/plugins/Stk/Mallets/Mallets.cpp +++ b/plugins/Stk/Mallets/Mallets.cpp @@ -310,7 +310,7 @@ void MalletsInstrument::playNote( NotePlayHandle * _n, position += random * static_cast(fast_rand() % 64) - 32.0; position = std::clamp(position, 0.0f, 64.0f); } - else if(p == 9) + else if (p == 9) { modulator += random * static_cast(fast_rand() % 128) - 64.0; modulator = std::clamp(modulator, 0.0f, 128.0f);