synth

package
v0.0.0-...-c7366c5 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

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 Output

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

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 (s *Synth) Initialize(sampleRate float64) error

func (*Synth) NotifyFadeOutDone

func (s *Synth) NotifyFadeOutDone(notify chan bool)

func (*Synth) Play

func (s *Synth) Play(outputChan chan<- Output)

func (*Synth) Stop

func (s *Synth) Stop()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳