-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_osc_handler2.py
More file actions
53 lines (41 loc) · 822 Bytes
/
test_osc_handler2.py
File metadata and controls
53 lines (41 loc) · 822 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# -*- coding: utf-8 -*-
"""
Created on Tue Apr 3 18:06:37 2018
@author: jj
"""
from osc_handler3 import osc_handler
from multiprocessing import Process
import time
def p1(osc1):
osc1.alive()
def p2(osc1):
osc1.read_send()
def p3(osc1):
osc1.create_sources(3,1.0)
def p4(osc1):
osc1.receive_write()
osc1 = osc_handler()
osc1.act_send()
osc1.act_jack_play()
osc1.act_dispatcher()
osc1.subscribe()
osc1.message_level(3)
pp1 = Process(target=p1, args=(osc1,))
pp1.start()
pp3 = Process(target=p3, args=(osc1,))
pp3.start()
pp2 = Process(target=p2, args=(osc1,))
#time.sleep(2)
pp2.start()
#pp4 = Process(target=p4, args=(osc1,))
#pp4.start()
pp1.join()
pp3.join()
pp2.join()
#pp4.join()
#osc1.alive()
#osc1.read_send()
#osc1.poll()
#osc2 = osc_handler("127.0.0.1", 54533, 50002)
#osc2.act_send()
#osc2.alive()