summaryrefslogtreecommitdiff
path: root/muse2/share/pybridge/examples/trackparamchangeexample.py
blob: 0681ccb4147bbc4ff5e4b1107e5e8cbeccd1d0cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""
//=========================================================
//  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')

muse.setMidiTrackParameter("Track 1", "velocity",10)
muse.setMidiTrackParameter("Track 1", "compression",101)
muse.setMidiTrackParameter("Track 1", "delay",2)
muse.setMidiTrackParameter("Track 1", "transposition",1)

for i in range(-127, 127):
      muse.setMidiTrackParameter("Track 1", "velocity",i)
      time.sleep(0.1)