changed the math of the range back to default, no need for extra compensation like I thought
This commit is contained in:
parent
605f57448a
commit
ee10219104
3
VB.ahk
3
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 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
|
; 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
|
Return nval
|
||||||
}
|
}
|
||||||
; Formula: ((value / max value) * total range) - negative part of range
|
; 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%
|
MsgBox 16, FATAL ERROR, %die_string%
|
||||||
ExitApp exit_status
|
ExitApp exit_status
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user