synth

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Output

type Output struct {
	Left, Right, Mono, Time float64
}

type Synth

type Synth struct {
	Out    string  `yaml:"out"`
	Volume float64 `yaml:"vol"`

	Delays      module.DelayMap      `yaml:"delays"`
	Envelopes   module.EnvelopeMap   `yaml:"envelopes"`
	Filters     module.FilterMap     `yaml:"filters"`
	Gates       module.GateMap       `yaml:"gates"`
	Mixers      module.MixerMap      `yaml:"mixers"`
	Noises      module.NoiseMap      `yaml:"noises"`
	Oscillators module.OscillatorMap `yaml:"oscillators"`
	Pans        module.PanMap        `yaml:"pans"`
	Samplers    module.SamplerMap    `yaml:"samplers"`
	Sequencers  module.SequencerMap  `yaml:"sequencers"`
	Wavetables  module.WavetableMap  `yaml:"wavetables"`

	Time float64
	// contains filtered or unexported fields
}

func (*Synth) FadeIn

func (s *Synth) FadeIn(duration float64)

func (*Synth) FadeOut

func (s *Synth) FadeOut(duration float64)

func (*Synth) GetOutput

func (s *Synth) GetOutput() Output

func (*Synth) Initialize

func (s *Synth) Initialize(sampleRate float64) error

func (*Synth) NotifyFadeout

func (s *Synth) NotifyFadeout(done chan<- bool)

func (*Synth) Update added in v0.4.0

func (s *Synth) Update(from *Synth) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL