Hi all, back in the midibox universe just have to finish my OS …
I have several MIDI sensors and until now every name was saved like this :
const char CTL_NAME[17][16] =
{
"Joystick 1 X ",
"Joystick 1 Y ",
"Joystick 2 X ",
"Joystick 2 Y ",
"Joystick 3 X ",
"Joystick 3 Y ",
"Joystick 4 X ",
"Joystick 4 Y ",
"Pitch Bend Wheel",
"Modulation Wheel",
"DBeam Left ",
"DBeam Right ",
"Basic Knob 1 ",
"Basic Knob 2 ",
"Ribbon Ctrl V ",
"Ribbon Ctrl H ",
"Expression Pedal"
};
Now I want to be able to edit/store/read those names in the BankStick. The problem is when I want to create the structure that will be receiving the data from the bankstick : if I create that kind of things …
unsigned char CTL_NAME2[17][17];
… I get the error message “no target memory available”, even with this simple command.
I can easily manipulate BankStick but do I have to read it every time I want to display the name of the controller that has been touched ?? :-\ :-X
welcome back! Just added you to the programmers group
If you reduce the strings to 15 characters + terminator (CTL_NAME[16][8]), it will fit into 256 bytes, and it will also be easier to integrate this into a BankStick structure (2^n bytes should always be prefered)