File: testing_osc_sampler.py

package info (click to toggle)
clam 1.4.0-6
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 17,836 kB
  • ctags: 20,981
  • sloc: cpp: 92,504; python: 9,721; ansic: 1,602; xml: 444; sh: 239; makefile: 153; perl: 54; asm: 15
file content (15 lines) | stat: -rwxr-xr-x 460 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python

from sys import path
path.append("../../osc/oscpython")
import OSC
import time
print "playing samples"
OSC.Message("/clam/target",[int(0),"play",int(1)]).sendlocal(7000)
time.sleep(0.1)
OSC.Message("/clam/target",[int(1),"play",int(1)]).sendlocal(7000)
time.sleep(5)
print "stoping samples"
OSC.Message("/clam/target",[int(0),"stop",int(1)]).sendlocal(7000)
time.sleep(0.1)
OSC.Message("/clam/target",[int(1),"stop",int(1)]).sendlocal(7000)