changed the math of the range back to default, no need for extra compensation like I thought

This commit is contained in:
David Daily 2020-05-18 16:13:20 -05:00
parent 605f57448a
commit ee10219104
1 changed files with 2 additions and 1 deletions

3
VB.ahk
View File

@ -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
}