SimpleDMXUniverse:
Filter:
SimpleDMXControl/Classes (extension) | External Control > DMX

SimpleDMXUniverse
ExtensionExtension

a DMX universe data structure

Description

A barebones data structure for holding a DMX universe. See SimpleEnttecDMXPro for usage example.

Class Methods

.new

Arguments:

size

Size of universe. default (and max) is 512. Resizing flushes the universe.

header

prepend universe by this. will be converted into 8-bit int.

footer

append universe by this. will be converted into 8-bit int.

Instance Methods

.asInt8Array

returns 8-bit raw array ready to send over via DMX device.

.header

.footer

header resp. footer to be integrated into raw data structure. Needs to be an array of integers.

.flush

.clear

.blackout

empty internal state.

.add

adds current state of a SimpleDMXFixture to the universe.

Arguments:

fixture

instance to be added.

.addChannelVals

add values to the universe.

Arguments:

channel

start channel

vals

values to be written. Will be cropped to size.

.getChannelVals

get current values from the universe.

Arguments:

channel
range

.state

set complete state.

Arguments:

vals

an array of values. Will be cropped to size.

Examples

Basic usage

Working with SimpleDMXFixtures