node-dmx
    Preparing search index...

    Class Universe

    Mutable 512-channel DMX frame with dirty tracking.

    Index

    Constructors

    Properties

    data: Uint8Array

    Raw 512-byte DMX frame. Channel 1 maps to index 0.

    id: number

    Universe number (1-63999 for sACN compatibility).

    Methods

    • Read and reset the dirty flag.

      Returns boolean

      true if data changed since last consume.

    • Fill all 512 channels with one value.

      Parameters

      • value: number

        DMX value (clamped to 0-255).

      Returns void

    • Mark this universe as changed so it will be sent on next flush.

      Returns void

    • Set a single DMX channel value.

      Parameters

      • address: number

        DMX channel address (1-512).

      • value: number

        DMX value (clamped to 0-255).

      Returns void

    • Replace the whole frame with new channel data. Missing channels are filled with 0.

      Parameters

      • frame: Buffer<ArrayBufferLike> | Uint8Array<ArrayBufferLike>

        Frame bytes to copy (up to 512).

      Returns void