Video To LED Strips

Samples the video onto an LED matrix or along a path and outputs the LED colours as a colour array, in the order of the strips: serpentine wiring, start corner, rows or columns, tiled panels. The array then goes to Light Color Array to ArtNet or another LED output.

Example: a street at night (left) and the preview of a 32 x 16 matrix (right).

In matrix mode, the sampled area of the picture is cut into one cell per LED and each LED gets the mean colour of its cell. In path mode, the LEDs are spread evenly along a line through the points of path x and path y, and each LED gets the mean colour of a small square around it. A transparent pixel counts as black, an LED off.

Settings

video in

Video input flow(s).

video out

Preview of the LEDs: a small picture with one pixel per LED, the matrix as it looks (panel width times panels x by panel height times panels y pixels), or a single row of LEDs in path mode. Show it through a video output that scales it, or enlarge it.

process time

Total time used for the calculation of the module.

mode

How the LEDs are placed on the picture (default matrix).

  • matrix: a grid of panels over the area set by left, top, right and bottom.
  • path: a number of LEDs set by leds, spread along the path of path x and path y.

panel width

Number of LEDs in a row of one panel, from 1 to 256 (default 16). Matrix mode.

panel height

Number of LED rows of one panel, from 1 to 256 (default 16). Matrix mode.

panels x

Number of panels side by side, from 1 to 64 (default 1). Matrix mode.

panels y

Number of rows of panels, from 1 to 64 (default 1). Matrix mode. The whole matrix has at most 32768 LEDs: beyond, nothing is output and count is 0.

start corner

Corner where the chain starts, both for the order of the panels and inside each panel (default top left). Every panel is mounted the same way round.

  • top left: the chain starts at the top left LED of the top left panel.
  • top right: the chain starts at the top right LED of the top right panel.
  • bottom left: the chain starts at the bottom left LED of the bottom left panel.
  • bottom right: the chain starts at the bottom right LED of the bottom right panel.

wiring

Direction of the strip inside a panel (default rows).

  • rows: the strip runs along the rows.
  • columns: the strip runs along the columns.

serpentine

When ON (default), the strip zigzags: every other row, or column, runs back. When OFF, every row starts on the same side.

panel width = 4, panel height = 2, start corner = top left
serpentine = ON:  0 1 2 3
                  7 6 5 4
serpentine = OFF: 0 1 2 3
                  4 5 6 7

panel order

Order in which the chain visits the panels, from the panel of the start corner (default rows).

  • rows: row of panels after row of panels, all in the same direction.
  • rows serpentine: row after row, every other row running back.
  • columns: column of panels after column of panels, all in the same direction.
  • columns serpentine: column after column, every other column running back.

left

Left edge of the sampled area, as a fraction of the width of the picture, from 0 to 1 (default 0). Matrix mode.

top

Top edge of the sampled area, as a fraction of the height of the picture, from 0 to 1 (default 0). Matrix mode.

right

Right edge of the sampled area, as a fraction of the width of the picture, from 0 to 1 (default 1). Matrix mode.

bottom

Bottom edge of the sampled area, as a fraction of the height of the picture, from 0 to 1 (default 1). Matrix mode. Edges given in reverse order are put back in order.

path x

x of the points of the path, from 0 (left) to 1 (right), an array of up to 1024 values (default 0, 1). Path mode.

path y

y of the points of the path, from 0 (top) to 1 (bottom), an array of up to 1024 values (default 0.5, 0.5: a horizontal line across the middle). Path mode. The points are read up to the length of the shorter of path x and path y; empty arrays give black LEDs. A change of the path shows at once, also on a still picture.

closed

When ON, the path goes back from its last point to its first one and the LEDs are spread evenly around the loop. When OFF (default), the first and last LEDs sit on the end points of the path.

leds

Number of LEDs along the path, from 1 to 32768 on a logarithmic fader (default 60). Path mode.

sample size

Side of the square of pixels averaged for each LED of the path, from 1 to 64 pixels (default 3). Path mode.

brightness

Scale of the LED colours, from 0 to 1 (default 1): 0.5 halves every value.

gamma

LED gamma correction, from 1 to 3 (default 1: no correction). Each value v, from 0 to 255, becomes 255 times brightness times (v / 255) to the power gamma. 2.2 to 2.8 makes video look right on strips of the WS2812 type.

color array

The LED colours in the order of the chain, an array of up to 32768 opaque colours. In path mode, from the first point of the path to the last.

count

Number of LEDs output, from 0 to 32768: 0 when the matrix has more than 32768 LEDs.

Common Settings

info

show manual

Button. Opens the manual page of the selected object (or of its parent module for a control) in the web browser. If no page exists for this object, an error is traced in the trace panel.

For more details about information/help creation, see create-help-file.

description

Free multi-line text attached to the module, saved with the patch. When it is not empty, it is shown as the hint of the module (mouse over the module header in the patch) in place of the default module hint, even when the module hints are disabled.

ID's

visible only in god mode, see setup-panel-tab-expert.

unique ID

Read-only, not saved. Current private numeric ID of the object, used internally to identify it (for example as the target of a bind ID).

preset ID

Read-only, not saved. Private ID used to store and recall the values of this control in presets.

recreate ID

Button. Generates a new unique ID, original ID and preset ID for the object. Use it if you experience difficulties in Polyphonic mode or if two objects share the same ID. Preset values and binds referring to the old IDs are lost.

Object Remote Address

absolute

Read-only, not saved. Absolute address of the object in the Usine objects tree, built from the workspace root. This is the address to use to reach the object from scripts, the objects panel or remote messages. Only shown for objects that are registered in the objects list. See objects-address.

local

Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.

user addr

Free user-defined address for the object (empty by default). When set, the object is also registered in the objects tree under this name, so it can be reached independently of its position in the workspace (the value is also reported in the mouse-over and mouse-down chunks). Changing it rebuilds the objects list. Only available on objects that support a user address. See objects-address.

See also

version 7.0.250921

Edit All Pages