feat!: both native & Go synths are included in the same executables

Closes #200
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-07-10 17:46:00 +03:00
parent 13102aa7d6
commit 3163f46447
21 changed files with 106 additions and 83 deletions

View File

@ -75,9 +75,11 @@ type (
weightingType WeightingType
oversampling bool
alerts []Alert
dialog Dialog
synther sointu.Synther // the synther used to create new synths
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
broker *Broker
@ -171,9 +173,9 @@ func (m *Model) Quitted() bool { return m.quitted }
func (m *Model) DetectorResult() DetectorResult { return m.detectorResult }
// NewModelPlayer creates a new model and a player that communicates with it
func NewModel(broker *Broker, synther sointu.Synther, midiContext MIDIContext, recoveryFilePath string) *Model {
func NewModel(broker *Broker, synthers []sointu.Synther, midiContext MIDIContext, recoveryFilePath string) *Model {
m := new(Model)
m.synther = synther
m.synthers = synthers
m.MIDI = midiContext
m.broker = broker
m.d.Octave = 4