Class TutorialOne_04_Network.NetworkDelegate

java.lang.Object
net.paulhertz.pixelaudio.example.TutorialOne_04_Network.NetworkDelegate
Enclosing class:
TutorialOne_04_Network

public class TutorialOne_04_Network.NetworkDelegate extends Object
A class to handle network connections over UDP, for example, with a Max or Pd patch. Used by applications that implement the PANetworkClientINF.
See Also:
  • Field Details

    • parent

      private processing.core.PApplet parent
    • app

      private PANetworkClientINF app
    • osc

      private oscP5.OscP5 osc
    • inPort

      private int inPort
    • outPort

      private int outPort
    • remoteFromAddress

      private String remoteFromAddress
    • remoteToAddress

      private String remoteToAddress
    • remoteFrom

      private netP5.NetAddress remoteFrom
    • remoteTo

      private netP5.NetAddress remoteTo
    • drawCount

      private int drawCount
  • Constructor Details

  • Method Details

    • init

      public void init()
    • getInPort

      public int getInPort()
    • setInPort

      public void setInPort(int inPort)
    • getOutPort

      public int getOutPort()
    • setOutPort

      public void setOutPort(int outPort)
    • getRemoteFrom

      public netP5.NetAddress getRemoteFrom()
    • setRemoteFrom

      public void setRemoteFrom(netP5.NetAddress remoteFrom)
    • getRemoteTo

      public netP5.NetAddress getRemoteTo()
    • setRemoteTo

      public void setRemoteTo(netP5.NetAddress remoteTo)
    • getDrawCount

      public int getDrawCount()
    • setDrawCount

      public void setDrawCount(int drawCount)
    • initOscPlugs

      public void initOscPlugs()
      SET UP RESPONSE TO INCOMING MESSAGES Call the osc.plug(Object theObject, String the MethodName, String theAddrPattern) or osc.plug(Object theObject, String the MethodName, String theAddrPattern, String the TypeTag) to setup callbacks to methods in the current object ("this") or other object instance.
    • oscEvent

      void oscEvent(oscP5.OscMessage theOscMessage)
    • oscSendMousePressed

      public void oscSendMousePressed(int sampleX, int sampleY, int sample)
    • oscSendMultiSlider

      public void oscSendMultiSlider(ArrayList<processing.core.PVector> drawPoints)
    • oscSendDrawPoints

      public void oscSendDrawPoints(ArrayList<processing.core.PVector> drawPoints)
    • oscSendTimeStamp

      public void oscSendTimeStamp(int timeStamp, int timeOffset)
    • oscSendTrig

      public void oscSendTrig(int index)
    • oscSendDelete

      public void oscSendDelete(int index)
    • oscSendClear

      public void oscSendClear()
    • oscSendFileInfo

      public void oscSendFileInfo(String path, String name, String tag)
    • sampleHit

      public void sampleHit(int sam)
    • drawHit

      public void drawHit(int... args)
    • multislider

      public void multislider(int... args)
    • parseKey

      public void parseKey(int arg)
    • controlMsg

      public void controlMsg(String ctrl, float val)