Thank you for spending so much time looking at this! Being new to this side of arduino I am learning a great deal.
I'm testing your ...._korr2.ino sketch. Viewing the serial monitor shows me the expected input from the faders in the pd patch. However, I get no response from the led strip. I commented out your original Serial.println (fad[0]); here:
char pattern[] = "/fad/0"; // "/fad/N" is better OSC style than "/fadN"
for (int i = 0; i < 9; ++i){
// change the number in the address to the current index.
// if you want it to work with numbers that have more than a single digit you have to adapt the code
pattern[5] = i + '0';
if (msg.fullMatch(pattern, 0)){
// then check if first item is an integer
if (msg.isInt(0)){
// use the integer argument for controlling the led 0
fad[0] = (msg.getInt(0));
}
//Serial.println (fad[0]);
break; // jump out of for-loop
}
}
Then tried to print from within:
{
if (fad[2] >= 1){
for (int i = 0; i < 30; i += 2){
leds[i] = CHSV( fad[1], fad[0], fad[2]);
}
Serial.println (fad[1]);
Serial.println (fad[2]);
}
in order to test whether the values are passing to this point in the code. Nothing prints to the serial monitor when sending values from pd in this configuration. I don't know exactly how to test whether the sketch is passing the values to the strip. Any ideas?
I will work on adapting/testing some of the other sketches now as well.
Thanks again!
Rick