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

fxs = muse.getTrackEffects(trackname)
print fxs

for i in range (0,10):
      muse.toggleTrackEffect(trackname,0, False)
      time.sleep(1)
      muse.toggleTrackEffect(trackname,0, True)
      time.sleep(1)