Line editor: how it is said (delivery), editable by the author
This commit is contained in:
parent
9ddb90033b
commit
47ed869d1d
1 changed files with 4 additions and 1 deletions
|
|
@ -1556,6 +1556,8 @@
|
|||
+ ' <details style="display:inline"><summary style="cursor:pointer;color:var(--muted);font-size:12px;display:inline">change the words or when they are said</summary>'
|
||||
+ '<input type="text" maxlength="400" style="width:100%;margin:4px 0" data-linetext="' + esc(s.id) + '|' + ai + '" value="' + esc(a.text || "") + '">'
|
||||
+ '<div class="tiny" style="margin:0 0 4px">A pause inside the line: write <b>[pause 0.6]</b> between the words (seconds). It is never spoken.</div>'
|
||||
+ '<label style="display:block;font-size:12px;color:var(--muted);margin:2px 0 4px">How it is said '
|
||||
+ '<input type="text" maxlength="200" style="width:70%" data-linedelivery="' + esc(s.id) + '|' + ai + '" value="' + esc(a.delivery || "") + '" placeholder="warm and hopeful, smiling"></label>'
|
||||
+ (a.lip_sync ? '<label style="display:block;font-size:12px;color:var(--muted);margin:2px 0 4px">Quiet <b>before</b> the line '
|
||||
+ '<input type="number" step="0.5" min="0" max="12" style="width:60px" data-linelead="' + esc(s.id) + '|' + ai + '" value="' + (a.lead_seconds != null ? Number(a.lead_seconds).toFixed(1) : '') + '" placeholder="1.0"> s - what the description puts before the words happens here - and <b>after</b> it '
|
||||
+ '<input type="number" step="0.5" min="0" max="12" style="width:60px" data-linetail="' + esc(s.id) + '|' + ai + '" value="' + (a.tail_seconds != null ? Number(a.tail_seconds).toFixed(1) : '') + '" placeholder="0.5"> s. '
|
||||
|
|
@ -2063,7 +2065,8 @@
|
|||
el.disabled = true;
|
||||
var lld = document.querySelector('[data-linelead="' + lk + '"]'), ltl = document.querySelector('[data-linetail="' + lk + '"]');
|
||||
r = await act("set_line", { draft_id: CUR, shot_id: lp[0], index: Number(lp[1]), text: lin ? lin.value : "",
|
||||
lead: lld ? lld.value : "", tail: ltl ? ltl.value : "" });
|
||||
lead: lld ? lld.value : "", tail: ltl ? ltl.value : "",
|
||||
delivery: (document.querySelector('[data-linedelivery="' + lk + '"]') || {}).value || "" });
|
||||
if (r) { showMsg("msg", "Saved. The voice will be recorded again with the new words the next time it is played or filmed.", "ok"); await refresh(); }
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue