Skip to main content
Version: 1.3

Sources

Sources are the visual pattern generators that make the base visual content in FXCanvas. They produce animated colors and patterns for your lighting design. Effects can then change that content, and FXCanvas maps the result to your fixtures.

The Source Presets panel, with the shader tree and a loaded preset


What are Sources?​

A source is a GPU-accelerated shader that makes animated visual patterns. Each source type produces a different visual style. The styles go from smooth gradients that flow to rhythmic rings that pulse.

Sources have these properties for lighting work:

  • Color palette integration — Sources use the active color palette instead of fixed colors
  • BPM sync ready — Parameters such as Speed can sync to the beat for music-reactive visuals
  • Low resolution optimized — Patterns stay clear at LED fixture resolutions

A source is your visual starting point. You select a source and adjust its parameters. The output then goes into your effects chain. FXCanvas maps the result to fixtures.


Using the Source Presets Panel​

The Source Presets panel is your library of the available sources and your saved presets. The panel has two views:

ViewIconShows
List viewlistA tree of categories, folders, and presets
Browser viewgripPanes of tiles, with a picture of each look

Two toggle buttons in the action bar select the view. FXCanvas keeps your choice between sessions. Both views hold the same content, and both load a source in the same way. The sections below describe list view first. For the tiles, read Browser View.

Browsing Sources​

The panel groups sources by type in a tree view:

  • Primitives: simple building-block sources, such as a solid color or a single line. Read Primitives
  • Continuous: sources with continuous time-based animation
  • BPM: sources that sync to the beat (BPM)
  • ISF: ISF (Interactive Shader Format) shaders that you import or add by hand
  • fragcoord.xyz: built-in shaders from the fragcoord.xyz community. Read The fragcoord.xyz Folder
  • Type headers: click the arrow to open or close a source type
  • Preset list: individual presets appear under each type
  • Icons: a cube icon marks built-in presets. A user icon marks your custom presets. A sliders icon marks the Default row

These folders nest under one Shaders category, beside Live Inputs and File Media. The Shaders category also holds the glslop folder.

Source Presets panel with the type hierarchy and preset icons

The Default Row​

Every source type leads its preset list with a Default row. That row is the source at its own parameters, with no preset applied. Double-click it to load the source that way.

The row also replaces the old "no presets" caption. A source type with no presets still shows a row that you can click.

When a source runs with no preset, its Default row carries the LIVE badge, so the tree always marks what drives the output.

Loading a Source​

You can load a source in three ways:

  • Double-click a preset — This loads the source with the saved parameter values of the preset. Use this method for a specific look.
  • Double-click the Default row — This loads the source with its own default parameter values.
  • Double-click the type header — This does the same as the Default row. It is the fastest way to try a new source type.

Source Switch Fade​

By default, a change of source is instant: the new source replaces the old one on the next frame. The Transition Speed knob in the Source Globals panel makes these changes fade instead. It works like the Transition Speed knob of the Color panel, which fades palette changes.

The fade applies when you pick a different source in one of these ways:

  • a source, a preset or a Default row in the Source Presets panel
  • a media file or a live input
  • a MIDI, OSC or DMX mapping that selects a source or a preset
  • the REST API or an AI agent
ValueWhat happens
Instant (0, the default)The new source replaces the old one at once
Above 0, up to 30 secondsThe old source fades out while the new one fades in, over that time

For a soft change while you busk, 0.5 seconds is a good start. Double-click the knob to set it to 0.5 seconds. To set an exact time, click the value under the knob, type the seconds and press Enter. FXCanvas keeps the value between sessions.

During a switch fade:

  • Both sources keep moving. A video plays on while it fades out. A live input that fades to a shader or a media file keeps running. Only a change from one live input to another, or away from a still image, fades from a still frame.
  • Your effects stay on. The effects chain applies to the mix of both sources, so an effect does not switch off and on again.
  • The new source starts fading once its first frame is ready. A media file starts fading when it plays.
  • A change back cancels the fade. If you pick the old source again while the new one still loads, the old source stays on screen.

Cues do not use this knob. A cue fades the source, effects and colors together over its own fade time. Read Cue Fades.

Hover Previews​

Hover any preset, or a Default row, to see a tooltip. The tooltip holds an animated preview that renders the source offscreen, in your active palette and through your effects chain. Below the preview it gives the name, the type, and the color slot count.

The preview waits for a short dwell before it starts, so a fast pass across the list costs nothing. FXCanvas also skips the render while the GPU is busy.

ISF shaders need one more step. The first time your computer runs an ISF shader, the graphics driver compiles it. A small shader compiles in less than a second. A large shader can take 10 seconds or more.

On an NVIDIA graphics card on Windows, and on a Mac with Apple silicon, ISF shaders that you imported show an animated preview on hover. FXCanvas compiles the shader in the background first, and the output keeps running. The preview starts when the compile is done. On other graphics cards these shaders show no animated preview, because the compile can pause the output there. Shaders in the glslop folder show their picture only, with no animated preview.

When you double-click an ISF shader or one of its presets, or a shader in the glslop folder, FXCanvas compiles it in the background first. In browser view, the tile shows a Compiling spinner while it waits, and the shader goes live when it is ready. On an NVIDIA graphics card on Windows, and on a Mac with Apple silicon, the current output keeps running during the compile. If another source goes live during the wait, FXCanvas cancels the wait.

On other graphics cards, the first run can pause the output. In this case FXCanvas asks first. Click Go live to continue, or Cancel to keep the current output. To stop the question, select Don't show this again. Cues, OSC, the API, and mappings never ask.

To compile all your shaders before a show, use Prepare shaders in Edit → Settings → Performance. Read Prepare shaders.

Every list works the same way. In the three pictures below, the same show is running the whole time: the Flow source on its Oil Slick preset, a trail and curves effects chain, and the Aurora palette. Only the hovered item changes, so each preview shows you that one substitution against everything else you already have.

The Source Presets panel with a preset hovered, showing that source in the current palette and effects chain

The Effect Presets panel with an effect hovered, showing the current canvas with that effect added

The Palettes panel with a palette hovered, showing the current source and effects in those colors

To disable previews, or to keep them for some lists only, open Edit → Settings → Interface. Clear Enable hover previews to stop every preview. To stop the previews for one list, clear its entry in the Show for: list: Sources, Effects, Palettes, File media, Cues in list view, or Cues in thumbnail view. Every one of them is on by default.

note

Most previews animate live. File media, and cues that use a file source, show a static thumbnail instead.

The two settings under What a Picture Shows also control these previews.

The Action Bar​

The action bar at the top of the panel holds the panel controls in one row:

ControlDescription
Add (plus icon)Opens the add menu for media folders
Scope toggles (cube, user)Select which parts of the tree the panel shows
Filter field (magnifying glass icon)Narrows the tree to the names that match your text
Refresh (rotate icon)Loads the sources in your Sources folder, the presets, the live inputs, and the file media again

Scope Toggles​

Two toggle buttons in the action bar select which parts of the tree the panel shows:

IconScopeShows
CubeBuilt-InFactory presets that ship with FXCanvas
UserMy PresetsCustom presets that you made

You can enable both scopes at a time. FXCanvas keeps the last enabled scope on, so the bar cannot empty the tree. The Live Inputs and File Media categories have no scope toggle, and they always appear.

Text Filter​

Type in the filter field in the action bar to narrow the tree. FXCanvas keeps a group when its own name matches, or when a preset under it matches.

While the field holds text, the field carries an accent ring and a clear button. Click the clear button (X icon) inside the field to see the whole tree again.

Adding Media Folders​

The add button (plus icon) in the action bar opens a menu with two rows:

RowAction
Add media folderOpens a folder picker. FXCanvas adds the folder that you select to the media library and scans it
Manage media foldersOpens the Media tab of the Settings window, where you enable, rescan, or remove the folders

Add media folder includes the subfolders, the same default that the Media settings tab uses. The new media then appears in the File Media section. For the full media library workflow, read Video Playback.


Browser View​

Browser view draws the library as a stack of panes and tiles. A preset tile carries a picture of the look, so you can select a source by eye.

To open browser view, click the browser button (grip icon) in the action bar. To return to the tree, click the list button (list icon).

The Source Presets panel in Browser view, with the top level of the library as folder tiles

The top level holds the same groups as the tree: Shaders, Live Inputs, and File Media. A Favorites group appears last after you mark your first favorite.

Panes and Rails​

Double-click a folder tile to open that folder. The level that you leave collapses to a rail at the left edge. Each rail carries the name of its own open child, so the trail reads from left to right.

One level down, the root is a single rail and the Shaders pane shows its folders as tiles.

The Source Presets panel in Browser view, with one collapsed rail and the Shaders folder open

Each further level adds a rail. Here the source type level is open, two levels deeper:

The Source Presets panel in Browser view, with two collapsed rails and an open source type level

  • Click a rail to open that level again. The deeper panes keep their selections
  • Click a segment of the breadcrumb above the grid to go to that level

The breadcrumb gives the full path and the number of items in the open level. On a narrow panel FXCanvas drops the shallowest rails. The breadcrumb still reaches those levels.

An accent bar marks each rail on the path to the live source, so the trail to the current output stays visible at any depth.

Tiles​

Every tile carries its name below a 16:9 box, and the number of items in a folder below the name.

TileBox holds
Top-level folderA glyph for that group
Source typeA picture of the source
Preset, DefaultA picture of that look
Media fileThe thumbnail of the clip or the image
DeviceA glyph, plus a status dot

The Source Presets panel in Browser view, with a grid of preset tiles and the live tile marked

GestureResult
ClickSelects a leaf tile. A folder tile takes no selection
Double-clickLoads a leaf, or opens a folder
Right-clickOpens the menu of that tile

FXCanvas marks the state of each tile:

StateAppearance
HoverA neutral lift, and the picture animates
SelectedA 1px accent ring
LiveA solid accent ring and a LIVE pill
FavoriteAn amber star

A media tile also carries chips for the codec, the resolution, and the duration. A device tile carries a status dot.

Only the tile under the pointer animates. The other tiles hold a still picture. FXCanvas renders those stills inside a time budget of a few milliseconds per frame, and it stops that work while the GPU is busy. A tile with no picture yet draws its glyph instead.

What a Picture Shows​

Two settings in Edit → Settings → Interface control the tile pictures and the hover previews together:

SettingEffect
Use the current colorsThe pictures use the palette of your show. Clear it to compare two presets in fixed reference colors
Use the effectsThe pictures run through your effects chain

Both settings are on by default. A change to either one renders every picture again.

A third setting, Crossfade thumbnail updates, fades each new picture in over the old one. It also applies to the cue thumbnails. It is on by default and does not change the output.

Tile Zoom​

The zoom slider in the action bar sets the tile width for the open level, from 96 to 180 pixels. Hover the slider to see which level it drives.

FXCanvas stores a width for each level, so a folder level and a preset level keep separate sizes. A folder level starts at 112 pixels, and a level with pictures starts at 156 pixels. FXCanvas saves the value when you release the slider.

Tile Menus​

TileActions
Source typeLoads the preset that the row names, or Load with defaults
PresetLoad, Favorite, Rename, Delete. Rename and Delete are for user presets only
DefaultLoad with defaults, and Favorite
Device, media fileFavorite

Favorites​

Mark any leaf as a favorite from its menu. FXCanvas then lists that leaf in the Favorites folder at the top level.

A favorite is a reference to the leaf, and not a copy of it. The tile of the leaf itself carries the live state, and the reference does not take it. FXCanvas removes a reference that no longer resolves, for example after you delete the preset.


Source Parameters Panel​

The Source Parameters panel shows the controls for the active source.

Source Parameters panel

The action bar at the top of the panel holds the context and the save controls:

ControlDescription
BreadcrumbThe source type, a chevron, and the preset name. A source with no preset reads "Not Saved"
Revert to saved (rotate-left icon)Discards your changes and restores the saved preset values
Save (floppy disk icon)Opens the save menu
note

When a preset has unsaved changes, the preset name in the breadcrumb is orange text with an asterisk (*) at the end. The panel tab also shows an orange overline for unsaved content.

Common Parameters​

Each source has its own parameters. Many sources share these two:

ParameterDescription
SpeedThis controls how fast the pattern animates. Higher values give more energetic movement.
SoftnessThis controls edge hardness. Low values give sharp edges. High values give smooth transitions.

The other parameters change with the source type. Select a source to see its own parameters in the panel.

BPM Sync for Parameters​

You can sync any numeric parameter to the beat:

  1. Click the modulation button in the gutter to the left of the parameter
  2. Select BPM in the mode row of the popover
  3. The parameter then moves between the two range handles in time with the beat

Right-click a parameter to reset it to its default value instead. For the full modulation model, see Modulation.

tip

Speed works well when it syncs to the beat. Patterns then surge and relax with the music.

Saving Changes​

The save button (floppy disk icon) in the action bar opens a menu with two rows:

RowDescription
SaveUpdates the current preset with your changes. It is available for user presets with changes only
Save asMakes a new preset with a custom name

Revert to saved is a button of its own beside the save button, and not a row in this menu. When a loaded preset has changes, that button becomes available.

note

FXCanvas cannot overwrite built-in presets. Use Save as to make your own version.


Available Sources​

FXCanvas ships with 30 built-in sources. Many of them are beat-reactive. When BPM sync is active, these sources retrigger on a musical interval that you set. An editable envelope shapes each retrigger. The beat-reactive sources (Bounce, Bricks, Chase, Explosion, Flash, Ripple Pop, Shape Expand, Shockwave, Sweep) share one set of beat controls. The controls are an "Every" retrigger period, an envelope, phase, and a Color Map.

For those shared controls, the full parameters, and preview videos, see the Sources Reference.

Platform availability

Three sources — Curvature, Swarm, and Oncoming — run on Windows only. They render too slowly under the OpenGL implementation of Apple for live use. For this reason they do not appear on macOS. See FXCanvas on macOS.

SourceDescription
BarsHorizontal, vertical, or diagonal bars that scroll across the canvas
BlobsRaymarched 3D metaballs with glass-like refraction
BounceA ball that strikes the floor on the beat, with squash and an impact flash
BricksBrick grid where bricks strike on the beat (cell flash, row/column chase, or wall wash)
ChaseA console-style chase where one segment lights per beat and marches along the strip
CloudsSoft fractal cloud cover that drifts, for slow ambient sky washes
CurvatureA 3D parametric curve drawn as bright line segments. The color follows how tightly the curve bends (Windows only)
Data PatternsRows of lit cells that stream past in ragged runs, with an optional polar wrap into rings that rotate
DriftSlow organic color regions that drift like ink in water
ExplosionBursts that trigger on the beat at random locations
FireFire from a single contained flame to a full-frame turbulent wall. Heat maps onto the palette
FlashA full-frame pop of palette color on the beat — the distilled lighting hit
FlowSmooth organic gradients that flow and use the full palette
GradientOne straight palette ramp that travels across the rig, the simplest wash
LighthouseA lamp that throws one, two, or four wedges of light. The wedges rotate together
OctopusArms that undulate and coil out of a core that breathes
OncomingBright bars, discs, or hexagons that rise out of a horizon and sweep past the viewer in perspective (Windows only)
PlasmaCoherent waves that interfere into a regular standing lattice
PulseRadial color rings that pulse out from a center point that you set
RainStreaks of palette color that fall continuously in any direction
Ripple PopRipple waves that trigger on the beat and collide
Shape ExpandA shape that expands and hits on the beat (outline, or filled with wobble)
ShockwaveA radial luminance wave that hits on the beat and races outward
Sphere CavernA flight through an infinite cavern of repeated spheres with fog
SpiralA full-frame color swirl that coils out from a center point
SwarmSoft particles spread across the frame. Each particle wanders around its home point (Windows only)
SweepA soft bar that sweeps across the frame on the beat, at any angle
VoronoiA cellular tiling of sites that wander, from flat tiles to domed stones to an unlit web
Warp SpeedA hyperspace tunnel with stars that streak past
WaveA sea surface that travels, with sharpened crests and slope shading

Primitives​

The Primitives folder holds simple building blocks. Combine them with effects and modulation to make your own looks. A primitive is in the Primitives folder only, not in a timing folder.

The Primitives folder of the Source Presets panel in browser view

SourceDescription
CellsA grid of cells that switch on and off in a pattern: checkerboard, columns, rows, every Nth cell, or random
FillLights the frame up to an amount, from an edge, the center, both edges, a circle or a square. Modulate the amount for a wipe or a level meter
LineOne bar across the frame. It stays still, loops, or bounces from end to end
RampA palette ramp in one of five shapes: linear, radial, conic, diamond or square
ScanA lit cell that steps through the grid one cell at a time, with a tail that fades. Use it to check the mapping order of a rig
ShapeOne still shape, filled or outlined: circle, square, triangle, diamond, hexagon, star or heart
SolidOne flat palette color over the whole frame
TwinkleRandom cells that flash and fade, each in its own time

For Cells, Scan and Twinkle, set the number of cells across to the number of fixtures in your rig, so that each cell lands on one fixture.

The fragcoord.xyz Folder​

New in 1.3

The fragcoord.xyz folder, with built-in community shaders, is new in FXCanvas 1.3.

The fragcoord.xyz folder holds built-in shaders from the fragcoord.xyz community, adapted for FXCanvas. They ship with FXCanvas, so they need no download and no license. They use your active palette, and their controls show in the Source Parameters panel.

The fragcoord.xyz folder of the Source Presets panel in browser view

The folder holds these shaders: 36 49, Aurora Ribbons, Doyle Spiral 2, Kaleidoscope, Liquid Marble, Neon Ghosts, Neon Petals and loading icon.

Each shader keeps a link to its author. The Source Parameters panel shows this link as Created by. These shaders are ISF shaders, so the first run compiles them. Read Hover Previews.


Working with Source Presets​

Creating Custom Presets​

To save the current source settings:

  1. Adjust the source parameters until you like the look
  2. Click the save button (floppy disk icon) in the Source Parameters action bar
  3. Select Save as
  4. Enter a name for your preset
  5. Click Save

Your preset appears in the Source Presets panel, under My Presets.

Managing Presets​

Right-click any preset to open the context menu:

ActionDescription
LoadApply this preset to the current source
RenameChange the preset name (user presets only)
DeleteDelete the preset (user presets only)
note

FXCanvas cannot rename or delete built-in presets.

Preset Storage Locations​

FXCanvas stores presets in two locations:

  • Built-in presets — These ship with the application and are read-only
  • User presets — FXCanvas stores these in your user profile, and they are available in all shows

Cues store a full snapshot of the source and its parameters. A show therefore does not depend on the presets in your library to play correctly.


Tips and Best Practices​

Choosing Sources for Different Scenarios​

Ambient / Background

  • Use calm sources (Drift, Flow, Gradient, Plasma, Pulse) for a relaxed atmosphere
  • Low speed values give peaceful, meditative moods
  • Enable BPM sync with wide ranges for a subtle musical response

High Energy / Drops

  • Use punchy, rhythmic sources (Bars, Sweep, Chase, Flash, Spiral) for high-energy looks
  • Higher speeds and lower softness values increase the intensity
  • BPM sync with tight ranges gives strong beat-locked movement

Performance Considerations​

Sources run on the GPU and use few resources. If a complex show runs slowly, reduce the number of stacked effects. A simpler source gives less benefit.


ISF Sources​

FXCanvas can load ISF (Interactive Shader Format) shaders as sources. ISF is an open standard for GPU-accelerated visual generators. Large community libraries of free ISF shaders are available online.

The glslop Folder​

New in 1.3

The glslop folder, a browsable community shader library inside the Source Presets panel, is new in FXCanvas 1.3.

The glslop folder is in the Shaders category of the Source Presets panel. It shows the shaders of glslop.com, a community library of free (CC0) shaders. The folder is free in every tier.

The glslop folder of the Source Presets panel in browser view, with shader tiles and Installed chips

When you open the folder, FXCanvas gets the current list of shaders from glslop. This needs an internet connection. If FXCanvas cannot reach glslop, open the folder again later.

The folder sorts the shaders in four folders, as glslop.com does:

FolderOrder
SloppiestThe shaders with the most likes first
Most seenThe shaders with the most views first
NewestThe newest shaders first
RandomA random order

A Hidden folder also shows when you hide a shader. Type in the filter field to search the titles, the authors and the tags.

Each tile shows a picture of the shader. Two chips can show on a tile:

ChipMeaning
InstalledA copy of the shader is in your library. On an NVIDIA graphics card on Windows, and on a Mac with Apple silicon, FXCanvas compiles it in the background after the install, so it goes live without a wait
AudioThe shader reacts to the audio input

To use a shader, double-click its tile. FXCanvas installs it in your library and puts it live. A shader that uses an image input installs as an effect. Right-click a tile for these actions:

ActionResult
InstallInstalls the shader without putting it live
Open on glslopOpens the page of the shader in your browser
Hide this shaderMoves the shader to the Hidden folder. In the Hidden folder, this row is Unhide

Some glslop authors mark a shader as made by AI. To hide those shaders, open Edit → Settings → Interface and turn on Hide AI-generated shaders in the glslop Shaders section. The author gives this label, and glslop does not check it.

Importing from the web Pro​

The fastest way to add ISF shaders is to paste a link from one of the two supported community libraries:

The steps are the same for both sites:

  1. Find a shader that you like on one of the two sites
  2. Copy the URL from your browser
  3. In FXCanvas, open File → Import ISF shader
  4. Paste the URL. Then click Import

The Import ISF shader dialog, in its empty state

The add button (plus icon) in the Effect Presets panel opens the same dialog, under Import ISF shader. There is one importer, and both entry points reach it.

FXCanvas downloads the shader and classifies it as a Source or an Effect. It then saves the shader in the correct folder and loads it, so it appears in the presets panel right away.

Accepted URLs​

URLImports
https://editor.isf.video/shaders/{id}One shader
https://editor.isf.video/u/{username}Every shader on that profile
https://glslop.com/shader/{id}One shader
https://glslop.com/?tag={tag}Every shader with that tag
https://glslop.com/?q={search}Every shader that matches that search
https://glslop.com/?sort=slopThe current top of that listing

Bulk imports​

An isf.video profile URL imports every shader on it. A glslop tag page, search page, or sort page does the same. A summary reports how many shaders FXCanvas found, imported, and skipped, and how many failed. One failure does not stop the other shaders.

A glslop bulk import downloads up to 50 shaders per run. To raise the limit, use ?limit=, which caps at 100. The import fetches each shader separately, so it can take a minute. FXCanvas skips shaders that are already in your library by id. You can therefore run the same tag again later to add new shaders without duplicates.

Attribution​

Every imported shader keeps a link to its author. The Source Parameters panel shows this link as Created by. An isf.video username links to editor.isf.video/u/{username}. A glslop handle links to glslop.com/u/{handle}.

The glslop read API gives only an internal account id, so FXCanvas reads the handle from the page of the shader. If that lookup fails, the import still succeeds. FXCanvas then shows glslop and links to the shader instead of the author.

Some glslop authors declare the AI model that generated a shader. FXCanvas records that model with the import, but does not show it as the author. The model generated the shader, but a person posted it.

Web import requires a license

File → Import ISF shader is gray in the free tier. Import ISF shader in the Effect Presets add menu is gray as well, and the row carries a padlock. You can add ISF files by hand in both tiers, as described below. Shaders that you import with a license still work afterwards. For the full list, see What requires a license.

Adding ISF Sources Manually​

To add an ISF source by hand:

  1. Put the .fs or .isf file in your Sources folder
  2. Click Refresh in the Source Presets panel
  3. The ISF source appears in the list, ready for use

Refresh also loads a changed shader again. The running source keeps its parameter values. If the changed shader has an error, the previous version keeps running, and the error is in the log.

ISF sources work in the same way as built-in sources. They support BPM sync, audio reactivity, and presets.

Palette Integration​

FXCanvas connects ISF sources to the palette system automatically, and it reaches every shader.

At load time FXCanvas looks for a color generation function such as getFragColor, getColor, or palette, and replaces it with a palette-aware version. A shader that computes its colors inline gives that search nothing to find, so FXCanvas remaps the final color at the end of main() instead. The result is the same either way:

  • An ISF source with hardcoded colors uses your active palette instead
  • A palette change immediately changes the colors of ISF sources
  • Palette transitions work smoothly with ISF sources

This replacement is internal, and FXCanvas never changes the original ISF file.

Each ISF source also carries a Use Palette toggle in the Source Parameters panel. Clear it to see the shader in the colors of its author.

note

A multi-pass ISF shader gets no final-color remap. Its intermediate passes carry data, for example a feedback buffer or a blur tap, and a remap there corrupts the chain. Such a shader follows the palette only when it holds a color function that FXCanvas recognizes.

ISF Parameters​

ISF shaders declare their own parameters, such as sliders, toggles, and color pickers. These parameters appear in the Source Parameters panel with the built-in source parameters. FXCanvas supports all ISF parameter types:

ISF TypeFXCanvas Control
FloatSlider with a min/max range
BoolToggle checkbox
Long (with labels)Dropdown menu
Long (without labels)Integer slider
ColorColor picker
Point2DTwo sliders (X and Y)
AudioNone. The shader reads the audio input directly (see below)
AudioFFTNone. The shader reads the audio input directly (see below)

Audio in ISF Shaders​

An ISF shader can read the audio input directly. Declare an input of type audioFFT for the spectrum, or audio for the waveform. FXCanvas connects both to the audio input that you select in Audio Input. These inputs do not show a control in the Source Parameters panel.

ISF TypeWhat the shader gets
audioFFTThe spectrum: 64 values from low to high frequency (20 Hz to 20 kHz). Each value is 0 to 1.
audioThe waveform: the newest 512 samples. A value of 0.5 is silence. 0 and 1 are the full negative and positive swing.

Both are one row high. Read them with IMG_NORM_PIXEL at a vertical position of 0.5:

/*{
"ISFVSN": "2",
"INPUTS": [
{ "NAME": "fftImage", "TYPE": "audioFFT" },
{ "NAME": "waveImage", "TYPE": "audio" }
]
}*/

void main() {
vec2 uv = isf_FragNormCoord;
float bar = IMG_NORM_PIXEL(fftImage, vec2(uv.x, 0.5)).r;
float wave = IMG_NORM_PIXEL(waveImage, vec2(uv.x, 0.5)).r;
float line = 1.0 - smoothstep(0.0, 0.01, abs(uv.y - wave));
gl_FragColor = vec4(vec3(step(uv.y, bar) * 0.5 + line), 1.0);
}

Things to know:

  • The sizes are fixed. FXCanvas ignores the MAX value of an input. Use IMG_SIZE if the shader needs the number of values.
  • With no audio input open, the spectrum is all 0 and the waveform is a flat line at 0.5.
  • ISF effects work the same way. An effect that declares these inputs reads the same audio.
  • Most parameters do not need this. To make an ordinary slider follow the music, use Audio modulation on it instead. It works on every shader, and you do not have to edit the file.

  • Video Inputs — Use external video feeds (webcams, NDI, Spout/Syphon, DeckLink) as sources
  • Video Playback — Play video and image files from your drive
  • Sources Reference — The full parameter reference for every source type
  • BPM Sync — Sync source parameters to the beat
  • Getting Started — An overview of the FXCanvas basics