OcaPanBalance

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

Position

number

OcaFloat32

MidpointGain

number

OcaDB

Furthermore, it inherits the properties ClassID, ClassVersion, ObjectNumber, Lockable, Role, Enabled, Ports, Label, Owner, Latency, Position and MidpointGain.

class OcaPanBalance(objectNumber, device)

Pan or Balance control.

OcaPanBalance.OnMidpointGainChanged

type: PropertyEvent.<number>

This event is emitted when the property MidpointGain changes in the remote object. The property MidpointGain is described in the AES70 standard as follows. Midpoint gain. Normally, max=0dB, min=-6dB. May be readonly for pan/balance objects with fixed midpoint gains.

OcaPanBalance.OnPositionChanged

type: PropertyEvent.<number>

This event is emitted when the property Position changes in the remote object. The property Position is described in the AES70 standard as follows. Pan position. Range = -1.0 to +1.0. -1.0 is 100% left, +1.0 is 100% right.

OcaPanBalance.GetMidpointGain()

Gets the value and limits of the MidpointGain property. The return value indicates whether the data was successfully retrieved. The return values of this method are

  • Gain of type number

  • minGain of type number

  • maxGain of type number

Returns

Promise.<Arguments.<number, number, number>>

OcaPanBalance.GetPosition()

Gets the value and limits of the Position property. The return value indicates whether the data was successfully retrieved. The return values of this method are

  • Position of type number

  • minPosition of type number

  • maxPosition of type number

Returns

Promise.<Arguments.<number, number, number>>

OcaPanBalance.SetMidpointGain(Gain)

Sets the value of the MidpointGain property. The return value indicates whether the property was successfully set.

Arguments
  • Gain (number) –

Returns

Promise.<void>

OcaPanBalance.SetPosition(Position)

Sets the value of the Position property. The return value indicates whether the property was successfully set.

Arguments
  • Position (number) –

Returns

Promise.<void>