-
Notifications
You must be signed in to change notification settings - Fork 7
04 Software
If you don't know how to code and you just want to use the controller, here we will give you the steps for using it with your computer. Note that the controller comes programmed and ready to plug and play. You will just need a program like Ableton Live, Logic it Nuendo to make it sound. However, you can also upload new code with different functionalities that you will found in here.. Note that the code by default is this one.
For uploading code just do the following:
- Select a code from sw section. Or maybe one friend of yours has came up with a cool one.
- Install Arduino IDE.
- Install MIDI USB and Adafruit NeoPixel libraries.
- Select in Tools/Board/Arduino Leonardo.
- Compile and upload the code.
- Enjoy.
If you feel like coding, you can customize your controller and explore new capabilities. In the sw section you will find some test codes and exercises to familiarize with the controller. If you came up with something cool, feel free to fork and share with us!
Since February 2019, you can download our library from the official Arduino repository through the Arduino IDE. In there you can find more easy to use examples and some new functionalities. The code is self-documented, so feel free to play with it.
TODO:
Open the code Simple from the software folder. This code sends noteOn messages if you press a button and noteOff messages when you release the button. The following code section can be changed:
// This following section can be change by the user //
// ---------------------------------------------------------------------//
// RGB LED color Definition //
#define OFF_R 50 // OFF PAD Color Red [0:255] //
#define OFF_G 50 // OFF PAD Color Green [0:255] //
#define OFF_B 50 // OFF PAD Color Blue [0:255] //
//
#define ON_R 0 // ON PAD Color Red [0:255] //
#define ON_G 0 // ON PAD Color Green [0:255] //
#define ON_B 255 // ON PAD Color Blue [0:255] //
//
// MIDI notes definition //
uint8_t notes[4][4] = { //
{32,33,34,35}, //
{36,37,38,39}, //
{40,41,42,43}, //
{44,45,46,47}, //
}; //
uint8_t velocity[4][4] = { //
{127,127,127,127}, //
{127,127,127,127}, //
{127,127,127,127}, //
{127,127,127,127}, //
}; //
// ---------------------------------------------------------------------//
The parameters you can modify are the following:
-
OFF_R
,OFF_G
,OFF_B
to change the default color of the LEDs. This color will be displayed in all LEDs when not pressing any button. Set values from 0 to 255 to get different colors (r stands for read, g for green and b for blue). -
ON_R
,ON_G
,ON_B
to set the color when a button is pressed. -
notes
to change the note sent when pressing each button. -
velocity
to change the velocity or intensity of each note.
Under test.