add ParamHintString for loadval.value showing range [-1,1]

This commit is contained in:
5684185+vsariola@users.noreply.github.com 2023-09-01 22:01:28 +03:00
parent 98fedd0ed2
commit 8c59ea1b4c

View File

@ -166,6 +166,11 @@ func (p Patch) ParamHintString(instrIndex, unitIndex int, param string) string {
case "ratio":
return fmt.Sprintf("1 : %.3f", 1-float64(value)/128)
}
case "loadval":
switch param {
case "value":
return fmt.Sprintf("%.2f", float32(value)/64-1)
}
case "send":
switch param {
case "amount":