OcaFilterPolynomial¶
A online version of the AES70 specification of this class can be found at http://docs.deuso.de.
The class is a subclass of OcaActuator()
.
This class defines the properties
Name |
JavaScript Type |
AES70 Type |
---|---|---|
A |
number[] |
OcaList<OcaFloat32> |
B |
number[] |
OcaList<OcaFloat32> |
SampleRate |
number |
OcaFrequency |
MaxOrder |
number |
OcaUint8 |
Furthermore, it inherits the properties ClassID, ClassVersion, ObjectNumber, Lockable, Role, Enabled, Ports, Label, Owner, Latency, A, B, SampleRate and MaxOrder.
-
class
OcaFilterPolynomial
(objectNumber, device)¶ A generic Z-domain rational polynomial filter section: _A(0) + A(1)z + A(2)z^2 + A(3)z^3 + …_ B(0) + B(1)z + B(2)z^2 + B(3)z^3 + …
-
OcaFilterPolynomial.
OnAChanged
¶ type: PropertyEvent.<Array.<number>>
This event is emitted when the property A changes in the remote object. The property
A
is described in the AES70 standard as follows. Numerator - “A”
-
OcaFilterPolynomial.
OnBChanged
¶ type: PropertyEvent.<Array.<number>>
This event is emitted when the property B changes in the remote object. The property
B
is described in the AES70 standard as follows. Denominator - “B”
-
OcaFilterPolynomial.
OnSampleRateChanged
¶ type: PropertyEvent.<number>
This event is emitted when the property SampleRate changes in the remote object. The property
SampleRate
is described in the AES70 standard as follows. Sample rate inside the filter. We can’t assume it’s the same as the device input or output rate.
-
OcaFilterPolynomial.
GetCoefficients
()¶ Returns the polynomial coefficients used. The return values of this method are
A of type
number[]
B of type
number[]
- Returns
Promise.<Arguments.<Array.<number>, Array.<number>>> –
-
OcaFilterPolynomial.
GetMaxOrder
()¶ Gets the maximum allowable order (= max number of array elements in numerator and for denominator arrays)
- Returns
Promise.<number> – A promise which resolves to a single value of type
number
.
-
OcaFilterPolynomial.
GetSampleRate
()¶ Gets the filter sampling rate. The return values of this method are
Rate of type
number
minRate of type
number
maxRate of type
number
- Returns
Promise.<Arguments.<number, number, number>> –
-
OcaFilterPolynomial.
SetCoefficients
(A, B)¶ Sets the polynomial coefficients.
- Arguments
A (Array.<number>) –
B (Array.<number>) –
- Returns
Promise.<void> –
-
OcaFilterPolynomial.
SetSampleRate
(Rate)¶ Sets the filter sampling rate.
- Arguments
Rate (number) –
- Returns
Promise.<void> –
-