通用版面
Generic Moving head (RGBW)
Generic Moving head (RGBW):手寫的常見通道順序,背後不是哪一台真的燈,有 2 種模式 (8ch: 8、16ch: 16)。要 patch 真的燈之前,先複製它,照你那台燈的說明書改。
- 通用版面
- 還沒有在實機上確認
- 種類
- 搖頭燈
- 模式
- 2 種模式 (8ch: 8、16ch: 16)
- 協定
- DMX512
- 水平/垂直
- —
- 頻閃
- 檔案沒寫速率:在每秒 3 次的上限下保持常亮
- 授權
- MIT
- 驗證
- 還沒有在實機上確認
- 資料
- 為 OAV 手寫
試試看
不接燈也能推 Generic Moving head (RGBW)
滑桿走的是演出用的同一個 Patch 和同一套顏色拆解,表格就是這台燈會收到的位元組,一個位址一格。什麼都不會送出去。
燈看起來的樣子
它收到的位元組
| 通道 | 名稱 | 位元組 | 這個值的作用 |
|---|
頻閃跟引擎一樣限制在每秒最多 3 次。這個色塊不會閃,只寫出速率。
DMX 通道
Generic Moving head (RGBW) 每個模式的每個通道
直接從燈具檔產生,就是 patch 讀的那張表。通道編號從燈具的起始位址算起,值是 0–255 的位元組。
模式 8ch · 8 channel 8 個通道
| 通道 | 名稱 | 類型 | 預設 | 每段數值的作用 |
|---|---|---|---|---|
| 1 | pan | 水平 | 128 | 0–255 |
| 2 | tilt | 垂直 | 128 | 0–255 |
| 3 | dimmer | 亮度 | 0 | 0–255 |
| 4 | strobe | 頻閃/遮光 | 0 | 0–9 開 · 10–255 頻閃 |
| 5 | red | 顏色: 紅 | 0 | 0–255 |
| 6 | green | 顏色: 綠 | 0 | 0–255 |
| 7 | blue | 顏色: 藍 | 0 | 0–255 |
| 8 | white | 顏色: 白 | 0 | 0–255 |
模式 16ch · 16 channel (16-bit pan and tilt) 16 個通道
| 通道 | 名稱 | 類型 | 預設 | 每段數值的作用 |
|---|---|---|---|---|
| 1 | pan | 水平 | 128 | 0–255 |
| 2 | panFine | pan 的低位元組 | 0 | 0–255 |
| 3 | tilt | 垂直 | 128 | 0–255 |
| 4 | tiltFine | tilt 的低位元組 | 0 | 0–255 |
| 5 | speed | 速度 | 0 | 0–255 |
| 6 | dimmer | 亮度 | 0 | 0–255 |
| 7 | strobe | 頻閃/遮光 | 0 | 0–9 開 · 10–255 頻閃 |
| 8 | red | 顏色: 紅 | 0 | 0–255 |
| 9 | green | 顏色: 綠 | 0 | 0–255 |
| 10 | blue | 顏色: 藍 | 0 | 0–255 |
| 11 | white | 顏色: 白 | 0 | 0–255 |
| 12 | gobo | 圖案片 | 0 | 0–255 |
| 13 | zoom | 變焦 | 0 | 0–255 |
| 14 | focus | 對焦 | 0 | 0–255 |
| 15 | program | 控制(只在刻意指定時寫入) | 0 | 0–255 |
| 16 | reset | 控制(只在刻意指定時寫入) | 0 | 0–255 |
用在程式裡
把 Generic Moving head (RGBW) 寫進你的程式
貼進任何網頁的 <script type="module">:它從這個網站載入 @openav/devices 和 @openav/dmx,用模式 16ch 把燈 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-moving-head'); // Generic Moving head (RGBW)
const patch = new Patch();
light.patch(patch, { id: 'light1', address: 1, mode: '16ch' }); // 16 channels from address 1
const engine = new DmxEngine(patch);
engine.set('light1', { dimmer: 1, color: [1, 0.5, 0], pan: 0.5, tilt: 0.25 });
console.log(engine.render(0).bytes(1).slice(0, 16).join(' '));
// → 128 0 64 0 0 255 0 255 128 0 0 0 0 0 0 0它照順序印出模式 16ch 的各個通道:
pan128panFine0tilt64tiltFine0speed0dimmer255strobe0red255green128blue0white0gobo0zoom0focus0program0reset0
檔案
把燈具帶走
燈具檔(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. The strobe ranges say open and strobe but no Hz: a generic file cannot know how fast a given value flashes, so under the 3 Hz cap the engine keeps this channel open. Pan and tilt start at the middle (128). Which value of reset moves the head back home, and what the built-in programs do, differs from fixture to fixture: program and reset are control channels, written only by an explicit call (a built-in program flashes as it likes, outside the cap).
GitHub
資料有錯?
這一頁的每個值都來自 repository 裡的一個檔案。開一張 issue,寫哪一個值、你在哪裡讀到正確的值,或直接用 pull request 改那個檔案。