Pages: [1]   Go Down
Author Topic: Traktor Pro Arduino Midi Controller [Not working]  (Read 1392 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 212
Posts: 13531
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe there is a NoteOff() needed?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I tried:

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

but nothing happens :-(

midi = noteOn();
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What did i miss? :-(
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I found it!

http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1161023163/30

You have to mod the FTDI USB Driver! Enjoy! :-)
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 1
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What did i miss?








__________________
dressale.com vicyc.com  saleomg.com
Logged

Pages: [1]   Go Up
Jump to: