summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/share/pybridge/musepclient.py
diff options
context:
space:
mode:
Diffstat (limited to 'attic/muse2-oom/muse2/share/pybridge/musepclient.py')
-rw-r--r--attic/muse2-oom/muse2/share/pybridge/musepclient.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/attic/muse2-oom/muse2/share/pybridge/musepclient.py b/attic/muse2-oom/muse2/share/pybridge/musepclient.py
new file mode 100644
index 00000000..dc87e4e8
--- /dev/null
+++ b/attic/muse2-oom/muse2/share/pybridge/musepclient.py
@@ -0,0 +1,17 @@
+#
+# Example client for MusE Pyro bridge (Python Remote Object)
+#
+import Pyro.core
+import time
+
+muse=Pyro.core.getProxyForURI('PYRONAME://:Default.muse')
+print "Current position is: " + str(muse.getCPos())
+muse.startPlay()
+time.sleep(1) # Sleep one second
+muse.stopPlay()
+print "New position is: " + str(muse.getCPos())
+muse.rewindStart()
+print "Pos after rewind is: " + str(muse.getCPos())
+print "Lpos, Rpos: " + str(muse.getLPos()) + ":" + str(muse.getRPos())
+
+