generated from ossia-templates/score-device-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ping.qml
34 lines (31 loc) · 850 Bytes
/
ping.qml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import Ossia 1.0 as Ossia
Ossia.StdIO
{
property string program: "ping"
function onMessage(message) { // evaluated each time a message is received
return [{address: "pings/stdout", value: message}]; // assign values to namespaces in the tree
}
function createTree() {
return [
{
name: "pings",
children: [
{
name: "ossia.io",
type: Ossia.Type.Int,
write: "$name -c $val"
},
{
name: "stdout",
type: Ossia.Type.String
},
{
name: "killSwitch",
type: Ossia.Type.Impulse,
write: "$kill"
}
]
}
];
}
}