Video Glitch Pixel Sort

Sorts the pixels of each row or column by brightness, or by one color, inside the spans whose value lies between two thresholds, which stretches these areas into streaks: the pixel sorting of glitch art.

Example: vertical with the thresholds 0.35 and 0.9, then the defaults.

A span is a run of consecutive pixels whose value lies between low threshold and high threshold: each span is sorted, the other pixels stay. Pixels move whole, with their alpha, and pixels of equal value keep their order. A frame costs about 6 ms at 1920 x 1080 (9 ms vertically) and 20 ms at 3840 x 2160 (38 ms vertically), more than the 16.7 ms of a video of 60 frames per second: feed it 1920 x 1080 for live use.

Settings

bypass

Bypasses the module processing when activated (ON).

  • OFF (0): Module processes normally
  • ON (1): Input passes directly to output without processing

video in

Video input flow(s).

video out

Video output flow(s).

process time

Total time used for the calculation of the module.

direction

Lines that are sorted (horizontal by default).

  • horizontal: the rows, from left to right.
  • vertical: the columns, from top to bottom (slower).

sort by

Value the pixels are sorted by, and that the thresholds compare (luma by default).

  • luma: the brightness, (77 R + 151 G + 28 B) / 256.
  • red: the red channel.
  • green: the green channel.
  • blue: the blue channel.

low threshold

Lowest value of a sorted span, from 0 to 1 (default 0.25). The thresholds are rounded to levels from 0 to 255: 0.25 gives 64.

high threshold

Highest value of a sorted span, from 0 to 1 (default 0.8). When it is below low threshold, nothing is sorted.

reverse

When OFF (the default), each span is sorted from the lowest value to the highest: the bright pixels gather at its right end, or at its bottom for columns. When ON, from the highest to the lowest.

max length

Longest sorted piece, in % of the line length, from 0 to 100 (default 100: no limit). A longer span is cut into pieces sorted one by one, which gives shorter streaks. Near 0 the pieces are one pixel long and the output is the input.

mix

Share of the lines that are sorted, from 0 to 1 (default 1: all of them). The lines are picked at random once and stay the same at every frame: raising mix adds lines, the others stay. 0 gives the input unchanged.

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