MCPcopy Create free account
hub / github.com/TomClive/SeeDance2Stitcher / updateToneNote

Function updateToneNote

public/app.js:238–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

236}
237
238function updateToneNote() {
239 if (!state.session) return;
240 const joinTone = state.session.analysis.tone;
241 const fullTone = state.session.analysis.fullClipTone;
242 if (!joinTone || !fullTone) return;
243 const tone = els.toneFullClip.checked ? fullTone : joinTone;
244 const action = els.toneFullClip.checked
245 ? "Full video 2 match applies the join correction across the entire second clip."
246 : (tone.recommended ? `Recommended: smooth clip 2 for ${tone.frames} frames.` : "Tone smoothing is optional for this join.");
247 els.toneScore.textContent = `tone ${Math.abs(tone.meanDeltaPct).toFixed(1)}% / ${Math.abs(tone.contrastDeltaPct).toFixed(1)}%`;
248 els.toneNote.textContent = `Join: ${joinTone.note} Full clip: ${fullTone.note} ${action}`;
249 els.toneNote.classList.toggle("active", els.toneMatch.checked || tone.recommended);
250}
251
252function renderFrames() {
253 if (!state.session) return;

Callers 2

app.jsFile · 0.85
applyAnalysisFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected