From ee1021910408d6234b15a71e9ec79020a753f9c7 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 18 May 2020 16:13:20 -0500 Subject: [PATCH] changed the math of the range back to default, no need for extra compensation like I thought --- VB.ahk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VB.ahk b/VB.ahk index 213d429..35d8548 100644 --- a/VB.ahk +++ b/VB.ahk @@ -241,7 +241,7 @@ fader_to_fader(val) ; Translates MIDI fader values to the VoiceMeeter software f { ; The upper limit for faders in VM is 12.0 ; The lower limit for the faders in VM that I would like is -40.0, how low it should go when the physical fader is all the way at the bottom - nval := Round(((val / 127) * 52) - 40) + nval := Round(((val / 127) * 72) - 60) Return nval } ; Formula: ((value / max value) * total range) - negative part of range @@ -341,3 +341,4 @@ die(die_string:="UNSPECIFIED FATAL ERROR.", exit_status:=254) { MsgBox 16, FATAL ERROR, %die_string% ExitApp exit_status } +