How to map MIDI controller in proMIDI

edited November 2014 in Library Questions

Hi,

Just wondering how to map a single midi slider in proMIDI.

eg. mapping midi slider number 74 to change stroke value.

I've tried:

void controllerIn(Controller controller){
  int num = controller.getNumber(74);
  int val = controller.getValue();

  fill(255,num*2,val*2,num*2);
  stroke(255,num);
  ellipse(num*5,val*5,30,30)

and get the error message: The method getNumber() in type Controller is not applicable for the arguments (int)

Thanks, Sam

Tagged:
Sign In or Register to comment.