Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct { Attack Input `yaml:"attack"` Decay Input `yaml:"decay"` Sustain Input `yaml:"sustain"` Release Input `yaml:"release"` Peak Input `yaml:"peak"` SustainLevel Input `yaml:"sustain-level"` Delay float64 `yaml:"delay"` BPM Input `yaml:"bpm"` // contains filtered or unexported fields }
func (*Envelope) Initialize ¶
func (e *Envelope) Initialize()
func (*Envelope) Next ¶
func (e *Envelope) Next(t float64, modMap ModulesMap)
type Filter ¶
type Filter struct { Name string `yaml:"name"` LowCutoff Input `yaml:"low-cutoff"` HighCutoff Input `yaml:"high-cutoff"` // contains filtered or unexported fields }
func (*Filter) Initialize ¶
func (*Filter) NextCoeffs ¶
func (f *Filter) NextCoeffs(modMap ModulesMap)
type FilterType ¶
type FilterType string
type FiltersMap ¶
type ModulesMap ¶
type Noise ¶
type Noise struct { Module Name string `yaml:"name"` Amp Input `yaml:"amp"` Pan Input `yaml:"pan"` Filters []string `yaml:"filters"` Envelope *Envelope `yaml:"envelope"` // contains filtered or unexported fields }
func (*Noise) Initialize ¶
func (*Noise) Next ¶
func (n *Noise) Next(t float64, modMap ModulesMap, filtersMap FiltersMap)
type Oscillator ¶
type Oscillator struct { Module Name string `yaml:"name"` Type OscillatorType `yaml:"type"` Freq Input `yaml:"freq"` Amp Input `yaml:"amp"` Phase float64 `yaml:"phase"` Pan Input `yaml:"pan"` Filters []string `yaml:"filters"` Envelope *Envelope `yaml:"envelope"` // contains filtered or unexported fields }
func (*Oscillator) Initialize ¶
func (o *Oscillator) Initialize(sampleRate float64) error
func (*Oscillator) Next ¶
func (o *Oscillator) Next(t float64, modMap ModulesMap, filtersMap FiltersMap)
type OscillatorType ¶
type OscillatorType string
const ( Sawtooth OscillatorType = "Sawtooth" ReverseSawtooth OscillatorType = "ReverseSawtooth" Sine OscillatorType = "Sine" Square OscillatorType = "Square" Triangle OscillatorType = "Triangle" )
func (OscillatorType) String ¶
func (t OscillatorType) String() string
type Sampler ¶
type Sampler struct { Module Name string `yaml:"name"` Amp Input `yaml:"amp"` Pan Input `yaml:"pan"` Freq Input `yaml:"freq"` Filters []string `yaml:"filters"` Inputs []string `yaml:"inputs"` Envelope *Envelope `yaml:"envelope"` // contains filtered or unexported fields }
func (*Sampler) Initialize ¶
func (*Sampler) Next ¶
func (s *Sampler) Next(t float64, modMap ModulesMap, filtersMap FiltersMap)
type Sequence ¶
type Sequence struct { Module Amp Input `yaml:"amp"` Envelope *Envelope `yaml:"envelope"` Filters []string `yaml:"filters"` Name string `yaml:"name"` Pan Input `yaml:"pan"` Sequence []string `yaml:"sequence"` Transpose Input `yaml:"transpose"` Pitch float64 `yaml:"pitch"` Randomize bool `yaml:"randomize"` Type OscillatorType `yaml:"type"` // contains filtered or unexported fields }
func (*Sequence) Initialize ¶
func (*Sequence) Next ¶
func (s *Sequence) Next(t float64, modMap ModulesMap, filtersMap FiltersMap)
type SignalFunc ¶
func NoSignalFunc ¶
func NoSignalFunc() SignalFunc
func ReverseSawtoothSignalFunc ¶
func ReverseSawtoothSignalFunc() SignalFunc
func SawtoothSignalFunc ¶
func SawtoothSignalFunc() SignalFunc
func SineSignalFunc ¶
func SineSignalFunc() SignalFunc
func SquareSignalFunc ¶
func SquareSignalFunc() SignalFunc
func TriangleSignalFunc ¶
func TriangleSignalFunc() SignalFunc
type Wavetable ¶
type Wavetable struct { Module Name string `yaml:"name"` Table []float64 `yaml:"table"` Freq Input `yaml:"freq"` Amp Input `yaml:"amp"` Pan Input `yaml:"pan"` Filters []string `yaml:"filters"` Envelope *Envelope `yaml:"envelope"` // contains filtered or unexported fields }
func (*Wavetable) Initialize ¶
func (*Wavetable) Next ¶
func (w *Wavetable) Next(t float64, modMap ModulesMap, filtersMap FiltersMap)
Click to show internal directories.
Click to hide internal directories.