Show Posts
Pages: 1 [2]
16  Forum 2005-2010 (read only) / Frequently-Asked Questions / Re: Traktor Pro Arduino Midi Controller [Not working] on: January 02, 2011, 02:31:15 pm
I tried:

    //midi(144, 50, 50);
    
    //midi(128, 50, 50);

but nothing happens :-(

midi = noteOn();
17  Forum 2005-2010 (read only) / Frequently-Asked Questions / Traktor Pro Arduino Midi Controller [Not working] on: January 02, 2011, 12:49:20 pm
Hi,

i would like to create my own simple midi controller for the dj software traktor pro. After some minutes i implemented a little sketch:

Code:
void setup() {        
  Serial.begin(31250);  
  pinMode(13, OUTPUT);    
}

void loop() {
  
  delay(500);
  
  int sensorValue = analogRead(A0);
  
  int realVal = map(sensorValue, 0, 1023, 0, 20);
  
  if(realVal >= 10) {
    
    digitalWrite(13, HIGH);  
    
    noteOn(0x90, 0x1E, 0x45);
    
    delay(2000);
    
    //Serial.print(0xFC,BYTE);
    
    digitalWrite(13, LOW);  
    
  }
  
}

void noteOn(int cmd, int pitch, int velocity) {
  Serial.print(cmd, BYTE);
  Serial.print(pitch, BYTE);
  Serial.print(velocity, BYTE);
}

I use Window 7 and Arduino Duemilanove. SensorValue contains the value from a cheap force sensitive resistor.

Everything works fine and when i press my sensor hard enough a midi message will be transmitted (Serial monitor).

I use MidiYoke and Serial Midi Converter to get a midi device for traktor. When I hit the "Lean Button" in traktor and then press the, nothing happens. I tried every possible combination but i don't get it to work :-(

What i'm doing wrong? Can someone help me please?

Thanks.
Pages: 1 [2]