Documentation
¶
Index ¶
- type FadeDirection
- type Output
- type Synth
- func (s *Synth) DecreaseVolume()
- func (s *Synth) Fade(direction FadeDirection, seconds float64)
- func (s *Synth) IncreaseVolume()
- func (s *Synth) Initialize(sampleRate float64) error
- func (s *Synth) NotifyFadeOutDone(notify chan bool)
- func (s *Synth) Play(outputChan chan<- Output)
- func (s *Synth) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FadeDirection ¶
type FadeDirection string
const ( FadeDirectionIn FadeDirection = "in" FadeDirectionOut FadeDirection = "out" )
type Synth ¶
type Synth struct { Volume float64 `yaml:"vol"` Out []string `yaml:"out"` Oscillators []*module.Oscillator `yaml:"oscillators"` Noises []*module.Noise `yaml:"noises"` Wavetables []*module.Wavetable `yaml:"wavetables"` Samplers []*module.Sampler `yaml:"samplers"` Sequences []*module.Sequence `yaml:"sequences"` Filters []*module.Filter `yaml:"filters"` Time float64 `yaml:"time"` VolumeMemory float64 // contains filtered or unexported fields }
func (*Synth) DecreaseVolume ¶
func (s *Synth) DecreaseVolume()
func (*Synth) Fade ¶
func (s *Synth) Fade(direction FadeDirection, seconds float64)
func (*Synth) IncreaseVolume ¶
func (s *Synth) IncreaseVolume()
func (*Synth) Initialize ¶
func (*Synth) NotifyFadeOutDone ¶
Click to show internal directories.
Click to hide internal directories.