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 PreparePowerAmp ¶
func PreparePowerAmp(unit Unit, responses filter.ImpulseResponses) error
* Populate the parameters of a power amplifier.
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.
Click to show internal directories.
Click to hide internal directories.