]> git.parisson.com Git - deefuzzer.git/commitdiff
add osc record tools
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 25 Jan 2010 15:08:14 +0000 (15:08 +0000)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 25 Jan 2010 15:08:14 +0000 (15:08 +0000)
tools/osc_record_start.py [new file with mode: 0644]
tools/osc_record_stop.py [new file with mode: 0644]

diff --git a/tools/osc_record_start.py b/tools/osc_record_start.py
new file mode 100644 (file)
index 0000000..779e90b
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import liblo, sys
+
+# send all messages to port 1234 on the local machine
+try:
+    target = liblo.Address(1234)
+except liblo.AddressError, err:
+    print str(err)
+    sys.exit()
+
+# send message "/foo/message1" with int, float and string arguments
+liblo.send(target, "/record", 1)
diff --git a/tools/osc_record_stop.py b/tools/osc_record_stop.py
new file mode 100644 (file)
index 0000000..8056c69
--- /dev/null
@@ -0,0 +1,14 @@
+#!/usr/bin/env python
+# -*- coding: utf-8 -*-
+
+import liblo, sys
+
+# send all messages to port 1234 on the local machine
+try:
+    target = liblo.Address(1234)
+except liblo.AddressError, err:
+    print str(err)
+    sys.exit()
+
+# send message "/foo/message1" with int, float and string arguments
+liblo.send(target, "/record", 0)