I'm trying to get a midi input from a midi controller (APC20) in processing. Some parts of this midi should be passed through, the other part should be converted to OSC.
Now the problem is that I can't get promidi to work accepting midi messages. Can someone help?
import oscP5.*; // oscP5 library
import netP5.*; // included with oscP5 library
import controlP5.*; // GUI library
import promidi.*;
OscP5 oscP5; // oscP5 object
NetAddress ResolumeOSC; // IP
OscMessage myMessage = new OscMessage(""); // message object
ControlP5 controlP5; // gui object
MidiIO midiIO;
MultiList uimidilist;
public String actiefMidi;
public int actiefMidiNummer;
/*
SETUP SETUP SETUP
*/
void setup() {
size(520,150);
frameRate(25);
//OSC DEEL
ResolumeOSC = new NetAddress("127.0.0.1", 6666); //start OSC
oscP5 = new OscP5(this,10000); //listening OSC
// UI DEEL sliders -> (name, min, max, initial, x, y, width, height)
Sorry but the comments are in Dutch, and there are also some test classes to check if the buttons work. What's the best way to make the midi input from my midi controller to variables? And variables to midi message?