brew install arduino-cli
Set Environment For libraries
To Be Found
export ARDUINO_DIRECTORIES_USER=~/Documents/goatbox
Install MIDI Library https://github.com/FortySevenEffects/arduino_midi_library
arduino-cli lib install "MIDI Library"
Then build with
arduino-cli compile --fqbn arduino:avr:pro goatroller
Find port where board is connected
arduino-cli board list
Upload
arduino-cli upload -p /dev/cu.usbserial-1420 --fqbn arduino:avr:pro goatroller
Channel: 3
PC Number | Loop 1 | Loop 2 | Loop 3 | Loop 4 |
---|---|---|---|---|
0 | ❌ | ❌ | ❌ | ❌ |
1 | ✅ | ❌ | ❌ | ❌ |
2 | ❌ | ✅ | ❌ | ❌ |
3 | ✅ | ✅ | ❌ | ❌ |
4 | ❌ | ❌ | ✅ | ❌ |
5 | ✅ | ❌ | ✅ | ❌ |
6 | ❌ | ✅ | ✅ | ❌ |
7 | ✅ | ✅ | ✅ | ❌ |
8 | ❌ | ❌ | ❌ | ✅ |
9 | ✅ | ❌ | ❌ | ✅ |
10 | ❌ | ✅ | ❌ | ✅ |
11 | ✅ | ✅ | ❌ | ✅ |
12 | ❌ | ❌ | ✅ | ✅ |
13 | ✅ | ❌ | ✅ | ✅ |
14 | ❌ | ✅ | ✅ | ✅ |
15 | ✅ | ✅ | ✅ | ✅ |
CC Number needs to be 1,2,3,4 to action on loop 1,2,3,4.
Loop Action:
- Toggle: CC Value = 64
- Turn Off: CC Value < 64
- Turn On: CC Value > 64
Examples:
- CC Number = 2 and CC Value = 64: Toggle loop 2 state
- CC Number = 3 and CC Value = 0: Turn OFF loop 3
- CC Number = 3 and CC Value = 100: Turn ON loop 3