RGB code with Touchosc

barry1234

You are not helping yourself by not saying what your setup actually is.
I assume you are using firmata on the arduino, but you haven't said. You also haven't said what sort of arduino you have because firmata is not fully implemented on all arduinos, the mega in particular does not implement all the calls.
You have not said how you have wired up the LEDs, current sourcing, current sinking what resistors you have used. I notice you say:-

Is this due to the Resistor,

There should be three resistors in your circuit not one.

To see the values you are sending from processing then add this line in the place after you do the arduino write:-

//write to arduino
  arduino.analogWrite(11, int(redAmount));
  arduino.analogWrite(10, int(greenAmount));
  arduino.analogWrite(9, int(blueAmount));
println("RGB value " + redAmount + " " + greenAmount + " " + blueAmount);

The values will be seen at the bottom of the processing window.