ProMidi not recieving all values
in
Contributed Library Questions
•
2 years ago
- import promidi.*;
- MidiIO midiIO;
- void setup()
- {
- size(512, 512);
- midiIO = MidiIO.getInstance(this);
- midiIO.openInput(2, 0);
- }
- void draw()
- {
- }
- void controllerIn(Controller controller, int deviceNumber, int midiChannel)
- {
- println(controller.getNumber() +": " + controller.getValue());
- }
With the above code I seem not to get all values. First of all, the value 0 is NEVER recieved. So the range is [1, 127], not [0, 127]. I've tried with two different midi controllers.
Second, if I turn a knob fast, it seems like it will skip a lot of values, understandably. But if I then get to the top or bottom of the range, I will ned to turn the knob back a bit, and then go up again to get to the top.
Anyone have any solutions for any of that?
1