use of mpe.client.TCPClient in project Most-Pixels-Ever-Processing by shiffman.
the class Volume method setup.
//--------------------------------------
public void setup() {
// make a new Client using an XML file
client = new TCPClient(this, "mpe" + ID + ".xml");
// the size is determined by the client's local width and height
size(client.getLWidth(), client.getLHeight());
if (client.getID() == 0) {
minim = new Minim(this);
in = minim.getLineIn(Minim.STEREO, 512);
}
smooth();
background(255);
resetEvent(client);
// IMPORTANT, YOU MUST START THE CLIENT!
client.start();
}
use of mpe.client.TCPClient in project Most-Pixels-Ever-Processing by shiffman.
the class WaveForm method setup.
//--------------------------------------
public void setup() {
// make a new Client using an XML file
client = new TCPClient(this, "mpe" + ID + ".xml");
// the size is determined by the client's local width and height
size(client.getLWidth(), client.getLHeight());
if (client.getID() == 0) {
minim = new Minim(this);
in = minim.getLineIn(Minim.MONO, 256);
}
smooth();
resetEvent(client);
// IMPORTANT, YOU MUST START THE CLIENT!
client.start();
}
use of mpe.client.TCPClient in project Most-Pixels-Ever-Processing by shiffman.
the class OverallMotion method setup.
// --------------------------------------
public void setup() {
// make a new Client using an XML file
client = new TCPClient(this, "mpe" + ID + ".xml");
// the size is determined by the client's local width and height
size(client.getLWidth(), client.getLHeight());
smooth();
resetEvent(client);
// IMPORTANT, YOU MUST START THE CLIENT!
client.start();
}
use of mpe.client.TCPClient in project Most-Pixels-Ever-Processing by shiffman.
the class ColorTracking method setup.
//--------------------------------------
public void setup() {
// make a new Client using an XML file
client = new TCPClient(this, "mpe" + ID + ".xml");
// the size is determined by the client's local width and height
size(client.getLWidth(), client.getLHeight());
smooth();
resetEvent(client);
// IMPORTANT, YOU MUST START THE CLIENT!
client.start();
}