Chip Reference
Code Preview
toggle_led
TRUE
coco_timer_1
1000
PB4
toggle_led
toggle_led
toggle_led
peak_detector_1
velocityValue
GT
prevVelocity
520
PB1
HIGH
prevVelocity
1
0
1
default
1000
PB1
LOW
filtered_value
1
MIDI_NOTEON
22
127
500
MIDI_NOTEON
22
127
500
A1
1
5
0
SINE
ENVELOPE0
77
60
64
Connect your speaker to pin 5
Sine wave instrument
1
NOISE
ENVELOPE0
50
100
32
Noise Instrument setup
synth_timer_1
every 1 sec trigger metronome
1000
0
synth_timer_2
every 2 sec trigger noise instrument
2000
1
1
100
10
1
10
1
1
1
100
1
100
1000
100
100
0
220
90
1
2
100
10
10
0
C
500
0
0
0
1
500
velocityValue
prevVelocity
filtered_value
synth_timer_1
1000
coco_mova_1
0.2
0