Working with Multiple Comps

Danny_J's picture

So I'm using a Composition Loader patch to load to different comps. The enable input is hooked up to a Demultiplexer using both 0 and 1 destination outputs. I've enabled the reset value input as well.

Now my problem is i wanna have it so every 5 mins the Destination Index output switches from 0 to 1 then back to 0 after another 5 mins is passed. So from 0-5 mins its the first comp. Then from 5-10th minute its the 2nd comp. So on and so forth until the end of time. Is this possible without having to use a JSpatch. I was thinking about trying Stop Watch but wasn't sure how it works. Thanks guys!

franz's picture
Re: Working with Multiple Comps

use a "pulse signal" patch to output TRUE every 300 seconds, connect this to a "counter" patch, and connect the counter output to a "math" patch set to MODULO 2.

cwright's picture
Re: Working with Multiple Comps

Have an LFO, set period to 600 (600 seconds = 2 5 minute intervals), set type to Square Wave (output 0 or 1 only).

Danny_J's picture
Re: Working with Multiple Comps

franz wrote:
use a "pulse signal" patch to output TRUE every 300 seconds, connect this to a "counter" patch, and connect the counter output to a "math" patch set to MODULO 2.

Am i setting the Maths initial value to 300? and which patch would connect to the Boolean Demultiplexer?

Danny_J's picture
Re: Working with Multiple Comps

cwright wrote:
Have an LFO, set period to 600 (600 seconds = 2 5 minute intervals), set type to Square Wave (output 0 or 1 only).

What about the other 4 inputs (Phase, Amplitude, Offset, PWM Ratio). Once done i take it i just hook the result to the destination index. I'm also assuming that it'll reset itself or just loop from 0 to 1 somehow.

cwright's picture
Re: Working with Multiple Comps

  • Phase -- don't care
  • Amplitude -- don't modify
  • Offset -- don't modify
  • PWM -- don't care

Just plug the output into the index.

It will repeat endlessly (that's how LFOs work -- they generate repeating waves).

Danny_J's picture
Re: Working with Multiple Comps

I see...(i'm such a noob) Well thanks a lot guys that really helped and i've got it working. Though waiting 5 minutes to see if it works kinda sucks due to anticipation....

One more question is it possible to make the comp loader have a image input or output. I would like to add transitions between the two and not just have it appear.

cwright's picture
Re: Working with Multiple Comps

You can set Period lower to make the switch faster (for testing).

You'd have to put the loaders inside render in image patches, and then do some blending that way. If you did that, you'd need some more glue to get the transition looking nice.

Danny_J's picture
Re: Working with Multiple Comps

I see...yea i made the period a minute for now. and i messed around with the amp and offset and figured out how they worked.

But lets say i want to work with more then just 2 comps. For my testing i'm using 3 comps (my final product might have 10 since i have to make a 30min show). So i made a third Destination output(#2) on the demultiplexer. And i made the amp and offset on the LFO 1 so that way its max value is 2. But now it skips over the 2nd comp, which is destination 1 on the demulitplexer. So i'm only seeing two comps as appose to 3. Can the LFO still do this?

cwright's picture
Re: Working with Multiple Comps

LFO won't handle more than 2 very well -- you should use Franz's suggestion above (but mod 3 instead of mod 2)

Danny_J's picture
Re: Working with Multiple Comps

Yea i still don't understand how franz set it up.

franz's picture
Re: Working with Multiple Comps

check this

(you need to enable private patches)

PreviewAttachmentSize
COUNTER.qtz3.61 KB

Danny_J's picture
Re: Working with Multiple Comps

Can i just say you guys rock!! Thanks so much i had no idea you meant Signal. I kept trying to use the Pulse patch and was like what is going on. That example really helped franz thanks again.