summaryrefslogtreecommitdiff
path: root/muse2/share/pybridge/examples/ctrlexample.py
blob: 9e28afad18711ce081e693462cb956bcf4e5722d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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)