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
70 lines (55 loc) · 1.36 KB
/
config.py
File metadata and controls
70 lines (55 loc) · 1.36 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
66
67
68
69
70
# [EXPERIMENT MODES]
experiment_modes = [0, 1]
# experiment_modes = [1, 1]
# 0 = normal mode (AI)
# 1 = scripted list
# [HARDWARE]
xarm_connected = True
# [DATAWRITER]
data_logging = False
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]
# UoN
xarm1_port = "192.168.1.212"
# Oslo
# xarm1_port = "192.168.1.222"
# Simulator
# 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
# [BITALINO]
baudrate = 100
channels = [0, 1, 2, 3]
mac_address = "00:21:08:35:16:4D" # "98:D3:B1:FD:3D:1F" "00:21:08:35:17:C0" #"98:D3:B1:FD:3D:1F" # '/dev/cu.BITalino-3F-AE' (Linux)
# [STREAMING]
stream_list = [
"rnd_poetry",
"flow2core",
"core2flow",
"audio2core",
"audio2flow",
"flow2audio",
"eda2flow",
]
"""
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`
"""