Search in sources :

Example 1 with TCPClient

use of mpe.client.TCPClient in project Most-Pixels-Ever-Processing by shiffman.

the class Headlines 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());
    resetEvent(client);
    client.start();
}
Also used : TCPClient(mpe.client.TCPClient)

Example 2 with TCPClient

use of mpe.client.TCPClient in project Most-Pixels-Ever-Processing by shiffman.

the class Throwing 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();
    background(255);
    // IMPORTANT, YOU MUST START THE CLIENT!
    client.start();
}
Also used : TCPClient(mpe.client.TCPClient)

Example 3 with TCPClient

use of mpe.client.TCPClient in project Most-Pixels-Ever-Processing by shiffman.

the class HelloWorld 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();
    background(255);
    resetEvent(client);
    // IMPORTANT, YOU MUST START THE CLIENT!
    client.start();
}
Also used : TCPClient(mpe.client.TCPClient)

Example 4 with TCPClient

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();
}
Also used : TCPClient(mpe.client.TCPClient)

Example 5 with TCPClient

use of mpe.client.TCPClient in project Most-Pixels-Ever-Processing by shiffman.

the class Threshold 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();
    background(255);
    resetEvent(client);
    // IMPORTANT, YOU MUST START THE CLIENT!
    client.start();
}
Also used : TCPClient(mpe.client.TCPClient) Minim(ddf.minim.Minim)

Aggregations

TCPClient (mpe.client.TCPClient)9 Minim (ddf.minim.Minim)3