open-audiovisual
搜尋 GitHub

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 個通道

通道名稱類型預設每段數值的作用
1pan水平1280–255
2tilt垂直1280–255
3tiltContinuousRotation其他00–55 無作用 · 56–127 tilt continuous · 128–199 tilt continuous · 200–255 無作用
4tiltContinuousRotationSpeed速度00–255
5red顏色: 紅00–255
6green顏色: 綠00–255
7blue顏色: 藍00–255
8white顏色: 白00–255
9colorMacrosEffects控制(只在刻意指定時寫入)00–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)
10strobing頻閃/遮光00–7 開 · 8–139 頻閃 (Strobe) · 140–189 頻閃 (RampUp) · 190–239 頻閃 (RampDown) · 240–255 頻閃 (Strobe)
11masterDimmer亮度00–255
12programs控制(只在刻意指定時寫入)00–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)
13programSpeed速度00–255
14panTiltSpeed速度00–255
15specialFunctions控制(只在刻意指定時寫入)00–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 無作用
16dimmerCurve控制(只在刻意指定時寫入)2550–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 個通道

通道名稱類型預設每段數值的作用
1pan水平1280–255
2panFinepan 的低位元組00–255
3tilt垂直1280–255
4tiltFinetilt 的低位元組00–255
5tiltContinuousRotation其他00–55 無作用 · 56–127 tilt continuous · 128–199 tilt continuous · 200–255 無作用
6tiltContinuousRotationSpeed速度00–255
7red顏色: 紅00–255
8green顏色: 綠00–255
9blue顏色: 藍00–255
10white顏色: 白00–255
11colorMacrosEffects控制(只在刻意指定時寫入)00–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)
12strobing頻閃/遮光00–7 開 · 8–139 頻閃 (Strobe) · 140–189 頻閃 (RampUp) · 190–239 頻閃 (RampDown) · 240–255 頻閃 (Strobe)
13masterDimmer亮度00–255
14programs控制(只在刻意指定時寫入)00–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)
15programSpeed速度00–255
16panTiltSpeed速度00–255
17specialFunctions控制(只在刻意指定時寫入)00–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 無作用
18dimmerCurve控制(只在刻意指定時寫入)2550–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)。

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('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 的各個通道:

  1. pan 128
  2. panFine 0
  3. tilt 64
  4. tiltFine 0
  5. tiltContinuousRotation 0
  6. tiltContinuousRotationSpeed 0
  7. red 255
  8. green 128
  9. blue 0
  10. white 0
  11. colorMacrosEffects 0
  12. strobing 0
  13. masterDimmer 255
  14. programs 0
  15. programSpeed 0
  16. panTiltSpeed 0
  17. specialFunctions 0
  18. dimmerCurve 255

檔案

把燈具帶走

燈具檔(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。 本專案還沒有人拿實際的燈確認過這個檔案:每個值都照出處寫。

出處

檔案裡的說明

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 改那個檔案。

下一步

從作品打這台燈

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