From 8d0e0d5a8567753cd4538f21d2d2cd15843fd5eb Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 25 Jan 2010 15:08:14 +0000 Subject: [PATCH] add osc record tools --- tools/osc_record_start.py | 14 ++++++++++++++ tools/osc_record_stop.py | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tools/osc_record_start.py create mode 100644 tools/osc_record_stop.py diff --git a/tools/osc_record_start.py b/tools/osc_record_start.py new file mode 100644 index 0000000..779e90b --- /dev/null +++ b/tools/osc_record_start.py @@ -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 index 0000000..8056c69 --- /dev/null +++ b/tools/osc_record_stop.py @@ -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) -- 2.39.5