/ 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
Fields
Field | Description | Value Type |
---|---|---|
.type | The type of event (7 = data). See Event Types for details. | number |
.data | An array with the bytes of the system exclusive message. For the interpretation of these values, please consult the documentation of the MIDI data format of the device sending the system exclusive message. | table |
.dataType | Currently, there is only one data type (0 = sysex). | number |
.dataSize | The number of bytes in the system exclusive message. | number |
Example
function onData(event)
print (event)
local sysex = event.data
for i,b in ipairs(sysex) do
print (b)
end
end