open-audiovisual
搜尋 GitHub

Prolights

Prolights SMARTBAT

Prolights SMARTBAT 是 Prolights 的PAR 燈/染色燈,有 3 種模式 (4ch: 4、6ch: 6、10ch: 10)。通道資料來自 Open Fixture Library(MIT),轉成 OAV 的燈具格式,本專案還沒有在實際的燈上確認過。

  • 來自 Open Fixture Library(MIT)
  • 還沒有在實機上確認
種類
PAR 燈/染色燈
廠牌
Prolights
模式
3 種模式 (4ch: 4、6ch: 6、10ch: 10)
協定
DMX512
頻閃
檔案沒寫速率:在每秒 3 次的上限下保持常亮
授權
MIT
驗證
還沒有在實機上確認

試試看

不接燈也能推 Prolights SMARTBAT

滑桿走的是演出用的同一個 Patch 和同一套顏色拆解,表格就是這台燈會收到的位元組,一個位址一格。什麼都不會送出去。

燈看起來的樣子

它收到的位元組

通道名稱位元組這個值的作用

頻閃跟引擎一樣限制在每秒最多 3 次。這個色塊不會閃,只寫出速率。

DMX 通道

Prolights SMARTBAT 每個模式的每個通道

直接從燈具檔產生,就是 patch 讀的那張表。通道編號從燈具的起始位址算起,值是 0–255 的位元組。

模式 4ch · 4-Channel 4 個通道

通道名稱類型預設每段數值的作用
1red顏色: 紅00–255
2green顏色: 綠00–255
3blue顏色: 藍00–255
4white顏色: 白00–255

模式 6ch · 6-Channel 6 個通道

通道名稱類型預設每段數值的作用
1dimmer亮度00–255
2red顏色: 紅00–255
3green顏色: 綠00–255
4blue顏色: 藍00–255
5white顏色: 白00–255
6strobe頻閃/遮光00–10 開 · 11–255 頻閃 (Strobe)

模式 10ch · 10-Channel 10 個通道

通道名稱類型預設每段數值的作用
1dimmer亮度00–255
2red顏色: 紅00–255
3green顏色: 綠00–255
4blue顏色: 藍00–255
5white顏色: 白00–255
6colorPresetsTemperature其他00–10 無作用 · 11–30 color preset (Red … Yellow) · 31–50 color preset (Yellow … Green) · 51–70 color preset (Green … Cyan) · 71–90 color preset (Cyan … Blue) · 91–110 color preset (Blue … Magenta) · 111–130 color preset (Magenta … Red) · 131–150 color preset (Red … White) · 151–170 color preset (White … Blue) · 171–200 color preset (White) · 201–255 color temperature
7strobe頻閃/遮光00–10 開 · 11–255 頻閃 (Strobe)
8autoSoundPrograms控制(只在刻意指定時寫入)00–10 無作用 · 11–60 effect (Auto Program 1) · 61–120 effect (Auto Program 2) · 121–180 effect (Auto Program 3) · 181–240 effect (Auto Program 4) · 241–255 effect (Sound Show)
9autoSpeed速度00–255
10dimmerSpeed控制(只在刻意指定時寫入)00–51 無作用 (Use device setting) · 52–101 maintenance (Dimmer speed) · 102–152 maintenance (Dimmer speed) · 153–203 maintenance (Dimmer speed) · 204–255 maintenance (Dimmer speed)

用在程式裡

把 Prolights SMARTBAT 寫進你的程式

貼進任何網頁的 <script type="module">:它從這個網站載入 @openav/devices 和 @openav/dmx,用模式 10ch 把燈 patch 在位址 1,印出它會送出的位元組。要真的送出去,用 dmxTransport()(經輸出橋接程式送 Art-Net 或 sACN,或用 Web Serial 接 Enttec DMX USB Pro)。

javascript
import { device } from 'https://openaudiovisual.com/packages/devices/index.js';
import { Patch, DmxEngine } from 'https://openaudiovisual.com/packages/dmx/index.js';

const light = await device('prolights-smartbat');   // Prolights SMARTBAT
const patch = new Patch();
light.patch(patch, { id: 'light1', address: 1, mode: '10ch' });   // 10 channels from address 1
const engine = new DmxEngine(patch);
engine.set('light1', { dimmer: 1, color: [1, 0.5, 0] });
console.log(engine.render(0).bytes(1).slice(0, 10).join(' '));
// → 255 255 128 0 0 0 0 0 0 0

它照順序印出模式 10ch 的各個通道:

  1. dimmer 255
  2. red 255
  3. green 128
  4. blue 0
  5. white 0
  6. colorPresetsTemperature 0
  7. strobe 0
  8. autoSoundPrograms 0
  9. autoSpeed 0
  10. dimmerSpeed 0

檔案

把燈具帶走

燈具檔(JSON,open-audiovisual/fixture@1):每個模式和通道、每段數值、出處與授權。演出用 device() 載入,或直接交給 Patch。

資料從哪裡來

出處、授權、驗證

通道資料來自 Open Fixture Library(MIT),檔案 fixtures/prolights/smartbat.json,commit 849343f6,作者 Matteo Piccina。由 tools/import-ofl.mjs 轉換,保留每個通道的作用、預設值和各段數值。

授權:MIT。 本專案還沒有人拿實際的燈確認過這個檔案:每個值都照出處寫。

出處

檔案裡的說明

Imported from the Open Fixture Library. Nobody has checked it on a light for this project.

GitHub

資料有錯?

這一頁的每個值都來自 repository 裡的一個檔案。開一張 issue,寫哪一個值、你在哪裡讀到正確的值,或直接用 pull request 改那個檔案。

下一步

從作品打這台燈

DMX 那一章:patch、scene、cue、effect、每秒 3 次的頻閃上限,以及離開電腦的三種方式。範例 28 在畫面上點亮整組燈,不需要硬體。