Examples of BlendContext


Examples of de.sciss.meloncillo.io.BlendContext

      final AbstractCompoundEdit  edit;
      final Flag          hasSelectedAudio;
      final List          tis;
      final boolean        expTimeline, cutTimeline;
      final long          docLength, pasteLength, preMaxLen, postMaxLen;
      final BlendContext      bcPre, bcPost;
     
      hasSelectedAudio  = new Flag( false );
      tis          = Track.getInfos( selectedTracks.getAll(), tracks.getAll() );
      if( !checkSyncedAudio( tis, mode == EDIT_INSERT, null, hasSelectedAudio )) return null;
View Full Code Here

Examples of de.sciss.meloncillo.io.BlendContext

      final ClipboardTrackList    tl          = (ClipboardTrackList) context.getClientArg( "tl" );
      final long            insertPos      = ((Long) context.getClientArg( "pos" )).longValue();
      final int            mode        = ((Integer) context.getClientArg( "mode" )).intValue();
      final List            tis          = (List) context.getClientArg( "tis" );
      final AbstractCompoundEdit    edit        = (AbstractCompoundEdit) context.getClientArg( "edit" );
      final BlendContext        bcPre        = (BlendContext) context.getClientArg( "bcPre" );
      final BlendContext        bcPost        = (BlendContext) context.getClientArg( "bcPost" );
      final Span            insertSpan      = (Span) context.getClientArg( "insertSpan" );
      final Span            copySpan      = (Span) context.getClientArg( "copySpan" );
      final boolean          cutTimeline      = ((Boolean) context.getClientArg( "cut" )).booleanValue();
      final Span            cutTimelineSpan    = (Span) context.getClientArg( "cutSpan" );
      final long            delta        = insertPos - tl.getSpan().start;
View Full Code Here

Examples of de.sciss.meloncillo.io.BlendContext

      if( maxLeft + maxRight > blendLen ) {
        maxLeft  = (long) (maxLeft * (double) blendLen / (maxLeft + maxRight) + 0.5 );
        maxRight= blendLen - maxLeft;
      }
    }
    return new BlendContext( maxLeft, maxRight, CurvePanel.getControlPoints( prefs ) );
  }
View Full Code Here

Examples of de.sciss.meloncillo.io.BlendContext

   @synchronization  waitShared on DOOR_TIME
   */
  public BlendContext getBlending()
  {
    // create a copy of the reference because bc might be set to null in the meantime
      BlendContext myBC = bc;
   
    if( myBC != null ) return myBC;

    int          blendLen;
    final Preferences  prefs  = getUserPrefs();

    if( prefs.node( PrefsUtil.NODE_SHARED ).getBoolean( PrefsUtil.KEY_BLENDING, false )) {
      try {
        doc.bird.waitShared( Session.DOOR_TIME );
        blendLen = (int) (doc.timeline.getRate() *
          Math.max( 0.0, prefs.node( PrefsUtil.NODE_SHARED ).getDouble(
                    PrefsUtil.KEY_BLENDTIME, 0.0 )) + 0.5);
      }
      finally {
        doc.bird.releaseShared( Session.DOOR_TIME );
      }
    } else {
      blendLen = 0;
    }
//    myBC  = new BlendContext( blendLen );
    myBC  = new BlendContext( blendLen, blendLen, new Point2D[] {
      new Point2D.Float( 0.5f, 0.5f ), new Point2D.Float( 0.5f, 0.5f )
    }); // EEE
    bc    = myBC;
   
    // return a copy of the reference because bc might be set to null in the meantime
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.