Package oscP5

Examples of oscP5.OscBundle


        if (oscP5 != null)
            stop();
        if (oscPort == -1) return;
        oscMessages.clear();
        oscP5 = new OscP5(new Object(), oscPort);
        oscP5.addListener(new OscEventListener() {
            @Override
            public void oscEvent(OscMessage m) {
                if (! isPaused()) {
                    ImmutableList<Object> arguments = ImmutableList.copyOf(m.arguments());
                    oscMessages.put(m.addrPattern(), arguments);
View Full Code Here


      // y se prepare para recibir al visitante
      // El mismo mensaje lo mando a la terminal   

      logger.info("SENDING AKG TO VISUAL + TERMINAL");

      OscMessage myMessage = new OscMessage("/visitorReady")

      myMessage.add(v.getName1());
      myMessage.add(v.getName2());
      oscGateway.send(myMessage, oscVisualLocation);
      oscGateway.send(myMessage, oscTerminalLocation);

    }else{

      logger.info("VISITOR DOESNT EXISTS");

      // el codigo ingresado es incorrecto
      // responde negativo solo a la terminal
      OscMessage myMessage = new OscMessage("/visitorError")
      oscGateway.send(myMessage, oscTerminalLocation);

    }
  }
View Full Code Here

      // y se prepare para recibir al visitante
      // El mismo mensaje lo mando a la terminal   

      logger.info("SENDING AKG TO VISUAL + TERMINAL");

      OscMessage myMessage = new OscMessage("/visitorReady")

      myMessage.add( checkName(v.getName1()));
      myMessage.add( checkName(v.getName2()));
      oscGateway.send(myMessage, oscVisualLocation);
      oscGateway.send(myMessage, oscTerminalLocation);

    }else{

      logger.info("VISITOR DOESNT EXISTS");

      // el codigo ingresado es incorrecto
      // responde negativo solo a la terminal
      OscMessage myMessage = new OscMessage("/visitorError")
      oscGateway.send(myMessage, oscTerminalLocation);

    }
  }
View Full Code Here

 

 
  private void visualStatus(){
   
    OscMessage myMessage = new OscMessage("/pingVisual")
   
  //  oscTerminalLocation = new NetAddress("127.0.0.1",  oscTerminalPort);
   
    oscGateway.send(myMessage, oscTerminalLocation);
   
View Full Code Here

  }

 
  public void sendOSCMessage(String message, NetAddress dest){
   
    OscMessage myMessage = new OscMessage(message);     
    oscGateway.send(myMessage, oscCoreLocation);
 
  }
View Full Code Here

      // y se prepare para recibir al visitante
      // El mismo mensaje lo mando a la terminal   

      logger.info("SENDING AKG TO VISUAL + TERMINAL");

      OscMessage myMessage = new OscMessage("/visitorReady")

      myMessage.add( checkName(v.getName1()));
      myMessage.add( checkName(v.getName2()));
     
      oscGateway.send(myMessage, oscVisualLocation);
      oscGateway.send(myMessage, oscTerminalLocation);

    }else{

      logger.info("VISITOR DOESNT EXISTS");

      // el codigo ingresado es incorrecto
      // responde negativo solo a la terminal
      OscMessage myMessage = new OscMessage("/visitorError")
      oscGateway.send(myMessage, oscTerminalLocation);

    }
  }
View Full Code Here



  private void visualStatus(){

    OscMessage myMessage = new OscMessage("/pingVisual");   
    oscGateway.send(myMessage, oscTerminalLocation);

  }
View Full Code Here

        }
        return b.build();
    }

    public static void sendOSC(String ipAddress, long port, String oscAddress, Iterable<Double> oscArguments) {
        OscMessage message = new OscMessage(oscAddress);

        Iterator iterator = oscArguments.iterator();
        while (iterator.hasNext()) {
            message.add(((Double) iterator.next()).floatValue());
        }

        UdpClient c = new UdpClient(ipAddress, (int) port);
        c.send(message.getBytes());
    }
View Full Code Here

    // conexion con la base de datos
    sql = new Sql();

    // en que puerto escucho mis mensajes
    oscGateway = new OscP5(this, oscInputPort);

    // hacia donde mando mensajes
    oscTerminalLocation = new NetAddress("192.168.1.101",  oscTerminalPort);
    oscVisualLocation = new NetAddress("127.0.0.1",    oscVisualPort);
View Full Code Here

    frame.setLocation(GUI_X, GUI_Y)
    frame.setCursor(Cursor.CROSSHAIR_CURSOR);

    mySetup();
   
    coreListen = new OscP5(this,inputPort);
  }
View Full Code Here

TOP

Related Classes of oscP5.OscBundle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.