API Reference zongzi v#0.3.0

Copy Markdown

Modules

Lightweight, engine-agnostic components for SVS (Singing Voice Synthesis) editors. Preserves user edits across upstream regeneration cycles.

Intervention 结构在变基时的批量编排。

Caller 注入的只读领域上下文。

基于 NoteTriplet 的结构锚点策略。默认策略。

多候选打分的孤儿归宿策略。

结构锚策略 behaviour。与 Intervention.Declaration(语义 snapshot/resolve)正交。

Triplet anchor 结构的共享判定逻辑(NoteTriplet 与 ScoredHost 共用)。

曲线相关工具的残留入口(非对抗循环必经路径)。

实现新的曲线适配器。

Cubic Bezier curve adapter.

Catmull-Rom 曲线适配器(naive 参考实现)

一条曲线段

基于刻的控制点。

引擎契约 facade:任务只有两档——check(轻)与 render(重)。

Some helpers.

对上游已生成、且允许用户修改的局部结果所挂的修改意图。

Intervention 的 channel strategy 契约。

Domain object with score. Include notes, keys, and timing.

Timeline grid and quantization utilities. Snaps a free tick to the nearest grid line.

Domain model for pitch.

Outbound conversion operations.

Implement 12ET.

Domain models and structures related to musical notes.

General record abstraction based on tick/bar.

Generic Record compiler and binary search engine.

Entry point for duration utilities.

Tempo change event.

Linear tempo ramp segment.

Behaviour definition for tempo segments.

The simplest tempo segment — constant BPM (step).

Compiled tempo map from tempo change events.

Tick is the time unit for the SVS editor.

Domain model for time signature.

Compiled time signature map from time signature change events.

The source of truth of the note sequences, only records the relationships between them.

Local sequences view 以 focus 为中心

纯读操作且无副作用的 Timeline 的查询原语。

A module used only for recording IDs of the relationships between note sequences.

A module that declares the IDs of domain entities.

Domain model helper.

Value Object generator.

渲染切片(post-rebase 瞬态闭包)的入口命名空间。

Windowing.Strategy.window/1 的只读输入。

默认乐句分窗策略(windowing-post-rebase 默认策略)。

引擎 check/render 消费的瞬态批处理闭包(本轮「这一锅」)。

类似于 plug 管道,但不同点是直接载入函数而不是 atom 。

恒将全部 active note 收成单一的 Segment ,用于不需要 phrase cache 或兼容 UTAU 等的情况。