An AI skill that turns books into animated, narrated, interactive web experiences
JavaScript ai-agentsai-educationanimationclaudeclaude-codeclaude-skillsedtecheducationinteractive-textbookscormtext-to-video
feat(skill): the picture-book template plays a room-tone bed
yzr6251bfdd5c24
diff --git a/.claude/skills/papermorph/assets/templates/picture-book/scene1.js b/.claude/skills/papermorph/assets/templates/picture-book/scene1.jsindex c241297..d875a56 100644--- a/.claude/skills/papermorph/assets/templates/picture-book/scene1.js+++ b/.claude/skills/papermorph/assets/templates/picture-book/scene1.js@@ -17,6 +17,8 @@ function scene1(p, D) {// The listen-and-find stop after the scene (chapter.html's FIND1): every thing a child might tap says its name// (audio/en/w-<word>.mp3), so list the background's people too, not only what is asked for.THINGS1 = [{ g: cat.g, word: 'cat' }, { g: dad.g, word: 'dad' }, { g: kid.g, word: 'kid' }];+ sfx('scene1', 0, 'room', .4, { loop: true }); // a bed: room tone laid again and again to the scene's end,+ // through the find stop's wait too (sound.md)sfx('scene1', .3, 'knock'); // audio/sfx/knock.mp3 (SKILL/scripts/sfx.py)const enter = clipAt('scene1', PRE1, 's02'); // when the kid's first line starts// the kid side-steps in from the left with planted feet (spStep, cast.js): whole steps (2/3 s each) that end at x 580diff --git a/.claude/skills/papermorph/scripts/new_book.py b/.claude/skills/papermorph/scripts/new_book.pyindex 1837f84..4648901 100644--- a/.claude/skills/papermorph/scripts/new_book.py+++ b/.claude/skills/papermorph/scripts/new_book.py@@ -101,7 +101,7 @@ def start(a, root, ch, site, work, content):print(f'\n{a.kind} book started: {site.relative_to(root)}/ (pilot {ch}); next:')print(f' uv run --with edge-tts python3 {S}/tts.py {narration.relative_to(root)} {A.relative_to(root)}')if a.kind == 'picture':- print(f' uv run --with numpy python3 {S}/sfx.py {(site / ch / "audio" / "sfx").relative_to(root)} knock chime # the template scene\'s knock, the find stop\'s chime')+ print(f' uv run --with numpy python3 {S}/sfx.py {(site / ch / "audio" / "sfx").relative_to(root)} knock chime room # the template scene\'s knock, the find stop\'s chime, the room-tone bed')print(f' then level.py, mouths.py, join.py in tools/{a.book}/audio.sh; bake_sets.py, scenes, bake_puppets.py')if a.kind == 'shorts':print(f' uv run --with numpy python3 {S}/sfx.py {(site / ch / "audio" / "sfx").relative_to(root)} whoosh bang tick thud')