Package de.sciss.jcollider

Examples of de.sciss.jcollider.Control


  }

  private boolean createDefs( int numInputChannels )
  throws IOException
  {
    final Control    ctrlI  = Control.ir( new String[] { "i_aInBs", "i_aOtBf" }, new float[] { 0f, 0f });
    final GraphElem    graph;
    final SynthDef    def;
   
    if( numInputChannels > 0 ) {
      final GraphElem  in    = UGen.ar( "In", numInputChannels, ctrlI.getChannel( "i_aInBs" ));
      final GraphElem  out    = UGen.ar( "DiskOut", ctrlI.getChannel( "i_aOtBf" ), in );
      graph = out;
//System.out.println( "DiskOut has " + out.getNumOutputs() + " outputs!" );
    } else {
      graph = ctrlI;
    }
View Full Code Here


      numDefs++;
    }
   
    defs = new SynthDef[ numDefs ];
    for( int i = 0; i < numDefs; i++ ) {
      final Control    ctrlI  = Control.ir( new String[] { "i_aInBf", "i_aOtBs", "i_aPhBs", "i_intrp" }, new float[] { 0f, 0f, 0f, 1f });
      final GraphElem    graph;
     
      if( numInCh[ i ] > 0 ) {
        final GraphElem  phase  = UGen.ar( "In", ctrlI.getChannel( "i_aPhBs" ));
        final GraphElem  bufRd  = UGen.ar( "BufRd", numInCh[ i ], ctrlI.getChannel( "i_aInBf" ), phase, UGen.ir( 0f ), ctrlI.getChannel( "i_intrp" ));
//        final GraphElem  out    = UGen.ar( "OffsetOut", ctrlI.getChannel( "i_aOtBs" ), bufRd );
        final GraphElem  out    = UGen.ar( "Out", ctrlI.getChannel( "i_aOtBs" ), bufRd );
        graph  = out;
      } else {
        graph  = ctrlI;
      }
      defs[ i = new SynthDef( "eisk-input" + numInCh[ i ], graph );
View Full Code Here

    return defs;
  }
 
  private SynthDef[] createOutputDefs( int numOutputChannels )
  {
    final Control    ctrlI  = Control.ir( new String[] { "i_aInBs", "i_aOtBs" }, new float[] { 0f, 0f });
    final Control    ctrlK  = Control.kr( new String[] { "pos", "width", "orient", "volume" }, new float[] { 0f, 2f, 0f, 1f });
    final GraphElem    graph;
    final SynthDef    def;
   
    if( numOutputChannels > 0 ) {
      final GraphElem  in    = UGen.ar( "In", ctrlI.getChannel( "i_aInBs" ));
      final GraphElem  pan;
      if( numOutputChannels > 1 ) {
        pan          = UGen.ar( "PanAz", numOutputChannels, in, ctrlK.getChannel( "pos" ), ctrlK.getChannel( "volume" ),
                                         ctrlK.getChannel( "width" ), ctrlK.getChannel( "orient" ));
      } else {
        pan          = UGen.ar( "*", in, ctrlK.getChannel( "volume" ));
      }
//      final GraphElem  out    = UGen.ar( "OffsetOut", ctrlI.getChannel( "i_aOtBs" ), pan );
      final GraphElem  out    = UGen.ar( "Out", ctrlI.getChannel( "i_aOtBs" ), pan );
      graph = out;
    } else {
View Full Code Here

  private SynthDef createDef( int numChannels )
  throws IOException
  {
    if( UGenInfo.infos == null ) UGenInfo.readBinaryDefinitions();
   
    final Control    i_aInBs  = Control.ir( "i_aInBs", new float[ numChannels ]);
    final GraphElem    i_kOtBs  = Control.ir( "i_kOtBs" );
    final GraphElem    t_trig  = TrigControl.kr( "t_trig" );
    final GraphElem    in    = UGen.ar( "In", i_aInBs );
    GraphElem      rms    = UGen.ar( "Lag", UGen.ar( "squared", in ), UGen.ir( 0.1f ));
//    GraphElem      peak  = UGen.ar( "Peak", in, t_trig );
View Full Code Here

TOP

Related Classes of de.sciss.jcollider.Control

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.