Skip to main content

Class: DcpHEvents

Defined in: workingtitle-instruments-wt21/shared/DCP/DcpHEvents.ts:35

HEvents for the DCP

Constructors

Constructor

new DcpHEvents(): DcpHEvents

Returns

DcpHEvents

Methods

mapHEventToDcpEvent()

static mapHEventToDcpEvent(hEvent, instrumentIndex): undefined | DcpEvent

Defined in: workingtitle-instruments-wt21/shared/DCP/DcpHEvents.ts:43

Maps an H event to an DcpEvent

Parameters

ParameterTypeDescription
hEventstringthe raw H event string
instrumentIndexnumberThe index of the instrument

Returns

undefined | DcpEvent

DcpEvent the mapped event

Throws

if the event is invalid or unmapped