MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / sendList

Method sendList

src/main/java/trace/sound/OSCOut.kt:69–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 var al = ArrayList<Any>()
68 for (d in dd) {
69 when (d) {
70 is Number -> {
71 val f = d.toFloat()
72 al.add(f)
73 }
74 is Vec2 -> {
75 val f = d.x
76 al.add(d.x.toFloat())
77 al.add(d.y.toFloat())
78
79 }
80 is Vec3 -> {
81 al.add(d.x.toFloat())
82 al.add(d.y.toFloat())
83 al.add(d.z.toFloat())
84
85 }
86 is Vec4 -> {
87 al.add(d.x.toFloat())
88 al.add(d.y.toFloat())
89 al.add(d.z.toFloat())
90 al.add(d.w.toFloat())
91 }
92 is String -> {
93 al.add(d)
94 }
95
96 }
97 }
98
99 val message = OSCMessage(name, al)
100 oout.send(message)
101
102 }
103
104}

Callers

nothing calls this directly

Calls 2

addMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected