well i tried all night long to make it work with the 1.0 IDE and i failed...
so i got back to the 0023 IDE and downloaded the MIDI Library v3.1 :
#include <Midi.h>
#define e 1
byte currentPot = 0;
byte pot = 0;
byte channel = 1;
byte ControlNum = 0;
void setup() {
MIDI.begin(0);
}
void loop() {
currentPot = analogRead(0) / 8;
if(abs(currentPot - pot) > e) {
MIDI.sendControlChange(ControlNum, currentPot, channel);
pot = currentPot;
}
}
now this work but not fully...
i start "Serial_MIDI_Converter_V2D"
and open traktor software (like Virtual DJ),
i pressed the "learn" key in the "Controller Manger" - (in the settings)
and then i rotated the the potentiometer.
the Traktor software did "learn" the potentiometer but not like it should...
each rotate of the potentiometer should change only the value,and in my case its changes the channel and the status byte
Video so u will understand what i am talking about:
http://youtu.be/_UXWEUbw5b4In the video u can see how TRAKTOR respond to the rotate of the potentiometer but in a odd way...
BTW: the only thing that connected to the arduino uno is the potentiometer