-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py.example
56 lines (42 loc) · 1.17 KB
/
config.py.example
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
# config file for Guacenspiel
# copy/rename to config.py and edit as necessary
# set to True to print out extra debugging information
debug=False
# set these to the (BCM) pin numbers they're connected to
button_pins={
'record' : 4,
'play' : 17,
'stop' : 27,
'clear' : 22,
'track_advance' : 10,
'track1_mute' : 12,
'track2_mute' : 16,
'track3_mute' : 20,
'track4_mute' :21,
'patch_down' : 6,
'patch_up' : 13,
'octave_down' : 19,
'octave_up' : 26,
}
# set these to the (BCM) pin numbers they're connect to
track_led_pins=[25,24,23,18]
# minimum delay between button state toggles, in ms
button_debounce=50
# minimum delay between key state toggles, in ms
key_debounce=50
midi_device=0
# midi note offsets from octave to use for sensor input mappings.
#NOTE_OFFSET = [0,2,4,5,7,9,11,12,14,16,17,19]
NOTE_OFFSET = range(24)
# sensitivity settings for touch sensors
on_threshold=100
off_threshold=20
# octave to start with
default_octave=5
# patch to start with
default_patch=0
# midi velocity to use when playing notes
note_velocity=64
# i2c addresses for each touch sensor, in order
# default address=0x5A
cap_sensors=[0x5A,0x5B]