This commit is contained in:
5684185+vsariola@users.noreply.github.com
2026-01-28 21:22:57 +02:00
parent f88986dc64
commit 02a9d9747f
7 changed files with 359 additions and 147 deletions

View File

@ -182,6 +182,12 @@ func (v *playSyntherIndex) SetValue(value int) bool {
TrySend(v.broker.ToPlayer, any(v.synthers[value]))
return true
}
func (v *playSyntherIndex) StringOf(value int) string {
if value < 0 || value >= len(v.synthers) {
return ""
}
return v.synthers[value].Name()
}
// SyntherName returns the name of the currently selected synther.
func (v *Play) SyntherName() string { return v.synthers[v.syntherIndex].Name() }