|
|
|
@ -99,6 +99,8 @@ export function FreeFlow(){ |
|
|
|
reset(); |
|
|
|
reset(); |
|
|
|
sendOsc(OSC_ADDRESS.CHOICE, 'reset'); |
|
|
|
sendOsc(OSC_ADDRESS.CHOICE, 'reset'); |
|
|
|
sendOsc(OSC_ADDRESS.SPEECH, 'stop'); |
|
|
|
sendOsc(OSC_ADDRESS.SPEECH, 'stop'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setPadInput(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function onOsc(payload){ |
|
|
|
function onOsc(payload){ |
|
|
|
@ -266,6 +268,8 @@ export function FreeFlow(){ |
|
|
|
sendOsc(OSC_ADDRESS.INPUT, ''); // Clear input message |
|
|
|
sendOsc(OSC_ADDRESS.INPUT, ''); // Clear input message |
|
|
|
sendOsc(OSC_ADDRESS.SPEECH, 'stop'); |
|
|
|
sendOsc(OSC_ADDRESS.SPEECH, 'stop'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
setPadInput(); |
|
|
|
|
|
|
|
|
|
|
|
switch(cue.type){ |
|
|
|
switch(cue.type){ |
|
|
|
case 'chat': |
|
|
|
case 'chat': |
|
|
|
// Special case for starting a conversation |
|
|
|
// Special case for starting a conversation |
|
|
|
@ -329,7 +333,7 @@ export function FreeFlow(){ |
|
|
|
// if(cue.callback=='fade_in_light') refLight.current.fadeIn(); // Fade in light for conversation start |
|
|
|
// if(cue.callback=='fade_in_light') refLight.current.fadeIn(); // Fade in light for conversation start |
|
|
|
// if(cue.callback=='fade_out_light') refLight.current.fadeOut(); // Fade out light for conversation end |
|
|
|
// if(cue.callback=='fade_out_light') refLight.current.fadeOut(); // Fade out light for conversation end |
|
|
|
|
|
|
|
|
|
|
|
if(cue.hint!=null){ |
|
|
|
if(cue.hint!=null && cue.hint_time!=null){ |
|
|
|
refHintTimeout.current=setTimeout(()=>{ |
|
|
|
refHintTimeout.current=setTimeout(()=>{ |
|
|
|
sendOsc(OSC_ADDRESS.HINT, cue.hint); // Send OSC hint message |
|
|
|
sendOsc(OSC_ADDRESS.HINT, cue.hint); // Send OSC hint message |
|
|
|
}, cue.hint_time); |
|
|
|
}, cue.hint_time); |
|
|
|
@ -389,8 +393,8 @@ export function FreeFlow(){ |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(cue.hint!=null){ |
|
|
|
if(cue.hint!=null && cue.hint_time==null){ |
|
|
|
// sendOsc(OSC_ADDRESS.HINT, cue.hint); // Send OSC hint message |
|
|
|
sendOsc(OSC_ADDRESS.HINT, cue.hint); // Send OSC hint message |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
sendOsc(OSC_ADDRESS.HINT, ''); // Clear hint message |
|
|
|
sendOsc(OSC_ADDRESS.HINT, ''); // Clear hint message |
|
|
|
} |
|
|
|
} |
|
|
|
@ -426,7 +430,8 @@ export function FreeFlow(){ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function onNumpad(mess){ |
|
|
|
function onNumpad(mess){ |
|
|
|
setPadInput(mess); |
|
|
|
console.log('onNumPad',mess); |
|
|
|
|
|
|
|
setPadInput(()=>mess); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function exportFile(){ |
|
|
|
function exportFile(){ |
|
|
|
|