mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-14 20:23:13 -05:00
feat(tracker): enum-style values and menus to choose one option
This commit is contained in:
parent
ca4b87d43d
commit
4bb5df9c87
@ -71,6 +71,16 @@ func (v *spectrumChannels) SetValue(value int) bool {
|
||||
func (v *spectrumChannels) Range() RangeInclusive {
|
||||
return RangeInclusive{0, int(NumSpecChnModes) - 1}
|
||||
}
|
||||
func (v *spectrumChannels) StringOf(value int) string {
|
||||
switch SpecChnMode(value) {
|
||||
case SpecChnModeSum:
|
||||
return "Sum"
|
||||
case SpecChnModeSeparate:
|
||||
return "Separate"
|
||||
default:
|
||||
return "Unknown"
|
||||
}
|
||||
}
|
||||
|
||||
type SpecChnMode int
|
||||
|
||||
|
||||
Reference in New Issue
Block a user