Productions

Isadora video step sequencer

A four-channel sequencer for blending video sources in a live Isadora patch.

What is a video sequencer?

In this case, a video sequencer is loosely modeled on a hardware drum machine. It is a software module in Isadora that steps through four video sources while keeping two feeds live and crossfading between them.

The internal switching unit is the programming focus. It passes multiple video streams through a cross-fader, with a source available for each channel and global play and transition times for the clips.

This tutorial assumes that you are familiar with Isadora and have watched the basic video tutorials.

The finished sequencer should work on macOS and Windows, although this original article was only tested on Windows. It is built from four basic elements:

  1. A 2-channel Video Switcher
  2. A 2-channel Video Cross-Fader
  3. A simple user interface

The Video Switcher becomes a reusable User Actor called Video Switch. It is used inside another User Actor called SequenceMixer. Actors are not required, but they make the patch cleaner, easier to move, and reusable in later projects.

Back to Lab

The completed Video Sequencer interface in Isadora.

Step 1: build the Video Switcher

Step 1 complete: four movie players and selectors feeding two projectors.

A smooth video switch requires that the stream of video you are switching between be active before the switch occurs. Since the switch includes a cross-fade, the primary video remains visible until the cross-fade completes, while the secondary video takes its place. The reverse is also true: the next video must be active before the cross-fade begins.

We will use two selector actors to switch four videos across two channels.

Let's do it

  1. Add four Movie Player actors and import at least four videos. Set each player to play a separate video.
  2. Add a Selector actor from the Control toolbox and set its input count to 4.
  3. Connect each Movie Player to one Selector input.
  4. Repeat for the second Selector.
  5. Add two Projector actors. Connect each Selector output to a Projector video input.
  6. Set the projectors to additive and change their intensity to 50.

Recap

Each Movie Player output should connect to one input in each Selector. Keep the connection order identical: if Movie Player 1 connects to the first input of Selector 1, it should also connect to the first input of Selector 2.

The original example used bypassed Video Delay actors to keep the connection threads tidy. Both Selector outputs should feed a Projector.

Step 2: make the selectors switch

Step 2 complete: counter, pulse, delay line and selectors.

Currently, only one video is playing because each Selector's select input is set to 1. Change the setting from 1 through 4 to test how a Selector chooses its corresponding video input.

The next task is to automate those selector inputs with a looping value of 1 through 4. One feed must remain one step behind the other so the patch always has primary and secondary video streams.

Let's do it

  1. Add a Counter actor. Set Mode to wrap, minimum to 1, and maximum to 4.
  2. Add a Pulse actor and set frequency to 0.33 Hz. Connect its trigger output to the Counter's add input.
  3. Connect the Counter output to the lead or primary Selector's select input.
  4. Add a Value Delay Line actor with size 1. Connect the Counter output to its value input.
  5. Connect the Delay Line output to the secondary Selector's select input.

Set the horizontal position of one Projector to 50 and the other to -50. The two video streams should appear beside one another. One video will be visible once on each side before the next video replaces it.

Recap

  • The Counter wraps through 1, 2, 3, 4, 1, 2, 3, 4.
  • The Pulse acts as the counter clock. Pulse frequency is measured in Hz: 1 cycle per second.
  • The Value Delay Line offsets the secondary Selector by one step.

Changing the Delay Line size from 1 to 2 would pass a value two steps behind the current position. This would be problematic because the cross-fader would not have a simple primary/secondary pair.

Step 3: create the Video Switch User Actor

Video Switch user actor with named inputs and outputs.

Wrap the current switching functionality inside a custom User Actor. This keeps the interface cleaner and makes the same switching block reusable in later patches.

Let's do it

  1. Add a User Actor and rename it Video Switch.
  2. Select the patch, deselect the new User Actor, copy it, and deselect everything else.
  3. Double-click the Video Switch actor and paste the patch into its internal tab.
  4. Close the tab and choose Save & Update All.
  5. At the top level, remove the logic now embedded in the User Actor. Keep the Video Switch, Movie Players, and Projectors.
  6. Double-click into Video Switch and add a User Input near each Movie Player. Replace each Movie Player output connection with the new User Input.
  7. Add a User Output for each Selector output and replace the Projector connections.
  8. Replace the Pulse with a User Input that connects to the Counter's add input.
  9. Rename the inputs to clear labels such as Video1 input through Video4 input, and name the outputs Video1 output and Video2 output.
  10. Save and update the User Actor.
  11. At the top level, reconnect the Movie Players to the matching Video Switch inputs and its outputs to the Projectors.
  12. Reconnect the Pulse trigger to the Video Switch add input.

The patch should now run identically to the end of Step 2, with the switching logic contained inside one reusable actor.

Recap

User Actors encapsulate reusable functions and require explicit inputs and outputs. Where many threads meet the actor boundary, intermediate actors can keep the connection structure clear. The example used bypassed Video Delay actors after the Movie Players.

Step 4: control the pulse time in seconds

Pulse time controls using an Absolute Value and Calculator actor.

The Pulse actor uses Hz, so add a simple conversion to control the sequence in seconds.

Let's do it

  1. Add an Absolute Value actor.
  2. Add a Calculator actor. Set its operation to divide and set input value 1 to 1.
  3. Connect the Absolute Value output to Calculator value 2.
  4. Connect the Calculator output to the Pulse frequency input.

The calculation is 1 รท seconds = Hz. Try short periods such as 0.25 seconds and longer periods such as 7 seconds.

Recap

Pulse and other generator actors use Hz as their frequency unit. A simple calculation converts cycles per second into the more human-readable unit of seconds.

Step 5: build on a video mixer

Video mixer and envelope generator patch.

This step adds the cross-fade that moves from one image to the next. Transition time can be adjusted independently of play time. If transition time is longer than play time, the next switch begins before the previous cross-fade completes. That behavior can also be useful as an effect.

Let's do it

  1. Delete one Projector actor.
  2. Add a Mixer actor and connect both Video Switch video outputs to its video inputs.
  3. Connect the Mixer video output to the remaining Projector.
  4. Add an Envelope Generator. Its defaults can be used.
  5. Connect the Envelope Generator output to the Mixer mix-value input.
  6. Connect the Pulse trigger to the Envelope Generator trigger input.
  7. Set the remaining Projector horizontal position to 0.

The Mixer should transition from 0 to 100 over 1 second. The transition time can be changed by adjusting Envelope Generator rate 1.

Recap

The Pulse now does two jobs:

  1. It triggers switching in the Video Switch actor.
  2. It starts the Mixer transition with the Envelope Generator.

When a trigger arrives, the primary video moves to the secondary output while the Envelope Generator starts its transition. The next trigger repeats the process, creating a repeating two-channel cross-over.

A useful test is to set play time to 10 seconds and the transition time to match. The two feeds should produce a slow, continuous cross-fade.

Step 6: make it modular

User Actor containing the modular sequencer elements.

Wrap the complete sequence into another User Actor named SequenceMixer. This makes it possible to run multiple sequencers in the same patch.

The completed SequenceMixer actor and connections.

Let's do it

  1. Select the Calculator, Pulse Generator, Envelope Generator, Video Switch, and Mixer actors.
  2. Cut the selected actors.
  3. Add a User Actor and double-click into it.
  4. Paste the cut actors inside.
  5. Add and connect User Inputs and User Outputs at the former connection points.
  6. Rename the inputs and outputs by their purpose.
  7. Close the User Actor tab and save and update all.
  8. Relink the Movie Players and the remaining Projector.
  9. Rename the new User Actor SequenceMixer.
  10. If an Absolute Value actor was used, it can be deleted because the value can be entered directly in the new actor input.

The completed SequenceMixer should have six inputs: two time inputs and four video inputs, plus one video output.

Recap

Cut and paste the functions that belong together, add the required inputs and outputs, save the User Actor, and relink the outside patch. This is the same encapsulation process as Step 3, with one User Actor containing another.

Step 7: build an interface

Completed control interface for the Video Sequencer.

Add controls for each of the four video feeds and sliders for play time and transition time.

Let's do it

  1. Turn Actor/Control split on.
  2. Enable edit mode.
  3. Add a Bin Picker control and resize it to roughly 100 pixels wide and 250 pixels tall.
  4. Drag the control link ID to the Movie input of the first Movie Player.
  5. Open the Bin Picker and enable Select all of selected type.
  6. Copy and place three more Bin Pickers for the remaining Movie Players.
  7. Add two sliders and link their IDs to the two time inputs on SequenceMixer.
  8. Turn off edit mode.

The basic controls work, but the time controls may require manual scaling. This is also where the transition slider's decimal scaling should be corrected.

Alternative interface with direct Movie Player controls and a primary-movie indicator.

This alternative interface includes a green bar that shows the current primary movie. It passes the current selection out of Video Switch, then out of SequenceMixer, and displays it with a horizontal radio-button control.

Controls can be linked to outputs inside nested actors, but that creates difficult-to-follow connection threads. Passing the value through and out to the actor surface takes more setup but produces a clearer and more maintainable interface.

How to improve this patch

To make the actors more reusable, rebuild the Video Switch with only one channel of video. Use two copies inside SequenceMixer to feed the cross-fade system.

Once that works, turn the cross-fade system itself into another User Actor. A reusable cross-fade block is useful in many later projects.

Watch on YouTube