diff --git a/public/cuelist_0924.json b/public/cuelist_0924.json new file mode 100644 index 0000000..fd8112f --- /dev/null +++ b/public/cuelist_0924.json @@ -0,0 +1,96 @@ +{ + "cuelist": [ + { + "id": 1, + "name": "Q1", + "type": "bg", + "description": "[外場+電話亭] preset 音樂", + "audioCue": "Q0", + "clientCue":"Q1", + "reset":true + }, + { + "id": 2, + "name": "Q2", + "type": "announce", + "description": "[外場 + 電話亭] announce", + "audioCue": "Q1", + "clientCue":"Q1.1" + }, + { + "id": 3, + "name": "Q3", + "type": "bg", + "description": "[電話亭] 開始流程 CQ2-CQ4.1", + "audioCue": "Q3", + "clientCue":"Q2", + "duration":285, + "auto": true, + "reset":true + }, + { + "id": 4, + "name": "Q4", + "type": "light", + "description": "[電話亭] 記憶裝置啟動 (AI) CQ4.11-CQ5.6", + "audioCue": "Q4", + "lightCue":"fade_out_light", + "duration":285, + "clientCue":"Q4.11", + "auto": true + }, + { + "id": 5, + "name": "Q5", + "type": "bg", + "description": "[電話亭] 結尾announce", + "duration":25, + "status":"end", + "lightCue":"fade_in_light", + "clientCue":"Q6", + "audioCue": "Q5", + "auto":true + }, + { + "id": 6, + "name": "Q5", + "type": "bg", + "description": "[外場] 結尾音樂", + "audioCue": "Q6", + "clientCue":"Q7" + }, + { + "id": 0.1, + "name": "CQ4", + "type": "debug", + "description": "debug-phone part", + "clientCue":"Q4", + "duration":97, + "auto":true, + "debug":true, + "reset":true + },{ + "id": 0.2, + "name": "CQ4.11", + "type": "light", + "description": "debug-CQ4.11-CQ5.6", + "lightCue":"fade_out_light", + "duration":298, + "clientCue":"Q4.11", + "auto": true, + "debug":true + }, + { + "id": 0.3, + "name": "dQ5", + "type": "bg", + "description": "debug-(END)", + "audioCue": "Q4", + "status":"end", + "lightCue":"fade_in_light", + "clientCue":"Q6", + "debug":true + } + ] +} + \ No newline at end of file diff --git a/src/App.jsx b/src/App.jsx index bcc9fee..f2885a1 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -9,6 +9,8 @@ import { Light } from "./utils/light"; const DefaultFadeDuration = 3; // 1 second const CLIENT_COUNT=13; +const CUE_FILE='cuelist_0924.json'; + const CueType={ Bg: 'bg', @@ -200,7 +202,7 @@ function App() { } },[currentCue]); useEffect(()=>{ - fetch('/cuelist.json') + fetch(`/${CUE_FILE}`) .then(response => response.json()) .then(data => { console.log('Cuelist data:', data); @@ -266,13 +268,7 @@ function App() { - {type==CueType.Announce && } + }}>go