mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-23 07:24:47 -04:00
feat!: both native & Go synths are included in the same executables
Closes #200
This commit is contained in:
parent
13102aa7d6
commit
3163f46447
@ -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
|
||||
|
Reference in New Issue
Block a user