NyrexVJ
Contents

Getting started

Playing visuals

Music and motion

Your own content

Output and recording

Live control and shows

Reference and help

Manual / Live control and shows

Plugins

Chapter 29 of 38 · 2 min read

#What a plugin is

A plugin is a library with a small C interface that adds modulation sources and image sources from your own code. A modulation source is a number from 0 to 1 about 60 times a second. It appears as Plugin 1 to Plugin 8 next to the audio bands, so you can use it anywhere that accepts a band. An image source delivers a picture of 1280 x 720 about 30 times a second, and it shows up as the clips Plugin Source 1 to Plugin Source 4.

#Enabling plugins

Plugins are off until you tick them. Settings, Plugins lists the plugin folders found in the plugins folder of the data folder. A folder needs a plugin.json file. Tick Enable for a plugin, then pick its source for Plugin 1 to Plugin 8 or for one of the four image slots. Each source has up to four parameters. The start option --no-plugins switches all plugins off for one run. A plugin can also arrive in a community package, which copies it here and leaves it off, see Community packages.

#Safety

Plugin code never runs on the render thread. Every call has a time budget. A plugin that is too slow, hangs or fails is switched off for the session without stopping the picture, and the list shows why. A plugin that was running when the program crashed is put into safe mode and stays off until you enable it again. Plugin bands are not available in the stage output.

#Writing a plugin

The C header, an example plugin and the full reference are in docs/PLUGINS.md of the project. The interface is stable for every 1.x version.

Found a mistake or something missing? Tell us on GitHub. The same manual is built into the program, so you have it without internet. Open it with F1 or from the Help menu, then User manual.