Package de.sciss.io

Examples of de.sciss.io.Span.replaceStop()


    postMaxLen    = pasteLength - preMaxLen;
    consc.bcPre    = doc.createBlendContext( preMaxLen, 0, source.validAudio );
    consc.bcPost  = doc.createBlendContext( postMaxLen, 0, source.validAudio );
    span      = context.getTimeSpan();
    consc.blendPreSpan = consc.bcPre == null ? new Span() :
      span.replaceStop( span.start + consc.bcPre.getLen() );
    consc.blendPostSpan = consc.bcPost == null ? new Span() :
      span.replaceStart( span.stop - consc.bcPost.getLen() );

    progress    = 0.0f;
//    pt  = new ProcessingThread( this, doc.getFrame(), doc.bird, plugIn.getName(), new Object[] { context, null },
View Full Code Here


      chunkSpan  = new Span( insertPos + framesWritten, insertPos + framesWritten + chunkLen );

      if( framesWritten < preLen ) {  // fade this out
        chunkLen2  = (int) Math.min( chunkLen, preLen - framesWritten );
        deltaChunk  = chunkLen - chunkLen2;
        chunkSpan2  = deltaChunk > 0 ? chunkSpan.replaceStop( chunkSpan.stop - deltaChunk ) : chunkSpan;
//System.err.println( "B this.readFrames( mixBuf, 0, " + chunkSpan2 + " )" );
        this.readFrames( mixBuf, 0, chunkSpan2 );
//System.err.println( "B bc.fadeOut : mixBuf in [ 0 ... " + chunkLen2 + " ], offset = "+framesWritten );
        bcPre.fadeOut( framesWritten, mixBuf, 0, mixBuf, 0, chunkLen2 );
        for( int i = 0; i < mixBuf.length; i++ ) {
View Full Code Here

      chunkSpan  = new Span( insertPos + framesWritten, insertPos + framesWritten + chunkLen );

      if( framesWritten < preLen ) {  // fade this out
        chunkLen2  = (int) Math.min( chunkLen, preLen - framesWritten );
        deltaChunk  = chunkLen - chunkLen2;
        chunkSpan2  = deltaChunk > 0 ? chunkSpan.replaceStop( chunkSpan.stop - deltaChunk ) : chunkSpan;
//System.err.println( "B this.readFrames( mixBuf, 0, " + chunkSpan2 + " )" );
        this.readFrames( mixBuf, 0, chunkSpan2 );
//System.err.println( "B bc.fadeOut : mixBuf in [ 0 ... " + chunkLen2 + " ], offset = "+framesWritten );
        bcPre.fadeOut( framesWritten, mixBuf, 0, mixBuf, 0, chunkLen2 );
        for( int i = 0; i < mixBuf.length; i++ ) {
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.