/ HALion Developer Resource / HALion Script / Reference /

onData

onData(event)

(Since HALion 7.0)

Description

This callback is called when the script module receives a system exclusive message.

Available in: Processor.

Arguments

ArgumentDescriptionValue Type
eventEvent object of the type data.Event

Fields

FieldDescriptionValue Type
.typeThe type of event (7 = data). See Event Types for details.number
.dataAn array with the bytes of the system exclusive message. To determine the number of bytes in the system-exclusive message, use the length operator #. For the interpretation of these values, please consult the documentation of the MIDI data format of the device sending the system exclusive message.table
.dataTypeCurrently, there is only one data type (0 = sysex).number

Example

function onData(event)
	print (event)
	local sysex = event.data
	for i,b in ipairs(sysex) do
		print (b)
	end
end