effects

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NUM_HIGHPASS_FILTERS = 3
	NUM_LOWPASS_FILTERS  = 4
)
View Source
const (
	PARAMETER_TYPE_INVALID = iota
	PARAMETER_TYPE_DISCRETE
	PARAMETER_TYPE_NUMERIC
)

* Parameter types.

View Source
const (
	UNIT_SIGNALGENERATOR = iota
	UNIT_NOISEGATE
	UNIT_BANDPASS
	UNIT_AUTOWAH
	UNIT_AUTOYOY
	UNIT_COMPRESSOR
	UNIT_OCTAVER
	UNIT_EXCESS
	UNIT_FUZZ
	UNIT_OVERDRIVE
	UNIT_DISTORTION
	UNIT_TONESTACK
	UNIT_CHORUS
	UNIT_FLANGER
	UNIT_PHASER
	UNIT_TREMOLO
	UNIT_RINGMODULATOR
	UNIT_DELAY
	UNIT_REVERB
	UNIT_POWERAMP
	UNIT_CABINET
)

* Effect unit types.

View Source
const (
	MATH_DEGREE_TO_RADIANS = math.Pi / 180.0
	MATH_PI_THOUSANDTH     = 0.001 * math.Pi
	MATH_QUARTER_PI        = 0.25 * math.Pi
	MATH_TWO_OVER_PI       = 2.0 / math.Pi
	MATH_TWO_PI            = 2.0 * math.Pi
	MATH_TWO_PI_FIFTH      = 0.4 * math.Pi
	MATH_TWO_PI_HUNDREDTH  = 0.02 * math.Pi
)

* Mathematical constants.

View Source
const (
	NUM_FILTERS = 8
	STRING_NONE = "- NONE -"
)

* Other constants.

View Source
const (
	VALVE_TYPE_INVALID = iota - 1
	VALVE_TYPE_ECC82
	VALVE_TYPE_ECC83
)

Variables

This section is empty.

Functions

func ParameterTypes

func ParameterTypes() []string

* Returns a list of supported parameter types.

func PreparePowerAmp

func PreparePowerAmp(unit Unit, responses filter.ImpulseResponses) error

* Populate the parameters of a power amplifier.

func UnitTypes

func UnitTypes() []string

* Returns a list of supported unit types.

Types

type Parameter

type Parameter struct {
	Name               string
	Type               int32
	PhysicalUnit       string
	Minimum            int32
	Maximum            int32
	NumericValue       int32
	DiscreteValueIndex int
	DiscreteValues     []string
}

* Data structure representing a parameter for an effects unit.

type Unit

type Unit interface {
	Parameters() []Parameter
	Process(in []float64, out []float64, sampleRate uint32)
	Type() int
	SetDiscreteValue(name string, value string) error
	GetDiscreteValue(name string) (string, error)
	SetNumericValue(name string, value int32) error
	GetNumericValue(name string) (int32, error)
}

* Interface type for an effects unit.

func CreateUnit

func CreateUnit(unitType int) Unit

* Create a new effects unit.

Jump to

Keyboard shortcuts

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