refactor(tracker): make Bool have separate BoolValue and Enabler

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-05-26 13:58:45 +03:00
parent 036cb1f34d
commit fb3a0da3ed
10 changed files with 125 additions and 133 deletions

View File

@ -82,12 +82,12 @@ func init() {
go detector.Run()
t := gioui.NewTracker(model)
model.InstrEnlarged().Bool().Set(true)
model.InstrEnlarged().SetValue(true)
// since the VST is usually working without any regard for the tracks
// until recording, disable the Instrument-Track linking by default
// because it might just confuse the user why instrument cannot be
// swapped/added etc.
model.LinkInstrTrack().Bool().Set(false)
model.LinkInstrTrack().SetValue(false)
go t.Main()
context := VSTIProcessContext{host: h}
buf := make(sointu.AudioBuffer, 1024)