From 98fedd0ed23898452a1c62b900f2025c1537c0d0 Mon Sep 17 00:00:00 2001 From: "5684185+vsariola@users.noreply.github.com" <5684185+vsariola@users.noreply.github.com> Date: Fri, 1 Sep 2023 21:54:55 +0300 Subject: [PATCH] make ParamHintString show range [-1,1] for send.amount --- patch.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patch.go b/patch.go index f51289e..19786a4 100644 --- a/patch.go +++ b/patch.go @@ -168,6 +168,8 @@ func (p Patch) ParamHintString(instrIndex, unitIndex int, param string) string { } case "send": switch param { + case "amount": + return fmt.Sprintf("%.2f", float32(value)/64-1) case "voice": if value == 0 { return "auto"