forked from DigiScore/wolff1
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
65 lines (52 loc) · 1.34 KB
/
config.py
File metadata and controls
65 lines (52 loc) · 1.34 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
# [NUMBER OF EXPERIMENTS]
number_of_experiments = 4
# [RHYTHM]
rhythm_loop_end_time_min = 500
rhythm_loop_end_time_max = 2000
# [ARM SPEED]
arm_speed_min = 30
arm_speed_max = 200
# [HARDWARE]
xarm_connected = True
# [DATAWRITER]
data_logging = True
path = "data"
figsize_xy = (100, 12)
samplerate = 0.01
# [PLAY PARAMS]
silence_listener = False
duration_of_piece = 180 # 240 # in sec
speed = 5 # dynamic tempo of the all processes: 1 = slow, 10 = fast
temperature = 0
# [XARM]
xarm1_port = '192.168.1.212'
# xarm1_port = '127.0.0.1'
xarm_x_extents = [-500, 500] # cartesian coords in mm
xarm_y_extents = [-500, 500]
xarm_z_extents = [55, 1000]
xarm_irregular_shape_extents = 50
xarm_fenced = True
# [SOUND IN]
mic_sensitivity = 10000
mic_in_prediction = 0.36
mic_in_logging = False
volume_range = [1000, 2000]
volume_seconds = 4
# [STREAMING]
stream_list = ['rnd_poetry',
'flow2core',
'core2flow',
'audio2core',
'audio2flow',
'flow2audio',
'eda2flow',
'audio2eda',
'all2flow']
"""
Notes:
To check available ports, run the following code:
from serial.tools import list_ports
available_ports = list_ports.comports()
print(f'available ports: {[x.device for x in available_ports]}')
May need `sudo chmod 666 /dev/ttyACM0`
"""