Search in sources :

Example 6 with TCPClient

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

Example 7 with TCPClient

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

Example 8 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 9 with TCPClient

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

Aggregations

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