Processing Forum
import themidibus.*;
MidiBus myBus;
void setup() {
myBus = new MidiBus(this, 0, 2);
size(200, 200);
}
void draw() {
}
void controllerChange(int channel, int number, int value) {
int R = value*2;
int G = value*2;
int B = value*2;
if (mousePressed==true) {
stroke(R, G, B);
line(mouseX, mouseY, pmouseX, pmouseY);
}
}