Examples of addPacket()


Examples of com.illposed.osc.OSCBundle.addPacket()

      byte[] packetBytes = new byte[packetLength];
      for (int i = 0; i < packetLength; i++) {
        packetBytes[i] = bytes[streamPosition++];
      }
      OSCPacket packet = myConverter.convert(packetBytes, packetLength);
      bundle.addPacket(packet);
    }
    return bundle;
  }

  /**
 
View Full Code Here

Examples of de.sciss.net.OSCBundle.addPacket()

      createDefs( rCfg.numChannels );

      final OSCBundle  bndl  = new OSCBundle( 0.0 );

      for( int ch = 0; ch < rCfg.numChannels; ch++ ) {
        bndl.addPacket( ct.synthsRoute[ ch ].newMsg( ct.grpRoot, new String[] {
          "i_aInBs",                  "i_aOtBs"       }, new float[] {
          rCfg.mapping[ ch ] + chanOff, ct.busInternal.getIndex() + ch }, kAddToHead ));
        nw.register( ct.synthsRoute[ ch ]);
//        bndl.addPacket( ct.synthsMeter[ ch ].newMsg( ct.grpRoot, new String[] {
//          "i_aInBus",             "i_kOutBus" }, new float[] {
View Full Code Here

Examples of de.sciss.net.OSCBundle.addPacket()

    if( (server == null) || !server.isRunning() || (ct == null) ) return;
   
    final OSCBundle bndl = new OSCBundle();

    try {
      bndl.addPacket( ct.synthDiskOut.freeMsg() );
      bndl.addPacket( ct.bufDisk.closeMsg() );
      stopCommit  = commit;
      server.sendBundle( bndl );
      timeoutTimer.stop();
      timeoutTimer.setMessage( "Failed to stop recording synth" );
View Full Code Here

Examples of de.sciss.net.OSCBundle.addPacket()

   
    final OSCBundle bndl = new OSCBundle();

    try {
      bndl.addPacket( ct.synthDiskOut.freeMsg() );
      bndl.addPacket( ct.bufDisk.closeMsg() );
      stopCommit  = commit;
      server.sendBundle( bndl );
      timeoutTimer.stop();
      timeoutTimer.setMessage( "Failed to stop recording synth" );
      timeoutTimer.setActions( new Action[] { actionStop, actionAbort, actionClose });
View Full Code Here

Examples of de.sciss.net.OSCBundle.addPacket()

      final OSCBundle    bndl  = new OSCBundle();
      final OSCMessage  msgWrite;
     
      try {
//        server.dumpOutgoingOSC( kDumpBoth );
        bndl.addPacket( ct.bufDisk.closeMsg() );
//        msgWrite = ct.bufDisk.writeMsg( ct.recFile.getAbsolutePath(), "aiff",
//                affp.getEncodingString(), 0, 0, true );
        msgWrite = ct.bufDisk.writeMsg( ct.recFile.getAbsolutePath(), "aiff",
                encodingString, 0, 0, true );
        bndl.addPacket( msgWrite );
View Full Code Here

Examples of de.sciss.net.OSCBundle.addPacket()

        bndl.addPacket( ct.bufDisk.closeMsg() );
//        msgWrite = ct.bufDisk.writeMsg( ct.recFile.getAbsolutePath(), "aiff",
//                affp.getEncodingString(), 0, 0, true );
        msgWrite = ct.bufDisk.writeMsg( ct.recFile.getAbsolutePath(), "aiff",
                encodingString, 0, 0, true );
        bndl.addPacket( msgWrite );
        if( server.sendBundleSync( bndl, msgWrite.getName(), 4 )) {
          nw.register( ct.synthDiskOut );
         
//System.out.println( "HERE" );
//try { Thread.sleep( 3000 ); } catch( InterruptedException e1 ) { /* ... */ }
View Full Code Here

Examples of de.sciss.net.OSCBundle.addPacket()

   
    bndl        = new OSCBundle();
    grpRoot        = Group.basicNew( server );
    grpRoot.setName( "Root-" + doc.getName() );
    nw.register( grpRoot );
    bndl.addPacket( grpRoot.addToHeadMsg( server.getDefaultGroup() ));
    grpInput      = Group.basicNew( server );
    grpInput.setName( "Input" );
    nw.register( grpInput );
    bndl.addPacket( grpInput.addToTailMsg( grpRoot ));
    grpOutput      = Group.basicNew( server );
View Full Code Here

Examples of de.sciss.net.OSCBundle.addPacket()

    nw.register( grpRoot );
    bndl.addPacket( grpRoot.addToHeadMsg( server.getDefaultGroup() ));
    grpInput      = Group.basicNew( server );
    grpInput.setName( "Input" );
    nw.register( grpInput );
    bndl.addPacket( grpInput.addToTailMsg( grpRoot ));
    grpOutput      = Group.basicNew( server );
    grpOutput.setName( "Output" );
    nw.register( grpOutput );
    bndl.addPacket( grpOutput.addToTailMsg( grpRoot ));
    bndl.addPacket( grpOutput.runMsg( false ));
View Full Code Here

Examples of de.sciss.net.OSCBundle.addPacket()

    nw.register( grpInput );
    bndl.addPacket( grpInput.addToTailMsg( grpRoot ));
    grpOutput      = Group.basicNew( server );
    grpOutput.setName( "Output" );
    nw.register( grpOutput );
    bndl.addPacket( grpOutput.addToTailMsg( grpRoot ));
    bndl.addPacket( grpOutput.runMsg( false ));
   
    server.sendBundle( bndl );
   
    busPhasor      = Bus.audio( server );
View Full Code Here

Examples of de.sciss.net.OSCBundle.addPacket()

    bndl.addPacket( grpInput.addToTailMsg( grpRoot ));
    grpOutput      = Group.basicNew( server );
    grpOutput.setName( "Output" );
    nw.register( grpOutput );
    bndl.addPacket( grpOutput.addToTailMsg( grpRoot ));
    bndl.addPacket( grpOutput.runMsg( false ));
   
    server.sendBundle( bndl );
   
    busPhasor      = Bus.audio( server );
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.