American DJ
American DJ XS 400
American DJ XS 400 是 American DJ 的搖頭燈,有 2 種模式 (16ch: 16、18ch: 18)。通道資料來自 Open Fixture Library(MIT),轉成 OAV 的燈具格式,本專案還沒有在實際的燈上確認過。
- 來自 Open Fixture Library(MIT)
- 還沒有在實機上確認
- 種類
- 搖頭燈
- 廠牌
- American DJ
- 模式
- 2 種模式 (16ch: 16、18ch: 18)
- 協定
- DMX512
- 水平/垂直
- 水平 540° · 垂直 360°
- 頻閃
- 檔案沒寫速率:在每秒 3 次的上限下保持常亮
- 授權
- MIT
- 驗證
- 還沒有在實機上確認
試試看
不接燈也能推 American DJ XS 400
滑桿走的是演出用的同一個 Patch 和同一套顏色拆解,表格就是這台燈會收到的位元組,一個位址一格。什麼都不會送出去。
燈看起來的樣子
它收到的位元組
| 通道 | 名稱 | 位元組 | 這個值的作用 |
|---|
頻閃跟引擎一樣限制在每秒最多 3 次。這個色塊不會閃,只寫出速率。
DMX 通道
American DJ XS 400 每個模式的每個通道
直接從燈具檔產生,就是 patch 讀的那張表。通道編號從燈具的起始位址算起,值是 0–255 的位元組。
模式 16ch · 16-channel 16 個通道
| 通道 | 名稱 | 類型 | 預設 | 每段數值的作用 |
|---|---|---|---|---|
| 1 | pan | 水平 | 128 | 0–255 |
| 2 | tilt | 垂直 | 128 | 0–255 |
| 3 | tiltContinuousRotation | 其他 | 0 | 0–55 無作用 · 56–127 tilt continuous · 128–199 tilt continuous · 200–255 無作用 |
| 4 | tiltContinuousRotationSpeed | 速度 | 0 | 0–255 |
| 5 | red | 顏色: 紅 | 0 | 0–255 |
| 6 | green | 顏色: 綠 | 0 | 0–255 |
| 7 | blue | 顏色: 藍 | 0 | 0–255 |
| 8 | white | 顏色: 白 | 0 | 0–255 |
| 9 | colorMacrosEffects | 控制(只在刻意指定時寫入) | 0 | 0–10 無作用 · 11–20 color preset (Red) · 21–30 color preset (Green) · 31–40 color preset (Red + Green) · 41–50 color preset (Blue) · 51–60 color preset (Red + Blue) · 61–70 color preset (Green + Blue) · 71–80 color preset (Red + Green + Blue) · 81–123 effect · 124–166 effect (Color mix) · 167–209 effect · 210–249 effect (Color change) · 250–255 effect (Sound control) |
| 10 | strobing | 頻閃/遮光 | 0 | 0–7 開 · 8–139 頻閃 (Strobe) · 140–189 頻閃 (RampUp) · 190–239 頻閃 (RampDown) · 240–255 頻閃 (Strobe) |
| 11 | masterDimmer | 亮度 | 0 | 0–255 |
| 12 | programs | 控制(只在刻意指定時寫入) | 0 | 0–15 無作用 · 16–40 effect (Program 1) · 41–65 effect (Program 2) · 66–90 effect (Program 3) · 91–115 effect (Program 4) · 116–140 effect (Program 5) · 141–165 effect (Program 6) · 166–190 effect (Program 7) · 191–215 effect (Program 8) · 216–240 effect (Random program playing 5 times each) · 241–255 effect (Random program 2min each) |
| 13 | programSpeed | 速度 | 0 | 0–255 |
| 14 | panTiltSpeed | 速度 | 0 | 0–255 |
| 15 | specialFunctions | 控制(只在刻意指定時寫入) | 0 | 0–69 無作用 · 70–79 maintenance (Blackout with Pan / Tilt movement) · 80–89 無作用 · 90–99 maintenance (Blackout with RGBW value change) · 100–199 無作用 · 200–209 maintenance (Reset all) · 210–255 無作用 |
| 16 | dimmerCurve | 控制(只在刻意指定時寫入) | 255 | 0–20 maintenance (Standard) · 21–40 maintenance (Stage) · 41–60 maintenance (TV) · 61–80 maintenance (Architectural) · 81–100 maintenance (Theatre) · 101–255 maintenance (Default setting) |
模式 18ch · 18-channel 18 個通道
| 通道 | 名稱 | 類型 | 預設 | 每段數值的作用 |
|---|---|---|---|---|
| 1 | pan | 水平 | 128 | 0–255 |
| 2 | panFine | pan 的低位元組 | 0 | 0–255 |
| 3 | tilt | 垂直 | 128 | 0–255 |
| 4 | tiltFine | tilt 的低位元組 | 0 | 0–255 |
| 5 | tiltContinuousRotation | 其他 | 0 | 0–55 無作用 · 56–127 tilt continuous · 128–199 tilt continuous · 200–255 無作用 |
| 6 | tiltContinuousRotationSpeed | 速度 | 0 | 0–255 |
| 7 | red | 顏色: 紅 | 0 | 0–255 |
| 8 | green | 顏色: 綠 | 0 | 0–255 |
| 9 | blue | 顏色: 藍 | 0 | 0–255 |
| 10 | white | 顏色: 白 | 0 | 0–255 |
| 11 | colorMacrosEffects | 控制(只在刻意指定時寫入) | 0 | 0–10 無作用 · 11–20 color preset (Red) · 21–30 color preset (Green) · 31–40 color preset (Red + Green) · 41–50 color preset (Blue) · 51–60 color preset (Red + Blue) · 61–70 color preset (Green + Blue) · 71–80 color preset (Red + Green + Blue) · 81–123 effect · 124–166 effect (Color mix) · 167–209 effect · 210–249 effect (Color change) · 250–255 effect (Sound control) |
| 12 | strobing | 頻閃/遮光 | 0 | 0–7 開 · 8–139 頻閃 (Strobe) · 140–189 頻閃 (RampUp) · 190–239 頻閃 (RampDown) · 240–255 頻閃 (Strobe) |
| 13 | masterDimmer | 亮度 | 0 | 0–255 |
| 14 | programs | 控制(只在刻意指定時寫入) | 0 | 0–15 無作用 · 16–40 effect (Program 1) · 41–65 effect (Program 2) · 66–90 effect (Program 3) · 91–115 effect (Program 4) · 116–140 effect (Program 5) · 141–165 effect (Program 6) · 166–190 effect (Program 7) · 191–215 effect (Program 8) · 216–240 effect (Random program playing 5 times each) · 241–255 effect (Random program 2min each) |
| 15 | programSpeed | 速度 | 0 | 0–255 |
| 16 | panTiltSpeed | 速度 | 0 | 0–255 |
| 17 | specialFunctions | 控制(只在刻意指定時寫入) | 0 | 0–69 無作用 · 70–79 maintenance (Blackout with Pan / Tilt movement) · 80–89 無作用 · 90–99 maintenance (Blackout with RGBW value change) · 100–199 無作用 · 200–209 maintenance (Reset all) · 210–255 無作用 |
| 18 | dimmerCurve | 控制(只在刻意指定時寫入) | 255 | 0–20 maintenance (Standard) · 21–40 maintenance (Stage) · 41–60 maintenance (TV) · 61–80 maintenance (Architectural) · 81–100 maintenance (Theatre) · 101–255 maintenance (Default setting) |
用在程式裡
把 American DJ XS 400 寫進你的程式
貼進任何網頁的 <script type="module">:它從這個網站載入 @openav/devices 和 @openav/dmx,用模式 18ch 把燈 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('american-dj-xs-400'); // American DJ XS 400
const patch = new Patch();
light.patch(patch, { id: 'light1', address: 1, mode: '18ch' }); // 18 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, 18).join(' '));
// → 128 0 64 0 0 0 255 128 0 0 0 0 255 0 0 0 0 255它照順序印出模式 18ch 的各個通道:
pan128panFine0tilt64tiltFine0tiltContinuousRotation0tiltContinuousRotationSpeed0red255green128blue0white0colorMacrosEffects0strobing0masterDimmer255programs0programSpeed0panTiltSpeed0specialFunctions0dimmerCurve255
檔案
把燈具帶走
燈具檔(JSON,open-audiovisual/fixture@1):每個模式和通道、每段數值、出處與授權。演出用 device() 載入,或直接交給 Patch。
資料從哪裡來
出處、授權、驗證
通道資料來自 Open Fixture Library(MIT),檔案 fixtures/american-dj/xs-400.json,commit 849343f6,作者 Flo Edelmann。由 tools/import-ofl.mjs 轉換,保留每個通道的作用、預設值和各段數值。
授權:MIT。 本專案還沒有人拿實際的燈確認過這個檔案:每個值都照出處寫。
出處
- Open Fixture Library fixtures/american-dj/xs-400.json by Flo Edelmann; MIT; channel jobs and ranges read from OFL's capabilities, not checked by this project
- American DJ XS 400: manual linked from the OFL file; not read by this project
- American DJ XS 400: product page linked from the OFL file; not read by this project
檔案裡的說明
Imported from the Open Fixture Library. Nobody has checked it on a light for this project. OFL asks for help: Tilt Continuous Rotation Speed: Is this pan rotation? If not, is it correct that channel 'Tilt Continuous Rotation' only sets direction and this channel the rotation speed? Color Macros & Effects: How does this differ from the other color effects? Color Macros & Effects: How does this differ from the other color effects? Strobing: Is the strobe speed controllable here? Strobing: Is the strobe speed controllable here?
GitHub
資料有錯?
這一頁的每個值都來自 repository 裡的一個檔案。開一張 issue,寫哪一個值、你在哪裡讀到正確的值,或直接用 pull request 改那個檔案。