We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Sorry if this has been asked multiple times but ..
I'm trying to connect my Ableton Live 9 with Max 6.1 to my processing sketch (latest version).
This is the code I'm borrowing:
//"Live 2 Processing" Sample Code
//Taps into OSC to receive audio peak data from Live.
//Use in conjunction with Live 2 Processing (Max4Live plugin)
//by WIGGLE (www.unsound.com)
//Plugin available at: http://www.unsound.com/M4L/
//You will need the OSCp5 library: http://www.sojamo.de/libraries/oscP5/
//and controlP5 library: http://www.sojamo.de/libraries/controlP5/
//thanks: Ableton, Ash Oakenfold, Andreas Schlegel, and Casey Reas
import controlP5.*;
import oscP5.*;
import netP5.*;
ControlP5 controlP5;
Slider xSlider;
Slider ySlider;
OscP5 oscP5;
NetAddress myRemoteLocation;
int varY = round(32 / 8.0f);
int varX = round(32 / 8.0f);
void setup()
{
size(180, 150);
createSliders();
initOsc();
}
void initOsc()
{
oscP5 = new OscP5(this,12000);
myRemoteLocation = new NetAddress("192.168.0.3",12000);
oscP5.plug(this,"onX","/varX");
oscP5.plug(this, "onY", "/varY");
}
void createSliders()
{
controlP5 = new ControlP5(this);
xSlider = controlP5.addSlider("varX",
0, // min
127, // max
32, // default value
20, // x
55, // y
100, // width
10); // height<del><del></del></del>
ySlider = controlP5.addSlider("varY", 0, 127, 32, 20, 75, 100, 10);
}
void draw()
{
background(0x000000);
fill(128);
rect(10, 45, 160, 50);
}
void onX(int value)
{
xSlider.setValue(value);
}
void onY(int value)
{
ySlider.setValue(value);
}
And here are some images in ableton with max:
And this is how it should look like in processing:
So in the past I've managed to connect Oscp5 to max for live reasonably well but its been a while, and I'm unsure If I'm missing something. Basically I want audio from max for live to send audio data/messages from ableton to processing. I'm expecting the VarX VarY to respond to the audio just like the Live2Processing plugin reads the audio. I'm unsure if Its a version probably on processing or max for live. I remember the last time I tried connecting I ran into some version problems with max and ableton but I had solved that problem in the past. I'm unsure if this is an IP or Port issue. If anyone could hint me towards a solution to my problem, I'd gladly appreciate it. Thanks.
found this code and handy plugin at unsound.com/M4L/
Thanks A lot,
Wini
Edit: My apologies but I may have post this in the wrong forum.