open-audiovisual
搜尋 GitHub

American DJ

American DJ Pocket Pro

American DJ Pocket Pro 是 American DJ 的搖頭燈,有 2 種模式 (13ch: 13、11ch: 11)。通道資料來自 Open Fixture Library(MIT),轉成 OAV 的燈具格式,本專案還沒有在實際的燈上確認過。

  • 來自 Open Fixture Library(MIT)
  • 還沒有在實機上確認
種類
搖頭燈
廠牌
American DJ
模式
2 種模式 (13ch: 13、11ch: 11)
協定
DMX512
水平/垂直
水平 540° · 垂直 230°
頻閃
檔案沒寫速率:在每秒 3 次的上限下保持常亮
授權
MIT
驗證
還沒有在實機上確認

試試看

不接燈也能推 American DJ Pocket Pro

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

燈看起來的樣子

它收到的位元組

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

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

DMX 通道

American DJ Pocket Pro 每個模式的每個通道

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

模式 13ch · 13-channel 13 個通道

通道名稱類型預設每段數值的作用
1pan水平00–255
2panFinepan 的低位元組00–255
3tilt垂直00–255
4tiltFinetilt 的低位元組00–255
5colorWheel色輪00–7 wheel slot (Open) · 8–14 wheel slot (Red) · 15–21 wheel slot (Orange) · 22–28 wheel slot (Yellow) · 29–35 wheel slot (Green) · 36–42 wheel slot (UV) · 43–49 wheel slot (Blue) · 50–56 wheel slot (Pink) · 57–66 wheel slot (Open / Red) · 67–76 wheel slot (Red / Orange) · 77–86 wheel slot (Orange / Yellow) · 87–96 wheel slot (Yellow / Green) · 97–106 wheel slot (Green / UV) · 107–116 wheel slot (UV / Blue) · 117–127 wheel slot (Blue / Pink) · 128–189 wheel rotation · 190–193 wheel rotation · 194–255 wheel rotation
6goboWheel圖案片00–7 wheel slot (Open) · 8–15 wheel slot (Glass) · 16–23 wheel slot (Stars) · 24–31 wheel slot (Squares) · 32–39 wheel slot (Astrisk) · 40–47 wheel slot (Leaves) · 48–55 wheel slot (Diamonds) · 56–63 wheel slot (Bubbles) · 64–71 wheel shake (Open) · 72–79 wheel shake (Glass) · 80–87 wheel shake (Stars) · 88–95 wheel shake (Squares) · 96–103 wheel shake (Astrisk) · 104–111 wheel shake (Leaves) · 112–119 wheel shake (Diamonds) · 120–127 wheel shake (Bubbles) · 128–189 wheel rotation · 190–193 wheel rotation · 194–255 wheel rotation
7shutter頻閃/遮光80–7 關 (Closed) · 8–15 開 (Open) · 16–131 頻閃 (Strobe) · 132–139 開 (Open) · 140–181 頻閃 (RampUp) · 182–189 開 (Open) · 190–231 頻閃 (RampDown) · 232–239 開 (Open) · 240–247 頻閃 (Strobe) · 248–255 開 (Open)
8dimmer亮度00–255
9panTiltMacros控制(只在刻意指定時寫入)00–7 無作用 · 8–15 effect (Macro 1) · 16–23 effect (Macro 2) · 24–31 effect (Macro 3) · 32–39 effect (Macro 4) · 40–47 effect (Macro 5) · 48–55 effect (Macro 6) · 56–63 effect (Macro 7) · 64–71 effect (Macro 8) · 72–79 effect (Macro 9) · 80–87 effect (Macro 10) · 88–95 effect (Macro 11) · 96–103 effect (Macro 12) · 104–111 effect (Macro 13) · 112–119 effect (Macro 14) · 120–127 effect (Macro 15) · 128–135 effect (Macro 16) · 136–143 effect (Macro 17) · 144–151 effect (Macro 18) · 152–159 effect (Macro 19) · 160–167 effect (Macro 20) · 168–175 effect (Macro 21) · 176–183 effect (Macro 22) · 184–191 effect (Macro 23) · 192–199 effect (Macro 24) · 200–207 effect (Macro 25) · 208–215 effect (Macro 26) · 216–223 effect (Macro 27) · 224–231 effect (Macro 28) · 232–239 effect (Macro 29) · 240–247 effect (Macro 30) · 248–255 effect (Macro 31)
10panTiltMacroSpeed速度00–255
11dimmerCurves控制(只在刻意指定時寫入)00–20 maintenance (Standard) · 21–40 maintenance (Stage) · 41–60 maintenance (TV) · 61–80 maintenance (Architectural) · 81–100 maintenance (Theater) · 101–255 maintenance (Default to unit dimmer setting)
12panTiltSpeed速度00–255
13specialFunctions控制(只在刻意指定時寫入)00–69 無作用 · 70–79 maintenance (Enable Pan & Tilt Blackout) · 80–89 maintenance (Disable Pan & Tilt Blackout) · 90–99 maintenance (Target Mode 1 (0-180°)) · 100–109 maintenance (Target Mode 2 (90-270°)) · 110–119 maintenance (Target Mode (180-360°)) · 120–129 maintenance (Target Mode 4 (270-54°0)) · 130–199 無作用 · 200–209 maintenance (Reset All) · 210–255 無作用

模式 11ch · 11-channel 11 個通道

通道名稱類型預設每段數值的作用
1pan水平00–255
2tilt垂直00–255
3colorWheel色輪00–7 wheel slot (Open) · 8–14 wheel slot (Red) · 15–21 wheel slot (Orange) · 22–28 wheel slot (Yellow) · 29–35 wheel slot (Green) · 36–42 wheel slot (UV) · 43–49 wheel slot (Blue) · 50–56 wheel slot (Pink) · 57–66 wheel slot (Open / Red) · 67–76 wheel slot (Red / Orange) · 77–86 wheel slot (Orange / Yellow) · 87–96 wheel slot (Yellow / Green) · 97–106 wheel slot (Green / UV) · 107–116 wheel slot (UV / Blue) · 117–127 wheel slot (Blue / Pink) · 128–189 wheel rotation · 190–193 wheel rotation · 194–255 wheel rotation
4goboWheel圖案片00–7 wheel slot (Open) · 8–15 wheel slot (Glass) · 16–23 wheel slot (Stars) · 24–31 wheel slot (Squares) · 32–39 wheel slot (Astrisk) · 40–47 wheel slot (Leaves) · 48–55 wheel slot (Diamonds) · 56–63 wheel slot (Bubbles) · 64–71 wheel shake (Open) · 72–79 wheel shake (Glass) · 80–87 wheel shake (Stars) · 88–95 wheel shake (Squares) · 96–103 wheel shake (Astrisk) · 104–111 wheel shake (Leaves) · 112–119 wheel shake (Diamonds) · 120–127 wheel shake (Bubbles) · 128–189 wheel rotation · 190–193 wheel rotation · 194–255 wheel rotation
5shutter頻閃/遮光80–7 關 (Closed) · 8–15 開 (Open) · 16–131 頻閃 (Strobe) · 132–139 開 (Open) · 140–181 頻閃 (RampUp) · 182–189 開 (Open) · 190–231 頻閃 (RampDown) · 232–239 開 (Open) · 240–247 頻閃 (Strobe) · 248–255 開 (Open)
6dimmer亮度00–255
7panTiltMacros控制(只在刻意指定時寫入)00–7 無作用 · 8–15 effect (Macro 1) · 16–23 effect (Macro 2) · 24–31 effect (Macro 3) · 32–39 effect (Macro 4) · 40–47 effect (Macro 5) · 48–55 effect (Macro 6) · 56–63 effect (Macro 7) · 64–71 effect (Macro 8) · 72–79 effect (Macro 9) · 80–87 effect (Macro 10) · 88–95 effect (Macro 11) · 96–103 effect (Macro 12) · 104–111 effect (Macro 13) · 112–119 effect (Macro 14) · 120–127 effect (Macro 15) · 128–135 effect (Macro 16) · 136–143 effect (Macro 17) · 144–151 effect (Macro 18) · 152–159 effect (Macro 19) · 160–167 effect (Macro 20) · 168–175 effect (Macro 21) · 176–183 effect (Macro 22) · 184–191 effect (Macro 23) · 192–199 effect (Macro 24) · 200–207 effect (Macro 25) · 208–215 effect (Macro 26) · 216–223 effect (Macro 27) · 224–231 effect (Macro 28) · 232–239 effect (Macro 29) · 240–247 effect (Macro 30) · 248–255 effect (Macro 31)
8panTiltMacroSpeed速度00–255
9dimmerCurves控制(只在刻意指定時寫入)00–20 maintenance (Standard) · 21–40 maintenance (Stage) · 41–60 maintenance (TV) · 61–80 maintenance (Architectural) · 81–100 maintenance (Theater) · 101–255 maintenance (Default to unit dimmer setting)
10panTiltSpeed速度00–255
11specialFunctions控制(只在刻意指定時寫入)00–69 無作用 · 70–79 maintenance (Enable Pan & Tilt Blackout) · 80–89 maintenance (Disable Pan & Tilt Blackout) · 90–99 maintenance (Target Mode 1 (0-180°)) · 100–109 maintenance (Target Mode 2 (90-270°)) · 110–119 maintenance (Target Mode (180-360°)) · 120–129 maintenance (Target Mode 4 (270-54°0)) · 130–199 無作用 · 200–209 maintenance (Reset All) · 210–255 無作用

用在程式裡

把 American DJ Pocket Pro 寫進你的程式

貼進任何網頁的 <script type="module">:它從這個網站載入 @openav/devices 和 @openav/dmx,用模式 13ch 把燈 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-pocket-pro');   // American DJ Pocket Pro
const patch = new Patch();
light.patch(patch, { id: 'light1', address: 1, mode: '13ch' });   // 13 channels from address 1
const engine = new DmxEngine(patch);
engine.set('light1', { dimmer: 1, pan: 0.5, tilt: 0.25 });
console.log(engine.render(0).bytes(1).slice(0, 13).join(' '));
// → 128 0 64 0 0 0 8 255 0 0 0 0 0

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

  1. pan 128
  2. panFine 0
  3. tilt 64
  4. tiltFine 0
  5. colorWheel 0
  6. goboWheel 0
  7. shutter 8
  8. dimmer 255
  9. panTiltMacros 0
  10. panTiltMacroSpeed 0
  11. dimmerCurves 0
  12. panTiltSpeed 0
  13. specialFunctions 0

檔案

把燈具帶走

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

資料從哪裡來

出處、授權、驗證

通道資料來自 Open Fixture Library(MIT),檔案 fixtures/american-dj/pocket-pro.json,commit 849343f6,作者 Anonymous。由 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 在畫面上點亮整組燈,不需要硬體。