Yeah i thought it would have something to do with the MIDI channel, put cant seem to figure out how to specifically write it in code. And the example above isnt helping me as well, already saw it.
Im a beginner in processing and code language in general :)
Here is my sketch:
import promidi.*;
MidiIO midiIO;
int val = 0;
int num = 0;
void setup(){
size(128*5,128*5);
smooth();
midiIO = MidiIO.getInstance(this);
println("printPorts of midiIO");
midiIO.printDevices();
midiIO.openInput(1,0);
}
void controllerIn(
Controller controller,
int deviceNumber,
int midiChannel
){
num = controller.getNumber();
val = controller.getValue();
print(num);
}
void draw(){
background(0, 0, 0);
stroke(255);
fill(0, 0, 0);
strokeWeight(val/2);
ellipse(width/2,height/2,val*3,val*3);
strokeWeight(2);
ellipse(width/8*1-40,height/8,30,30);
ellipse(width/8*2-40,height/8,30,30);
ellipse(width/8*3-40,height/8,30,30);
ellipse(width/8*4-40,height/8,30,30);
ellipse(width/8*5-40,height/8,30,30);
ellipse(width/8*6-40,height/8,30,30);
ellipse(width/8*7-40,height/8,30,30);
ellipse(width/8*8-40,height/8,30,30);
}
those eight ellipses you see, I want to assign different knobs for.
Thanks for the comment!