From: Mathias G. <lun...@us...> - 2009-11-02 19:12:11
|
Update of /cvsroot/lmuse/muse/share/pybridge/examples In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv29141/share/pybridge/examples Added Files: Tag: REL07 ctrlexample.py Log Message: Midi controller + audio volume to Python interface --- NEW FILE: ctrlexample.py --- """ //========================================================= // MusE // Linux Music Editor // (C) Copyright 2009 Mathias Gyllengahm (lun...@us...) //========================================================= """ 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) |