afterglow.fixtures.qxf

Functions to work with Fixture Definition Files from the QLC+ open-source lighting controller project. While these do not contain all of the information Afterglow needs to fully control a fixture with its geometric reasoning, they can form a good starting point and save you a lot of tedious capability translation. You can find the available .qxf files on Github.

convert-qxf

(convert-qxf path)

Read a fixture definition file in the format (.qxf) used by QLC+, and write a Clojure file based on it that can be used as the starting point of an Afterglow fixture definition. Returns an exit status and message for the user.

parse-qxf

(parse-qxf source)

Read a fixture definition file in the format (.qxf) used by QLC+, and create a map from which it can conveniently be translated into an Afterglow fixture definition.

sanitize-name

(sanitize-name s)

Removes non-alphanumeric characters in a string, then turns it into a suitable Clojure identifier.

translate-definition

(translate-definition qxf)

Converts a map read by convert-qxf into an Afterglow fixture definition.