Loading...
Logo
Processing Forum
Hi, I'm working on a project that uses an iPad as a MIDI controller to drive audio-reactive visuals. 

I'm using the proMidi library to receive MIDI signals in Processing from OSCulator and it's working very well. However, I cannot set different buttons on my controller to different things. Here's an example of the code:

Copy code
  1. void noteOn(promidi.Note note, int device, int channel){
  2.   int vel = note.getVelocity();
  3.   int pit = note.getPitch();
  4.   
  5.   hVal = 130;
  6.   
  7. }
Here the MIDI controller triggers a variable (that controls the colour of my sketch), and I have a few buttons on my controller. Whenever I press ANY of the buttons on my controller, they all trigger this output. What I really want is to map one specific button to trigger this variable...So I can have map different buttons to trigger different colours etc.

Is midi mapping possible with proMidi? Would appreciate any help I can get. Thanks so much in advance.

Replies(1)

Bump on this question? I've tried rwMidi/proMIDI/themidibus to do this, but I am simply stumped. All I want to do is map a different midi note/key to a different variable, instead of having all of my buttons trigger variables indiscriminately.

Thanks so much in advance to anyone who can help me here...I'm a Processing newbie.