Sending Events
You can generate and send your own events from your custom nodes.
For sending an event just call raiseEvent() with an event you have prepared.
var eventInformation = new EventInformation(
channelIndex,
"accuweather",
"weather",
outData,
startSampleIndex,
endSampleIndex,
"",
tags
)
raiseEvent(eventInformation);
EventInformation
var EventInformation = function (
ChannelIndex,
ServiceName,
EventName,
Data,
StartSampleIndex,
EndSampleIndex,
GroupId,
Tags)
Properties:
| name | explanation |
|---|---|
| ChannelIndex | the channel number for this event. |
| ServiceName | the name of the service. You can use your node name as the service name. |
| EventName | the name of this event |
| Data | any additional data in json format |
| StartSampleIndex | start sample index of the audio this event corresponds to. This index is relative to the beginning of the session |
| EndSampleIndex | start sample index of the audio this event corresponds to. This index is relative to the beginning of the session |
| GroupId | groupId for this event |
| Tags | An array of strings that contain the tags attached to this event. |
See here for more info about Data Flow events.
