-
Software/Code for DIY-MIDI controller..Help!!
Hello everybody!
I started this thread: http://www.djtechtools.com/forum/showthread.php?t=13651
I bought the Teensyduino ++ 2.0 as someone suggested me, and also the other components (potentiometers, buttons, leds).. But I need the basic thing: the software..
I need a code to write on Teensyduino (Arduino-platform clone) that translates the input/output signals i give/receive by/from buttons pots and LEDs into a MIDI CC...
So that i can map it into Traktor..
I'll use Latch&Shift register to read more inputs (8) from a single I/O pin on the Teensyduino..
Anyone who solved a similar problem??
First of all, thanks to everyone who will answer, but if possible, answer me quickly because i need it for sunday morning....!!
HELP!!!
And thanks again!!!!
-
-
DJTT Super Moderator
Heya Dude,
I think the teensy was probably the wrong thing for you to buy if you just wanted to assemble it and go....
I think the thing that you might have missed in that decision is that 'you' need to provide the software, if you look around the net you will find libraries that make it easier for you but if you are just asking for code to make it work for you then you are missing the point of Arduino.
I would suggest the HALE DIY kit is probably what you want to pick up, otherwise time to start learning to code ( which is a good thing).
-
Okay well I think it'll be time to start learning C code.....!!!
BTW Thanks a lot!
See you soon in this thread ('cause i'll need clarifications...!!)
-
DJTT Super Moderator
-
...
It is arduino compatible (as I thought) you could download the software from their website:
http://www.arduino.cc/
Then if you need to code some pots and buttons there are a lot of projects but I advice you this one:
http://ardpdvj.wordpress.com/
You may find some code and midi output inside... Then you could make a maxmsp or pd patch if you need "any kind" of translator/driver soft.
Tell me if it helps you.
...
-
I forward this message, so that everybody knows:
Re: Teensy Code...
Quote:
Originally Posted by steveo1313
__
Did you ever get your DIY midi controller working with Teensy??
Hi!
__
I gave up developing it months ago, but it worked with a trick:
I used serial communication between Teensy and my Mac, and i translated it into MIDI wth Serial to Midi Converter v.2.
So it was fine, but i didn't continue studying it in order to add OUTPUT feature, but it's possible using multiplexers, that i already have bought.. now i've got a little of time, i think i'll develop it a little.
Stay tuned!
This the code i used:
/*
* MIDI controller project - using with Serial2MIDI converter
*
* Arduino sends data over USB
*
* Bologna
* July, 2010
* M. Gavelli
*
* Potentiometer linked at analog0 pin
* Serial2MIDI converter running correctly
* Traktor Pro with mapped control (using "learn" function)
*
* It rocks!!
*/
#include <Midi.h>
int pot0 = 0;
int analog0 = 0;
int analog0old = 0;
int pot1 = 1;
int analog1 = 0;
int analog1old = 0;
void setup(){
Serial.begin(31250);
}
void loop(){
analog0 = analogRead(pot0)/8;
analog1 = analogRead(pot1)/8;// reads analog input
// sends data only when a potentiometer changes its value
if ((analog0 < analog0old -1)||(analog0 > analog0old + 1)){
MIDI_TX(0xB1,13,analog0);
analog0old = analog0;
}
if ((analog1 < analog1old -1)||(analog1 > analog1old + 1)){
MIDI_TX(0xB1,14,analog1);
analog1old = analog1;
}
}
/* void MIDI_TX(unsigned char MESSAGE, unsigned char CONTROL, unsigned char VALUE) */
void MIDI_TX(byte MESSAGE, byte CONTROL, byte VALUE)
{
//pass values out through standard Midi Command
Serial.print(MESSAGE);
Serial.print(CONTROL);
Serial.print(VALUE);
//Serial.print(MESSAGE, BYTE);
//Serial.print(CONTROL, BYTE);
//Serial.print(VALUE, BYTE);
}
______________
This the link to Serial2Midi Converter
http://www.spikenzielabs.com/Spikenz...rial_MIDI.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks