Switcher

Cut or transition between up to four sources; outputs the program. The face of the switcher widget.

  • Video
  • Since 0.2.0
  • switcher
  • program
  • transition

Open in TuneToys

Switcher as the Patch draws it, at default values: inlets on the left, outlets on the right.

Switcher cuts or transitions between up to four sources and outputs the program.

What it does#

Program chooses the source on the output and Preview the next one. Changing Program starts the Transition, which lasts Duration milliseconds. Inputs are in1 to in4, one stream each.

When to use it#

Use it as a live vision mixer. The switcher widget is planned as its Frame face; the parameters stay the authority.

Ports#

PortDirectionSignalLanes
in1InputVideo1
in2InputVideo1
in3InputVideo1
in4InputVideo1
videoOutputVideo1

Parameters#

ParameterLabelRangeDefaultUnitScaleNotes
programProgram1 to 41linearThe source on air; changing it starts the transition.
previewPreview1 to 42linearThe source cued next; Take swaps it with the program.
transitionTransition0 to 41linearHow a program change moves between sources. Choices: 0 Cut, 1 Dissolve, 2 Wipe left, 3 Wipe right, 4 Wipe down.
duration_msDuration0 to 5000400mslinearLength of a dissolve or wipe.

Program (program)#

The source shown on the output, 1 to 4.

Preview (preview)#

The source ready for the next take, 1 to 4.

Transition (transition)#

How a change of Program happens; 0 is a cut.

Duration (duration_ms)#

Length of a transition in milliseconds.

Tips#

  • Make Program a public parameter so a Frame or MIDI control can take it.
  • Video needs the browser's WebGPU video engine. The Player and exports do not run video yet and report it unavailable. To see a video output, bind a live Screen in the Frame to it.

See also#

Video crossfade, Multiview, Composite, Video, Control lanes.

Help patches

Each help patch is an ordinary Toy that teaches one idea. The diagram shows the Patch; the preview shows its Frame. Open it in TuneToys to play and edit it.

1. Four-source switcher

intermediate Teaches: program, preview, transition, duration_ms

Four text sources cut or transition to the program.

Patch: Text layer “one” video output connected to Switcher in1 input. Text layer “two” video output connected to Switcher in2 input. Text layer “three” video output connected to Switcher in3 input. Text layer “four” video output connected to Switcher in4 input.
Connections as text
  • Text layer “one” video output connected to Switcher in1 input
  • Text layer “two” video output connected to Switcher in2 input
  • Text layer “three” video output connected to Switcher in3 input
  • Text layer “four” video output connected to Switcher in4 input
  • Program is the source on the output; changing it starts the transition.
  • Transition 0 is a cut; Duration sets the others.
Frame preview: Four-source switcherFrame “Four-source switcher” with 6 elements: knob Duration, text heading, knob Preview, knob Program, screen Picture, knob Transition.400 msDurationFOUR-SOURCE SWITCHER2Preview1Programscreen1Transition
Frame preview (static). Controls show their default values.

Open in TuneToys

  • Video crossfade Blend two streams with one mix control.
  • Multiview Tile a bundle of streams into one picture with labels, for monitoring.
  • Composite Stack up to four layers over a base at the base's size with blend mode, opacity, position and scale per layer.

Edit this page on GitHub

esc

↑ ↓ move↩ open⌘↩ new tabesc close