通用版面
Generic RGBA par
Generic RGBA par:手寫的常見通道順序,背後不是哪一台真的燈,有 1 種模式 (4ch: 4)。要 patch 真的燈之前,先複製它,照你那台燈的說明書改。
- 通用版面
- 還沒有在實機上確認
- 種類
- PAR 燈/染色燈
- 模式
- 1 種模式 (4ch: 4)
- 協定
- DMX512
- 授權
- MIT
- 驗證
- 還沒有在實機上確認
- 資料
- 為 OAV 手寫
試試看
不接燈也能推 Generic RGBA par
滑桿走的是演出用的同一個 Patch 和同一套顏色拆解,表格就是這台燈會收到的位元組,一個位址一格。什麼都不會送出去。
燈看起來的樣子
它收到的位元組
| 通道 | 名稱 | 位元組 | 這個值的作用 |
|---|
頻閃跟引擎一樣限制在每秒最多 3 次。這個色塊不會閃,只寫出速率。
DMX 通道
Generic RGBA par 每個模式的每個通道
直接從燈具檔產生,就是 patch 讀的那張表。通道編號從燈具的起始位址算起,值是 0–255 的位元組。
模式 4ch · 4 channel 4 個通道
| 通道 | 名稱 | 類型 | 預設 | 每段數值的作用 |
|---|---|---|---|---|
| 1 | red | 顏色: 紅 | 0 | 0–255 |
| 2 | green | 顏色: 綠 | 0 | 0–255 |
| 3 | blue | 顏色: 藍 | 0 | 0–255 |
| 4 | amber | 顏色: 琥珀 | 0 | 0–255 |
用在程式裡
把 Generic RGBA par 寫進你的程式
貼進任何網頁的 <script type="module">:它從這個網站載入 @openav/devices 和 @openav/dmx,用模式 4ch 把燈 patch 在位址 1,印出它會送出的位元組。要真的送出去,用 dmxTransport()(經輸出橋接程式送 Art-Net 或 sACN,或用 Web Serial 接 Enttec DMX USB Pro)。
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('generic-rgba'); // Generic RGBA par
const patch = new Patch();
light.patch(patch, { id: 'light1', address: 1, mode: '4ch' }); // 4 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, 4).join(' '));
// → 0 0 0 255它照順序印出模式 4ch 的各個通道:
red0green0blue0amber255
檔案
把燈具帶走
燈具檔(JSON,open-audiovisual/fixture@1):每個模式和通道、每段數值、出處與授權。演出用 device() 載入,或直接交給 Patch。
資料從哪裡來
出處、授權、驗證
為 OAV 手寫的常見通道順序,背後沒有哪一台特定的燈。
授權:MIT。 本專案還沒有人拿實際的燈確認過這個檔案:每個值都照出處寫。
出處
- open-audiovisual generic layout No single fixture behind it: a common channel order, written by hand. Read the manual of your light and, where its order or ranges differ, copy this file and change it before patching a real fixture.
GitHub
資料有錯?
這一頁的每個值都來自 repository 裡的一個檔案。開一張 issue,寫哪一個值、你在哪裡讀到正確的值,或直接用 pull request 改那個檔案。