update cuelist

main
reng 2 months ago
parent 6f6bd0c121
commit cadcca50ae
  1. 96
      public/cuelist_0924.json
  2. 12
      src/App.jsx

@ -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
}
]
}

@ -9,6 +9,8 @@ import { Light } from "./utils/light";
const DefaultFadeDuration = 3; // 1 second const DefaultFadeDuration = 3; // 1 second
const CLIENT_COUNT=13; const CLIENT_COUNT=13;
const CUE_FILE='cuelist_0924.json';
const CueType={ const CueType={
Bg: 'bg', Bg: 'bg',
@ -200,7 +202,7 @@ function App() {
} }
},[currentCue]); },[currentCue]);
useEffect(()=>{ useEffect(()=>{
fetch('/cuelist.json') fetch(`/${CUE_FILE}`)
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
console.log('Cuelist data:', data); console.log('Cuelist data:', data);
@ -266,13 +268,7 @@ function App() {
<button <button
onClick={()=>{ onClick={()=>{
playCue({id, name, description, type, auto, ...props}); playCue({id, name, description, type, auto, ...props});
}}>go</button> }}>go</button>
{type==CueType.Announce && <button
onClick={()=>{
if(props.audioCue){
sendOscToSound(OSC_ADDRESS.SCS_STOP_ALL, '');
}
}}>stop</button>}
</td> </td>
<td>{name}</td> <td>{name}</td>
<td className="text-sm">{description}</td> <td className="text-sm">{description}</td>

Loading…
Cancel
Save