Skip to content

How to use cross.simple? #2100

Answered by toots
rrolla asked this question in Q&A
Dec 12, 2021 · 2 comments · 3 replies
Discussion options

You must be logged in to vote

I think it should be:

def transition(a,b)
  if b.metadata["source"] != "music" then
    cross.smart(fade_in=0.5, fade_out=0.1, a, b)
  else
    # Else, apply the standard fade
    # cross.smart(fade_in=7., fade_out=3., a, b)
    cross.simple(fade_in=7., fade_out=3., a.source, b.source)
  end
end

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@toots
Comment options

@rrolla
Comment options

@rrolla
Comment options

Answer selected by rrolla
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants