add headamp gain and phantom commands

This commit is contained in:
2026-02-01 01:25:47 +00:00
parent 64b4be032f
commit 9898c21197
6 changed files with 256 additions and 31 deletions

View File

@@ -2,6 +2,14 @@ package xair
import "math"
func linGet(min float64, max float64, value float64) float64 {
return min + (max-min)*value
}
func linSet(min float64, max float64, value float64) float64 {
return (value - min) / (max - min)
}
func mustDbInto(db float64) float64 {
switch {
case db >= 10: