mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-25 18:00:37 -04:00
add ParamHintString for loadval.value showing range [-1,1]
This commit is contained in:
parent
98fedd0ed2
commit
8c59ea1b4c
5
patch.go
5
patch.go
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user