Hey all,
I recently have a hole bunch of spare time on my hands so if anyone needs help building their controller, or if you've given up and want someone to build one for you. Shoot me a PM or an email (timcrawf88@gmail.com) and i'll help you out.
Hey all,
I recently have a hole bunch of spare time on my hands so if anyone needs help building their controller, or if you've given up and want someone to build one for you. Shoot me a PM or an email (timcrawf88@gmail.com) and i'll help you out.
Hello DJ Fans,
i have a simple question about teensy2 usbMIDI coding
i found the great code at tittelscale´s blog
__________________________
int current_analog;
int previous_analog;
void setup() {
pinMode(0, INPUT);
}
void loop() {
current_analog = analogRead(0);
if(current_analog != previous_analog) {
usbMIDI.sendPitchBend(current_analog << 4, 1);
previous_analog = current_analog;
delay(1);
}
}
}
i want to change - > usbMIDI.sendPitchBend(current_analog << 4, 1);
to - > usbMDI.sendControleCHange(1.0-127-1)
but it dosent work for me.
i need a simple exampel for controling midi CC with Pots.
thank you everybody
mail me please @ magg(at)system-www.de
The channel is just the midi channel you want to send the message on... Channels 1-16 are available...
Last edited by Marylin175; 04-16-2012 at 01:54 AM.
thx for fast replay.
i know that
but how to change
usbMIDI.sendPitchBend(current_analog << 4, 1); in to
usbMIDI.sendControleChange(1 , 0-127, 1) dont work for me
i dont understand the current_analog << 4, 1); for the pitchbend (witch works great for me)
if i change it to usbMIDI.sendControleChange(1 , 0-127, 1) i am sending on channel 1 CC1 value 0-127
but nothing happens in ableton, only the midi channel is channing what i also dont understand![]()
when using "<<" you are doing bitshifting (read up on that stuff, because it looks like you have no idea what it actually does!)
an easier way to this is to use the map() function in the arduino IDE. This allows a analog pot value to be remapped.
http://arduino.cc/en/Reference/Map
|
Bookmarks