summaryrefslogtreecommitdiff
path: root/attic/muse2-oom/muse2/share/pybridge/examples/ctrlexample.py
diff options
context:
space:
mode:
authorRobert Jonsson <spamatica@gmail.com>2011-03-07 19:01:11 +0000
committerRobert Jonsson <spamatica@gmail.com>2011-03-07 19:01:11 +0000
commite40fc849149dd97c248866a4a1d026dda5e57b62 (patch)
treeb12b358f3b3a0608001d30403358f8443118ec5f /attic/muse2-oom/muse2/share/pybridge/examples/ctrlexample.py
parent1bd4f2e8d9745cabb667b043171cad22c8577768 (diff)
clean3
Diffstat (limited to 'attic/muse2-oom/muse2/share/pybridge/examples/ctrlexample.py')
-rw-r--r--attic/muse2-oom/muse2/share/pybridge/examples/ctrlexample.py26
1 files changed, 26 insertions, 0 deletions
diff --git a/attic/muse2-oom/muse2/share/pybridge/examples/ctrlexample.py b/attic/muse2-oom/muse2/share/pybridge/examples/ctrlexample.py
new file mode 100644
index 00000000..9e28afad
--- /dev/null
+++ b/attic/muse2-oom/muse2/share/pybridge/examples/ctrlexample.py
@@ -0,0 +1,26 @@
+"""
+//=========================================================
+// MusE
+// Linux Music Editor
+// (C) Copyright 2009 Mathias Gyllengahm (lunar_shuttle@users.sf.net)
+//=========================================================
+"""
+
+import Pyro.core
+import time
+
+muse=Pyro.core.getProxyForURI('PYRONAME://:Default.muse')
+#for i in range(0,10):
+# print "Ctrl no " + str(i) + " = " + str(muse.getMidiControllerValue("Track 1", i))
+
+"""
+for i in range(0,127):
+ muse.setMidiControllerValue("Track 1", 7, i)
+ time.sleep(0.1)
+"""
+
+muse.setMidiControllerValue("Track 1", 7, 56)
+print muse.getMidiControllerValue("Track 1", 7)
+print muse.getAudioTrackVolume("Out 1")
+muse.setAudioTrackVolume("Out 1", -1.0)
+