summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/share/pybridge/musepclient.py
blob: dc87e4e859e7c3a60e693fcc6f800333211e5b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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())