refactor: move UnitNames to top level package

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2023-10-20 01:59:30 +03:00
parent b6ec5d1a04
commit beb06727b0
4 changed files with 21 additions and 18 deletions

View File

@ -113,16 +113,6 @@ var reverbs = []delayPreset{
{"right", 0, []int{1140, 1212, 1300, 1380, 1446, 1516, 1580, 1642}},
}
var UnitTypeNames []string
func init() {
UnitTypeNames = make([]string, 0, len(sointu.UnitTypes))
for k := range sointu.UnitTypes {
UnitTypeNames = append(UnitTypeNames, k)
}
sort.Strings(UnitTypeNames)
}
type instrumentPresets []sointu.Instrument
//go:embed presets/*