refactor!: rename SynthService to Synther and related types

The -er suffix is more idiomatic for single method interfaces, and
the interface is not doing much more than converting the patch to a
synth. Names were updated throughout the project to reflect this
change. In particular, the "Service" in SynthService was not telling
anything helpful.
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2023-10-18 17:32:13 +03:00
parent e4a2ed9f32
commit 0a67129a0c
13 changed files with 44 additions and 44 deletions

View File

@ -64,7 +64,7 @@ type Tracker struct {
quitted bool
unmarshalRecoveryChannel chan []byte
marshalRecoveryChannel chan (chan []byte)
synthService sointu.SynthService
synther sointu.Synther
*trackerModel
}
@ -116,7 +116,7 @@ func (t *Tracker) UnmarshalContent(bytes []byte) error {
return errors.New("was able to unmarshal a song, but the bpm was 0")
}
func NewTracker(model *tracker.Model, synthService sointu.SynthService) *Tracker {
func NewTracker(model *tracker.Model, synther sointu.Synther) *Tracker {
t := &Tracker{
Theme: material.NewTheme(),
BPM: new(NumberInput),
@ -146,7 +146,7 @@ func NewTracker(model *tracker.Model, synthService sointu.SynthService) *Tracker
TrackEditor: NewTrackEditor(),
errorChannel: make(chan error, 32),
synthService: synthService,
synther: synther,
trackerModel: model,
marshalRecoveryChannel: make(chan (chan []byte)),