feat(tracker): multithreading is enabled with a separate bool toggle

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2026-01-31 20:50:00 +02:00
parent 4bb5df9c87
commit 287bd036a6
7 changed files with 44 additions and 25 deletions

View File

@ -82,8 +82,10 @@ type (
alerts []Alert
dialog Dialog
syntherIndex int // the index of the synther used to create new synths
synthers []sointu.Synther // the synther used to create new synths
syntherIndex int // the index of the synther used to create new synths
synthers []sointu.Synther // the synther used to create new synths
multithreading bool // is the multithreading enabled or not
curSynther sointu.Synther // the current synther, either multithreaded or not depending on multithreading
broker *Broker
@ -197,6 +199,7 @@ func NewModel(broker *Broker, synthers []sointu.Synther, midiContext MIDIContext
m.derived.searchResults = make([]string, 0, len(sointu.UnitNames))
m.Unit().updateDerivedUnitSearch()
m.MIDI().Refresh().Do()
m.Play().setSynther(0, false)
go runDetector(broker)
go runSpecAnalyzer(broker)
return m