@senseihq/emaki-cli 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -7
- package/package.json +4 -2
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/plugin/modules/campaign/README.md +10 -3
- package/plugin/modules/campaign/day-script.template.md +2 -1
- package/plugin/modules/posting-desk/README.md +2 -2
- package/plugin/skills/emaki/references/03-content-model.md +7 -4
- package/plugin/skills/emaki/references/04-scene-authoring.md +3 -0
- package/plugin/skills/emaki/references/05-voice-and-video.md +41 -8
- package/plugin/skills/emaki/references/09-publishing.md +5 -2
- package/plugin/skills/story-media/SKILL.md +2 -0
- package/plugin/skills/story-publish/SKILL.md +18 -4
- package/src/api.js +12 -1
- package/src/campaign.js +157 -0
- package/src/capture.js +69 -33
- package/src/carousel.js +91 -0
- package/src/day-script.js +66 -0
- package/src/desk-client.js +37 -0
- package/src/desk-plan.js +57 -0
- package/src/films.js +12 -5
- package/src/http.js +30 -0
- package/src/index.js +161 -3
- package/src/init.js +5 -4
- package/src/media.js +236 -0
- package/src/migrate.js +67 -0
- package/src/publish.js +118 -0
- package/src/stage.js +107 -0
- package/src/stories.js +66 -0
- package/src/upload/instagram.js +34 -0
- package/src/upload/youtube.js +90 -0
- package/src/util.js +7 -0
- package/src/voice.js +119 -40
- package/src/youtube-text.js +58 -0
- package/templates/content/films/measure-the-right-work/film.json +9 -0
- package/templates/content/films/measure-the-right-work/look.css +1 -0
- package/templates/content/films/measure-the-right-work/timing.en.json +24 -0
- package/templates/content/films/measure-the-right-work/timing.es.json +24 -0
- package/templates/content/films/measure-the-right-work/voice/en/close.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/en/groups.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/en/hook.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/en/pair.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/en/problem.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es/close.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es/groups.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es/hook.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es/pair.m4a +0 -0
- package/templates/content/films/measure-the-right-work/voice/es/problem.m4a +0 -0
- package/templates/film/look.css +1 -0
package/src/voice.js
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
// The narration: choose a voice per locale, synthesise takes, fit scene times to them, and build the final videos
|
|
2
2
|
// (voice + score + captions, -14 LUFS).
|
|
3
|
-
import { existsSync, mkdirSync, writeFileSync } from 'node:fs'
|
|
4
|
-
import { join } from 'node:path'
|
|
3
|
+
import { copyFileSync, existsSync, mkdirSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs'
|
|
4
|
+
import { join, resolve } from 'node:path'
|
|
5
5
|
import { SUFFIX } from './config.js'
|
|
6
|
+
import {
|
|
7
|
+
buildArgs, buildPlan, chaptersText, description, ffmeta, planTable, posterSteps, storyLink, webArgs, webNote, webVoiceArgs, ytChapters
|
|
8
|
+
} from './media.js'
|
|
6
9
|
import { OFFLINE, provider, TTSError, voiceConfig } from './tts.js'
|
|
7
|
-
import {
|
|
10
|
+
import { localizeScene, motionEnd } from '@senseihq/emaki'
|
|
11
|
+
import { die, hasAudio, load, mediaLength, pad2, run, save } from './util.js'
|
|
8
12
|
|
|
9
13
|
export const NO_PROVIDER = (loc) => `no voice provider is set for ${loc}. Choose one and record it with set-voice, for example:
|
|
10
14
|
offline piper (good, free) kokoro (very natural, free) macos (Mac drafts) espeak (robotic drafts)
|
|
@@ -114,7 +118,50 @@ export function takesFor(p, slug, locale) {
|
|
|
114
118
|
return out
|
|
115
119
|
}
|
|
116
120
|
|
|
117
|
-
/**
|
|
121
|
+
/** The narration for the browser: each take as voice/<locale>/<scene>.m4a beside the film, and in timing.<locale>.json
|
|
122
|
+
* each narrated scene's `voice` start (the same lead the videos use), so the story player and article figures speak
|
|
123
|
+
* in step with the picture. A scene whose take is gone loses its file and its start. Run after `fit`. */
|
|
124
|
+
export function voiceWeb(p, slug, { locale, encode = (src, dst) => run('ffmpeg', webVoiceArgs(src, dst)), log = () => {} } = {}) {
|
|
125
|
+
const d = p.filmDir(slug), takes = takesFor(p, slug, locale)
|
|
126
|
+
if (!takes.size) die(`${slug} has no takes for ${locale}: record or synthesise them first (emaki voice ${slug} --locale ${locale})`)
|
|
127
|
+
const film = load(join(d, 'film.json')), dir = join(d, 'voice', locale), tp = join(d, `timing.${locale}.json`)
|
|
128
|
+
const timing = existsSync(tp) ? load(tp) : { scenes: {} }
|
|
129
|
+
const tsc = (timing.scenes ??= {})
|
|
130
|
+
mkdirSync(dir, { recursive: true })
|
|
131
|
+
const wrote = [], removed = []
|
|
132
|
+
for (const s of film.scenes) {
|
|
133
|
+
const dst = join(dir, `${s.id}.m4a`), c = tsc[s.id] ?? {}
|
|
134
|
+
if (takes.has(s.id)) {
|
|
135
|
+
encode(takes.get(s.id)[0], dst)
|
|
136
|
+
wrote.push(p.rel(dst))
|
|
137
|
+
log(`${p.rel(dst)}`)
|
|
138
|
+
c.voice = p.lead
|
|
139
|
+
} else {
|
|
140
|
+
if (existsSync(dst)) { rmSync(dst); removed.push(p.rel(dst)) }
|
|
141
|
+
delete c.voice
|
|
142
|
+
}
|
|
143
|
+
if (Object.keys(c).length) tsc[s.id] = c
|
|
144
|
+
else delete tsc[s.id]
|
|
145
|
+
}
|
|
146
|
+
if (!readdirSync(dir).length) rmSync(dir, { recursive: true })
|
|
147
|
+
save(tp, timing)
|
|
148
|
+
return { wrote, removed, timing: p.rel(tp) }
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const up = (v) => Math.ceil(v * 10 - 1e-9) / 10
|
|
152
|
+
|
|
153
|
+
/** When scene `s` stops moving, in scene seconds: film.json "settle", else the end of its JSON scene's tracks in this
|
|
154
|
+
* locale (word counts follow the translation), else null (a JS scene: its motion cannot be read). */
|
|
155
|
+
function settleOf(d, s, locale) {
|
|
156
|
+
if (s.settle != null) return s.settle
|
|
157
|
+
const f = join(d, `scene-${s.id}.json`)
|
|
158
|
+
if (!existsSync(f)) return null
|
|
159
|
+
const sp = join(d, `strings/${locale}.json`)
|
|
160
|
+
return motionEnd(localizeScene(load(f), existsSync(sp) ? load(sp) : {}))
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/** timing.<locale>.json: a narrated scene runs lead + take + tail, longer or shorter than its design, but never ends
|
|
164
|
+
* before its motion settles; a scene without a take, or a JS scene without "settle", keeps its design time. */
|
|
118
165
|
export function fit(p, slug, { locale, check = false, length = mediaLength } = {}) {
|
|
119
166
|
const d = p.filmDir(slug), film = load(join(d, 'film.json')), takes = takesFor(p, slug, locale)
|
|
120
167
|
const tp = join(d, `timing.${locale}.json`)
|
|
@@ -125,13 +172,18 @@ export function fit(p, slug, { locale, check = false, length = mediaLength } = {
|
|
|
125
172
|
const c = tsc[s.id] ?? {}
|
|
126
173
|
const holds = (c.holds ?? []).reduce((n, h) => n + h[1], 0)
|
|
127
174
|
const L = takes.has(s.id) ? length(takes.get(s.id)[0]) : 0
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
-
if (
|
|
175
|
+
const base = s.dur + holds
|
|
176
|
+
let runs = base
|
|
177
|
+
if (L) {
|
|
178
|
+
const settle = settleOf(d, s, locale)
|
|
179
|
+
const floor = settle == null ? base : Math.min(base, up(settle + holds))
|
|
180
|
+
runs = Math.max(floor, up(p.lead + L + p.tail))
|
|
181
|
+
}
|
|
182
|
+
if (Math.abs(runs - base) > 1e-6) c.dur = runs
|
|
131
183
|
else delete c.dur
|
|
132
184
|
if (Object.keys(c).length) tsc[s.id] = c
|
|
133
185
|
else delete tsc[s.id]
|
|
134
|
-
rows.push({ scene: s.id, design: s.dur, holds, take: L, runs, longer: runs > base + 1e-6 })
|
|
186
|
+
rows.push({ scene: s.id, design: s.dur, holds, take: L, runs, longer: runs > base + 1e-6, shorter: runs < base - 1e-6 })
|
|
135
187
|
}
|
|
136
188
|
if (!check) save(tp, timing)
|
|
137
189
|
return { rows, total: rows.reduce((n, r) => n + r.runs, 0), path: p.rel(tp), written: !check }
|
|
@@ -162,55 +214,82 @@ export function captions(takes, starts, lead, length = mediaLength) {
|
|
|
162
214
|
return { vtt: vtt.join('\n'), srt: srt.join('\n') }
|
|
163
215
|
}
|
|
164
216
|
|
|
165
|
-
/**
|
|
166
|
-
|
|
217
|
+
/** libass lays SRT out on a 384x288 canvas scaled to the video, so these are in 288ths of the height: landscape 16 ≈
|
|
218
|
+
* 60 px text 127 px up; portrait 9 ≈ 60 px text 333 px up (clear of the platform's buttons). */
|
|
219
|
+
const burnIn = (srtPath, layout) => {
|
|
220
|
+
const size = layout === 'landscape' ? 16 : 9, margin = layout === 'landscape' ? 34 : 50
|
|
221
|
+
return `subtitles=${srtPath.replace(/([:\\'])/g, '\\$1')}:force_style='FontName=Inter,FontSize=${size},PrimaryColour=&H00FFFFFF,OutlineColour=&H66000000,BackColour=&H66000000,BorderStyle=3,Outline=5,Shadow=0,MarginV=${margin}'`
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** Final videos per orientation (build.py): the rendered picture with the voice laid `lead` s into each scene, the
|
|
225
|
+
* render's music ducked under it, -14 LUFS, captions burned in (and shipped as .srt/.vtt). A take that outruns its
|
|
226
|
+
* scene freezes the scene's last frame until it has finished (buildPlan). `check` prints the plan and builds nothing;
|
|
227
|
+
* `out` is the output folder (default production/<slug>/<locale>/out/). */
|
|
228
|
+
export function build(p, slug, { locale, noCaptions = false, check = false, out: target = undefined, log = console.info, length = mediaLength } = {}) {
|
|
167
229
|
const d = p.filmDir(slug), film = load(join(d, 'film.json'))
|
|
168
230
|
const tp = join(d, `timing.${locale}.json`)
|
|
169
231
|
const tm = existsSync(tp) ? (load(tp).scenes ?? {}) : {}
|
|
170
232
|
const takes = takesFor(p, slug, locale)
|
|
171
|
-
|
|
172
|
-
const
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
233
|
+
const plan = buildPlan(film, tm, new Map([...takes].map(([sid, [file]]) => [sid, { file, seconds: length(file) }])), p)
|
|
234
|
+
const render = p.prod(slug, locale, 'render')
|
|
235
|
+
const pics = ['landscape', 'portrait'].map((layout) => [layout, join(render, `${slug}-${locale}-${SUFFIX[layout]}.mp4`)])
|
|
236
|
+
.filter(([, f]) => existsSync(f))
|
|
237
|
+
log(`${film.title ?? slug} (${locale}): ${plan.picture.toFixed(1)} s as rendered`)
|
|
238
|
+
planTable(plan).forEach((l) => log(l))
|
|
239
|
+
if (plan.missing.length) log(`missing takes: ${plan.missing.join(', ')}`)
|
|
240
|
+
if (check) {
|
|
241
|
+
if (!pics.length) log(`MISSING: no render in ${p.rel(render)}; run \`emaki render ${slug} --locale ${locale}\``)
|
|
242
|
+
return { built: [], duration: plan.total, plan }
|
|
179
243
|
}
|
|
180
|
-
|
|
244
|
+
if (!takes.size) die(`no takes in ${p.rel(p.prod(slug, locale, 'takes'))}; run \`emaki voice\` (or record them) first`)
|
|
245
|
+
if (!pics.length) die(`no render in ${p.rel(render)}; run \`emaki render ${slug} --locale ${locale}\` first`)
|
|
246
|
+
const out = target ? resolve(target) : p.prod(slug, locale, 'out')
|
|
181
247
|
mkdirSync(out, { recursive: true })
|
|
182
|
-
const
|
|
248
|
+
const voiced = new Map([...takes].filter(([sid]) => plan.rows.some((r) => r.id === sid)))
|
|
249
|
+
const starts = new Map(plan.rows.map((r) => [r.id, [r.at, r.tot]]))
|
|
250
|
+
const cap = captions(voiced, starts, p.lead, length)
|
|
183
251
|
const srtPath = join(out, `${slug}-${locale}.srt`)
|
|
184
252
|
writeFileSync(join(out, `${slug}-${locale}.vtt`), cap.vtt)
|
|
185
253
|
writeFileSync(srtPath, cap.srt)
|
|
186
254
|
const inputs = [], filters = []
|
|
187
|
-
;[...
|
|
255
|
+
;[...voiced].forEach(([sid, [f]], i) => {
|
|
188
256
|
inputs.push('-i', f)
|
|
189
257
|
const ms = Math.round((starts.get(sid)[0] + p.lead) * 1000)
|
|
190
258
|
filters.push(`[${i}:a]aresample=48000,adelay=${ms}|${ms},apad[v${i}]`)
|
|
191
259
|
})
|
|
192
260
|
const voicePath = join(out, 'voice.wav')
|
|
193
261
|
run('ffmpeg', ['-y', '-v', 'error', ...inputs, '-filter_complex',
|
|
194
|
-
filters.join(';') + ';' + [...
|
|
262
|
+
filters.join(';') + ';' + [...voiced].map((_, i) => `[v${i}]`).join('') + `amix=inputs=${voiced.size}:normalize=0,atrim=0:${plan.total.toFixed(3)}[vo]`,
|
|
195
263
|
'-map', '[vo]', '-ac', '2', voicePath])
|
|
196
|
-
const
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
264
|
+
const chapters = join(out, 'chapters.ffmeta')
|
|
265
|
+
writeFileSync(chapters, ffmeta(plan.rows))
|
|
266
|
+
const yt = ytChapters(plan.rows)
|
|
267
|
+
writeFileSync(join(out, 'chapters.txt'), chaptersText(yt))
|
|
268
|
+
const story = join(p.content, 'stories', locale, `${slug}.json`)
|
|
269
|
+
const title = (existsSync(story) ? load(story).title : null) ?? film.title ?? slug
|
|
270
|
+
writeFileSync(join(out, 'description.txt'), description({ title, chapters: yt, link: storyLink(p.site, p.cfg, slug, locale) }))
|
|
271
|
+
const built = [], videos = {}
|
|
272
|
+
for (const [layout, pic] of pics) {
|
|
200
273
|
const dst = join(out, `${slug}-${locale}-${SUFFIX[layout]}.mp4`)
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
:
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
built.
|
|
274
|
+
run('ffmpeg', buildArgs({
|
|
275
|
+
pic, voice: voicePath, plan, music: hasAudio(pic), subtitles: noCaptions ? null : burnIn(srtPath, layout),
|
|
276
|
+
chapters, scoreLevel: p.cfg.scoreLevel ?? 0.55, dst
|
|
277
|
+
}))
|
|
278
|
+
log(`built ${p.rel(dst)} (${plan.rows.length} chapters)`)
|
|
279
|
+
built.push((videos[layout] = dst))
|
|
280
|
+
}
|
|
281
|
+
rmSync(chapters, { force: true })
|
|
282
|
+
if (videos.landscape) {
|
|
283
|
+
const web = join(out, `${slug}-${locale}-web.mp4`)
|
|
284
|
+
run('ffmpeg', webArgs(videos.landscape, web))
|
|
285
|
+
log(`built ${p.rel(web)} (${webNote(statSync(web).size)})`)
|
|
286
|
+
built.push(web)
|
|
287
|
+
}
|
|
288
|
+
for (const step of posterSteps({ render, out, slug, locale, built: videos, last: plan.rows.at(-1), exists: existsSync })) {
|
|
289
|
+
if (step.copy) copyFileSync(...step.copy)
|
|
290
|
+
else run('ffmpeg', step.ffmpeg)
|
|
291
|
+
log(` ${p.rel((step.copy ?? step.ffmpeg).at(-1))}`)
|
|
213
292
|
}
|
|
214
|
-
log(`captions: ${p.rel(out)}/${slug}-${locale}.vtt/.srt`)
|
|
215
|
-
return { built, duration:
|
|
293
|
+
log(`captions: ${p.rel(out)}/${slug}-${locale}.vtt/.srt; chapters.txt, description.txt`)
|
|
294
|
+
return { built, duration: plan.total, plan }
|
|
216
295
|
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
// The words that go up with a YouTube film: chapters YouTube accepts, the description, and how an update merges
|
|
2
|
+
// ours with what is already on the video.
|
|
3
|
+
import { readFileSync } from 'node:fs'
|
|
4
|
+
import { join } from 'node:path'
|
|
5
|
+
import { filmFiles, storyUrl } from './stories.js'
|
|
6
|
+
import { exists, load, runningTime } from './util.js'
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* [[at, name]] for the description: first at 0:00, every chapter at least 10 s (YouTube shows none unless all its
|
|
10
|
+
* rules hold). Short scenes fold into the chapter they start; a short tail joins the last chapter.
|
|
11
|
+
*/
|
|
12
|
+
export function chapters(plan) {
|
|
13
|
+
const groups = []
|
|
14
|
+
let cur = [], start = 0
|
|
15
|
+
for (const s of plan) {
|
|
16
|
+
cur.push(s)
|
|
17
|
+
if (s.at + s.dur - start >= 10 - 1e-6) {
|
|
18
|
+
groups.push([start, cur])
|
|
19
|
+
cur = []
|
|
20
|
+
start = s.at + s.dur
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
if (cur.length) groups.length ? groups.at(-1)[1].push(...cur) : groups.push([start, cur])
|
|
24
|
+
return groups.map(([at, ss]) => [at, ss.map((s) => s.name).join(' + ')])
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Each scene's start and running time in one locale (design time, holds, and timing.<locale>.json). */
|
|
28
|
+
export function scenePlan(p, slug, locale) {
|
|
29
|
+
const d = join(p.films, slug), film = load(join(d, 'film.json'))
|
|
30
|
+
const tp = join(d, `timing.${locale}.json`), tm = exists(tp) ? (load(tp).scenes ?? {}) : {}
|
|
31
|
+
let at = 0
|
|
32
|
+
return film.scenes.map((s) => {
|
|
33
|
+
const dur = runningTime(s, tm[s.id])
|
|
34
|
+
const row = { id: s.id, name: s.name ?? s.id, at, dur }
|
|
35
|
+
at += dur
|
|
36
|
+
return row
|
|
37
|
+
})
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** The description to publish: the built out/description.txt, else title + chapters + the story's link. */
|
|
41
|
+
export function youtubeDescription(p, slug, locale, title) {
|
|
42
|
+
const f = filmFiles(p, slug, locale).description
|
|
43
|
+
if (f) return readFileSync(f, 'utf-8')
|
|
44
|
+
const lines = chapters(scenePlan(p, slug, locale)).map(([at, n]) => `${Math.floor(at / 60)}:${String(Math.floor(at % 60)).padStart(2, '0')} ${n}\n`).join('')
|
|
45
|
+
return `${title}\n\n${lines}\n${storyUrl(p, slug, locale)}\n`
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** prepend: ours first, then what was there (minus earlier copies of ours); replace: ours only. */
|
|
49
|
+
export function mergeDescription(remote, local, mode = 'prepend') {
|
|
50
|
+
if (mode === 'replace') return local
|
|
51
|
+
const ours = local.trim()
|
|
52
|
+
let rest = (remote ?? '').trim()
|
|
53
|
+
while (ours && rest.startsWith(ours)) {
|
|
54
|
+
rest = rest.slice(ours.length).trim()
|
|
55
|
+
if (rest.startsWith('---')) rest = rest.slice(3).trim()
|
|
56
|
+
}
|
|
57
|
+
return rest ? `${ours}\n\n---\n\n${rest}\n` : `${ours}\n`
|
|
58
|
+
}
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
"title": "Measure the Right Work",
|
|
3
3
|
"look": "Session board: counters, an activity chart, two paired metric cards and metric groups on a dot-grid desk. Washi paper, sumi ink, rationed vermillion for rework, jade for work that landed. The brand mark on the close.",
|
|
4
4
|
"background": "#F3F0E9",
|
|
5
|
+
"dark": {
|
|
6
|
+
"background": "#1E1B18",
|
|
7
|
+
"palette": [
|
|
8
|
+
"#191614",
|
|
9
|
+
"#D8D0C7",
|
|
10
|
+
"#F2ECE4",
|
|
11
|
+
"#E0795C"
|
|
12
|
+
]
|
|
13
|
+
},
|
|
5
14
|
"palette": [
|
|
6
15
|
"#F9F6F1",
|
|
7
16
|
"#48413D",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#stage { --ground:#F9F6F1; --main:#48413D; --second:#1F1916; --accent:#C25237; color:var(--second); font-family:var(--sans, system-ui, sans-serif) }
|
|
2
2
|
#stage { --jade:#599576; --board:#F3F0E9; --dot:#DCD7CD; --tile:#FCFAF6; --hair:#DCD7CD; --mute:#7F7975; --wire:#B2ADA9; --edge:color-mix(in srgb, var(--second) 14%, transparent); --shade:color-mix(in srgb, var(--second) 7%, transparent); --soft:var(--main) }
|
|
3
|
+
#stage[data-mode="dark"] { --ground:#191614; --main:#D8D0C7; --second:#F2ECE4; --accent:#E0795C; --jade:#6FAE8B; --board:#1E1B18; --dot:#34302B; --tile:#26221F; --hair:#3A3530; --mute:#A0978F; --wire:#5E5751; --shade:rgba(0,0,0,.35) }
|
|
3
4
|
.ground { position:absolute; inset:0; background:var(--board) }
|
|
4
5
|
.art { position:absolute; inset:0; width:100%; height:100%; overflow:visible }
|
|
5
6
|
.cam { position:absolute; inset:0; transform-origin:960px 540px }
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scenes": {
|
|
3
|
+
"hook": {
|
|
4
|
+
"voice": 0.6,
|
|
5
|
+
"dur": 6.3
|
|
6
|
+
},
|
|
7
|
+
"problem": {
|
|
8
|
+
"voice": 0.6,
|
|
9
|
+
"dur": 6.3
|
|
10
|
+
},
|
|
11
|
+
"pair": {
|
|
12
|
+
"voice": 0.6,
|
|
13
|
+
"dur": 12.2
|
|
14
|
+
},
|
|
15
|
+
"groups": {
|
|
16
|
+
"voice": 0.6,
|
|
17
|
+
"dur": 7.4
|
|
18
|
+
},
|
|
19
|
+
"close": {
|
|
20
|
+
"voice": 0.6,
|
|
21
|
+
"dur": 4.1
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"scenes": {
|
|
3
|
+
"groups": {
|
|
4
|
+
"dur": 9.1,
|
|
5
|
+
"voice": 0.6
|
|
6
|
+
},
|
|
7
|
+
"hook": {
|
|
8
|
+
"voice": 0.6,
|
|
9
|
+
"dur": 6.4
|
|
10
|
+
},
|
|
11
|
+
"problem": {
|
|
12
|
+
"voice": 0.6,
|
|
13
|
+
"dur": 7.7
|
|
14
|
+
},
|
|
15
|
+
"pair": {
|
|
16
|
+
"voice": 0.6,
|
|
17
|
+
"dur": 12.2
|
|
18
|
+
},
|
|
19
|
+
"close": {
|
|
20
|
+
"voice": 0.6,
|
|
21
|
+
"dur": 5.1
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/templates/film/look.css
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#stage { --ground:#F9F6F1; --main:#48413D; --second:#1F1916; --accent:#C25237; color:var(--second); font-family:var(--sans, system-ui, sans-serif) }
|
|
2
2
|
#stage { --jade:#599576; --board:#F3F0E9; --dot:#DCD7CD; --tile:#FCFAF6; --hair:#DCD7CD; --mute:#7F7975; --wire:#B2ADA9; --edge:color-mix(in srgb, var(--second) 14%, transparent); --shade:color-mix(in srgb, var(--second) 7%, transparent); --soft:var(--main) }
|
|
3
|
+
#stage[data-mode="dark"] { --ground:#191614; --main:#D8D0C7; --second:#F2ECE4; --accent:#E0795C; --jade:#6FAE8B; --board:#1E1B18; --dot:#34302B; --tile:#26221F; --hair:#3A3530; --mute:#A0978F; --wire:#5E5751; --shade:rgba(0,0,0,.35) }
|
|
3
4
|
.ground { position:absolute; inset:0; background:var(--board) }
|
|
4
5
|
.art { position:absolute; inset:0; width:100%; height:100%; overflow:visible }
|
|
5
6
|
.cam { position:absolute; inset:0; transform-origin:960px 540px }
|