huashu-motion 0.5.1 → 0.6.0

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.en.md CHANGED
@@ -284,11 +284,38 @@ After the export, `om share` makes a share kit: a GIF under 10 MB (the opening p
284
284
  | `om new` · `om templates` | Start a project, from one of 12 templates |
285
285
  | `om studio` | Live preview, scene strip, direct edits, frame comments. UI in 中文 / English / Español: follows the browser, or `--lang es` / `OM_LANG=es` |
286
286
  | `om inbox --wait` · `om look` · `om done` | Agent side: take the next comment, see the spot, report back |
287
- | `om sound` · `om voice` · `om samples` | Music and effects, narration, the instrument pack |
287
+ | `om sound` · `om music` · `om voice` · `om samples` | Music and effects, the track library (arranges a real track to the film), narration, the instrument pack |
288
288
  | `om check` · `om qa` · `om still` | Before and after rendering |
289
289
  | `om render` · `om share` · `om export html` · `om fork` | Export, share kit (GIF + post), share page, new frame size |
290
290
  | `om learn` · `om undo` · `om doctor` | Experience, undo, environment check |
291
291
 
292
+ ## Score it with a real track
293
+
294
+ Bring a track you may use, or take one from the default library, and the film is cut to it instead of the other way round.
295
+
296
+ ```bash
297
+ om music # the library: default tracks (om music build downloads them once) and yours
298
+ om music add song.mp3 --mood warm,calm --name "My track"
299
+ om music use <id> my-film # copies it into the project and declares OM.music({ src })
300
+ om sound my-film # the plan: bars, lifts, joins, the ending, loudness checked on the rendered audio
301
+ ```
302
+
303
+ `om sound` reads the track's real beat grid, bar lines, lifts and ending, and arranges it to the film's length: the track's own opening, a middle that drops or repeats whole bars, and the track's own ending. Joins sit on bar lines or beats inside stable stretches, never across a lift; a candidate with a loudness jump of more than 6 dB is refused. Say where the music should lift with `OM.music({ burst, peak, landing })`: a real lift of the track is brought onto the burst or the peak when it can be, and the table says what to move in the film when it cannot. Nothing after the end of the music (a platform's spoken label) ever plays. The default library has 11 instrumental tracks, **all AI-generated** by the author, released apart from the software (release `music-v1`) under a CC0-style dedication: see `music/LICENSE.md`.
304
+
305
+ | id | mood | bpm | ending |
306
+ |---|---|---|---|
307
+ | `warm-luminance` | warm, lyrical, heartfelt | 121 | cadence |
308
+ | `forward-motion` | driving, confident, launch | 120 | fade |
309
+ | `forward-drive` | driving, energetic, fast-cut | 120 | hard stop |
310
+ | `calm-tech` | calm, precise, tech | 100 | cadence |
311
+ | `bright-step` | bright, upbeat, friendly | 118 | ring-out |
312
+ | `grand-reveal` | epic, orchestral, launch | 128 | ring-out |
313
+ | `gentle-story` | gentle, story, piano | 84 | ring-out |
314
+ | `city-groove` | groove, urban, funky | 110 | hard stop |
315
+ | `focus-minimal` | minimal, focus, explainer | 97 | hard stop |
316
+ | `playful-spark` | playful, quirky, light | 125 | hard stop |
317
+ | `wide-horizon` | wide, hopeful, vision | 93 | cadence |
318
+
292
319
  ## What's inside
293
320
 
294
321
  | | |
package/README.md CHANGED
@@ -337,13 +337,40 @@ skill最大的一块是导演方法:先读产品、找出它的气质,再选
337
337
  | `om new` · `om templates` | 新建项目,可以从12个模板起步 |
338
338
  | `om studio` | 编辑器:实时预览、场景条、直接改值、在画面上留评论。界面支持中文 / English / Español:跟随浏览器语言,或 `--lang es` / `OM_LANG=es` |
339
339
  | `om inbox --wait` · `om look` · `om done` | agent那一侧:接下一条评论、看你点的位置、回报改了什么 |
340
- | `om sound` · `om voice` · `om samples` | 配乐和音效、口播、真乐器采样包 |
340
+ | `om sound` · `om music` · `om voice` · `om samples` | 配乐和音效、曲库(按片长改编真实曲子)、口播、真乐器采样包 |
341
341
  | `om check` · `om qa` · `om still` | 渲染前检查、成片检查、任意时刻截一帧 |
342
342
  | `om render` · `om share` · `om export html` · `om fork` | 导出、分享包(GIF+发帖文案)、分享页、换画幅 |
343
343
  | `om learn` · `om undo` · `om doctor` | 经验、撤回、环境检查 |
344
344
 
345
345
  ---
346
346
 
347
+ ## 用真实曲子配乐
348
+
349
+ 自己带一首能用的曲子,或者从默认曲库里挑一首,片子按曲子改编,而不是反过来。
350
+
351
+ ```bash
352
+ om music # 曲库:默认曲目(om music build 一次性下载)和你自己的
353
+ om music add song.mp3 --mood warm,calm --name "我的曲子"
354
+ om music use <id> my-film # 复制进项目,并写好 OM.music({ src })
355
+ om sound my-film # 方案:小节、抬升、接点、结尾,响度在渲染后的音频上实测
356
+ ```
357
+
358
+ `om sound` 读出曲子真实的节拍、小节线、抬升和结尾,按片长改编:曲子自己的开头、整小节丢弃或重复的中段、曲子自己的结尾。接点落在稳定段的小节线或拍上,不跨抬升;渲染后实测有超过6 dB的非原曲响度跳变的方案会被否决。用 `OM.music({ burst, peak, landing })` 说明音乐该在哪里抬起:能做到时,曲子真实的抬升会被放到 burst 或 peak 上,做不到时表里会告诉你片子该挪哪里。曲尾之后的内容(平台的语音标识)永远不会进成片。默认曲库共11首纯音乐,**全部为AI生成**,与软件分开发布(release `music-v1`),按类似CC0的方式放弃权利,见 `music/LICENSE.md`。
359
+
360
+ | id | 情绪 | bpm | 结尾 |
361
+ |---|---|---|---|
362
+ | `warm-luminance` | warm, lyrical, heartfelt | 121 | 终止式 |
363
+ | `forward-motion` | driving, confident, launch | 120 | 渐隐 |
364
+ | `forward-drive` | driving, energetic, fast-cut | 120 | 硬停 |
365
+ | `calm-tech` | calm, precise, tech | 100 | 终止式 |
366
+ | `bright-step` | bright, upbeat, friendly | 118 | 余音 |
367
+ | `grand-reveal` | epic, orchestral, launch | 128 | 余音 |
368
+ | `gentle-story` | gentle, story, piano | 84 | 余音 |
369
+ | `city-groove` | groove, urban, funky | 110 | 硬停 |
370
+ | `focus-minimal` | minimal, focus, explainer | 97 | 硬停 |
371
+ | `playful-spark` | playful, quirky, light | 125 | 硬停 |
372
+ | `wide-horizon` | wide, hopeful, vision | 93 | 终止式 |
373
+
347
374
  ## 里面有什么
348
375
 
349
376
  | | 数量 |
package/THIRD_PARTY.md CHANGED
@@ -12,3 +12,5 @@ huashu-motion's own code and docs are MIT. These bundled pieces keep their own l
12
12
  Not under MIT: the "bean Huashu" (豆子花叔) character drawn in `runtime/clip/lib/toon.js`, and its appearance in the storytime template and demo films, is the author's cartoon likeness. It is included to demonstrate this project only and is not licensed for other uses.
13
13
 
14
14
  Rendering, stills and the preview use the Chrome (or Chromium / Edge) already installed on the machine; nothing is downloaded. `om voice` downloads the Kokoro model files from the kokoro-onnx releases and whisper.cpp models from Hugging Face on first use; they keep their own licenses and are not redistributed here.
15
+
16
+ The default music library (`music/catalog.json`, the files are release assets under the tag `music-v1`, not part of this package) is AI-generated by the author and dedicated for any use under `music/LICENSE.md`; it is not under MIT and carries no warranty.