Add no-filler tags, media CLI, and ask-before-edit iron law.
selftest / selftest (push) Canceled after 0s
selftest / selftest (push) Canceled after 0s
Default solo-lead tags and report-only filler_ratio; slim Agent docs with media CLI; require consent, git backup or plugin path, and explicit commit/push before code changes. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,16 @@
|
|||||||
|
---
|
||||||
|
description: songforge Agent 默认规则(省 token、无乱改铁律)
|
||||||
|
globs:
|
||||||
|
- "**/*"
|
||||||
|
alwaysApply: true
|
||||||
|
---
|
||||||
|
|
||||||
|
# songforge
|
||||||
|
|
||||||
|
1. **先读** `AGENTS_MIN.md`;不要默认加载整份 `AGENTS.md` / `ironlaw.py` / `qc_worker.py`。
|
||||||
|
2. 做歌流水线:`doctor_all` → `target` → 写词 → `check` → `gen` → `qc --baseline`。
|
||||||
|
3. 音频探测 / 转码 / 截取:只用 `songforge media info|convert|clip`(经 qc_python)。
|
||||||
|
4. 缺 `local.toml`、Comfy 不通、风格/歌名不清、想改模型或 QC 阈值 → **先问用户**。
|
||||||
|
5. **改代码铁律**:发现需改仓库代码时,先说明缺口与范围并**征求同意**;建议用户用 git 分支/commit/stash 备份,或新写插件/旁路少动核心;再问是否 commit、是否 push、推哪个 remote。未获许可不得改核心、不得提交/推送。用户同意收尾时再 commit+push。
|
||||||
|
6. 默认无衬音/无和声叠唱已由 tags 强制;不要手写 tags 覆盖铁律。
|
||||||
|
7. 勿提交 `.secrets/`、`config/local.toml`、`.venv/`;勿 `--force` push。
|
||||||
@@ -1,9 +1,10 @@
|
|||||||
# songforge — Agent 手册(必读)
|
# songforge — Agent 手册(全文)
|
||||||
|
|
||||||
> **任何 Agent / 自动化:做歌或改本仓前先读完本文。** 上下文不够时**重新打开本文件**,不要凭记忆改参数。
|
> **省 token:默认先读 [`AGENTS_MIN.md`](AGENTS_MIN.md)。** 只有 dig 失败、改铁律、或 MIN 不够时再读本文。
|
||||||
|
> **禁止**为「了解实现」整文件粘贴 `rules/ironlaw.py` / `tools/qc_worker.py`;用 `doctor` / `media` / `qc` / `check` 的输出代替。
|
||||||
>
|
>
|
||||||
> 人类操作细节见 [`docs/使用手册.md`](docs/使用手册.md)。算法默认见 [`config/default.toml`](config/default.toml)。
|
> 人类操作见 [`docs/使用手册.md`](docs/使用手册.md)。算法默认见 [`config/default.toml`](config/default.toml)。
|
||||||
> 若仍嵌套在 ComfyUI 大仓,踩坑长文还可对照 `user/default/workflows/生歌规则.md`;**冲突时以本仓 `default.toml` + 本文为准**。
|
> 嵌套 ComfyUI 时踩坑长文可对照 `生歌规则.md`;**冲突时以 `default.toml` + MIN/本文为准**。
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@@ -32,10 +33,20 @@
|
|||||||
| 歌词来源不明 | 用户提供正文,还是要你按 `target` 区间新写? |
|
| 歌词来源不明 | 用户提供正文,还是要你按 `target` 区间新写? |
|
||||||
| `qc` 连续 FAIL 且原因不像歌词密度 | 是重 gen、换 seed,还是先听某一版再决定? |
|
| `qc` 连续 FAIL 且原因不像歌词密度 | 是重 gen、换 seed,还是先听某一版再决定? |
|
||||||
| 要改采样 / 换模型 / 放宽 QC | **默认拒绝**;若用户坚持,先说明会破坏铁律,再确认是否真的要改 `default.toml` |
|
| 要改采样 / 换模型 / 放宽 QC | **默认拒绝**;若用户坚持,先说明会破坏铁律,再确认是否真的要改 `default.toml` |
|
||||||
|
| 现状不满足需求、要改仓库代码 | **先停手**:说明缺口与拟改范围,征求明确同意;建议 git 分支/commit/stash/tag 备份,或新写插件/旁路少动核心;再问是否 commit、是否 push、推哪个 remote |
|
||||||
| 要提交 `.secrets/`、`local.toml`、token | **拒绝**;问用户是否只推代码 |
|
| 要提交 `.secrets/`、`local.toml`、token | **拒绝**;问用户是否只推代码 |
|
||||||
| 仓库路径 / clone 位置不清 | 当前工作目录是哪?独立仓还是嵌套在 ComfyUI 里? |
|
| 仓库路径 / clone 位置不清 | 当前工作目录是哪?独立仓还是嵌套在 ComfyUI 里? |
|
||||||
| 两个远程(GitHub / Gitea)要推哪个 | 推哪个 remote?是否允许 push? |
|
| 两个远程(GitHub / Gitea)要推哪个 | 推哪个 remote?是否允许 push? |
|
||||||
|
|
||||||
|
### 改代码铁律(防意外)
|
||||||
|
|
||||||
|
Agent 做歌时若发现工具/实现不够用、**必须改代码**才能满足需求:
|
||||||
|
|
||||||
|
1. **不得默默改仓**:先用几句话说明缺口、拟改文件/层(核心 vs 插件/旁路),等用户同意。
|
||||||
|
2. **主动建议安全路径**:用 git 做备份点(新分支、commit、stash、tag),或优先「新插件 / 旁路脚本」而不是直接改铁律与 `default.toml`。
|
||||||
|
3. **提交权在用户**:改完后问是否 `commit`、是否 `push`、推哪个 remote;未许可不得提交或推送;禁止 `--force`;禁止带 secrets / `local.toml`。
|
||||||
|
4. 用户明确说「完成后 commit+push」时,再按该指示收尾。
|
||||||
|
|
||||||
可以自行处理、**不必问**的:
|
可以自行处理、**不必问**的:
|
||||||
|
|
||||||
- `check` 密度失败 → 只改歌词到 `target` 区间后重 check
|
- `check` 密度失败 → 只改歌词到 `target` 区间后重 check
|
||||||
|
|||||||
@@ -0,0 +1,68 @@
|
|||||||
|
# songforge — Agent 极简卡(默认只读这份)
|
||||||
|
|
||||||
|
> 省 token:**先读本文**。失败 / 改铁律 / 深挖时再打开 [`AGENTS.md`](AGENTS.md)。
|
||||||
|
> **禁止**把 `ironlaw.py` / `qc_worker.py` 整文件塞进上下文;用 CLI 输出代替。
|
||||||
|
|
||||||
|
## 交付
|
||||||
|
|
||||||
|
`gen` 的 run_id + flac + `qc --baseline` → **PASS**(`style_fam` / `filler_ratio` 只是弱参考)。
|
||||||
|
|
||||||
|
## 流水线
|
||||||
|
|
||||||
|
```text
|
||||||
|
doctor_all → target → 写歌词 → check → gen → qc --baseline
|
||||||
|
```
|
||||||
|
|
||||||
|
仓根:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\scripts\doctor_all.ps1
|
||||||
|
.\.venv\Scripts\python.exe songforge.py <命令>
|
||||||
|
```
|
||||||
|
|
||||||
|
## 硬锁定
|
||||||
|
|
||||||
|
| 项 | 值 |
|
||||||
|
|----|-----|
|
||||||
|
| ckpt+LoRA | `ace_step_1.5_turbo_swl_fused` + `swl_voice_best_ep257`(0.5/0.5) |
|
||||||
|
| 采样 | shift=5.5 / steps=28 / cfg=2.0 / temperature=0.68 |
|
||||||
|
| 时长 | 150–200s;8 小节器乐前奏(CLI 注入) |
|
||||||
|
| 衬音 | 默认无填充、无 backup/合唱(tags 已强制) |
|
||||||
|
|
||||||
|
本机路径:`config/local.toml`。算法:`config/default.toml`。
|
||||||
|
|
||||||
|
## 音频窄接口(勿自写脚本)
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\.venv\Scripts\python.exe songforge.py media info --file path.flac
|
||||||
|
.\.venv\Scripts\python.exe songforge.py media convert --file in.flac --to wav
|
||||||
|
.\.venv\Scripts\python.exe songforge.py media clip --file in.flac --start 12 --dur 8 --out out.wav
|
||||||
|
```
|
||||||
|
|
||||||
|
(走 `qc_python`,与 qc 同栈。)
|
||||||
|
|
||||||
|
## 遇事先问
|
||||||
|
|
||||||
|
| 情况 | 动作 |
|
||||||
|
|------|------|
|
||||||
|
| 无 local.toml / Comfy 不通 / 缺模型 | **问用户**路径与是否已启动 |
|
||||||
|
| 风格/歌名/歌词来源不清 | **问** |
|
||||||
|
| 想改采样/换模型/放宽 QC | **拒绝**,除非用户书面坚持 |
|
||||||
|
| secrets / push 哪个 remote | **问**;勿提交 `.secrets`、`local.toml` |
|
||||||
|
|
||||||
|
## 改代码铁律(防意外)
|
||||||
|
|
||||||
|
发现现状不满足需求、**需要改仓库代码**时:
|
||||||
|
|
||||||
|
1. **先停手**,说明缺口与拟改范围,**征求用户明确同意**后再动文件。
|
||||||
|
2. **建议用户选一种安全路径**(可并列问):
|
||||||
|
- git 备份:新分支 / commit / stash / tag,再改;
|
||||||
|
- 或**新写插件/旁路脚本**,少动核心铁律与默认配置。
|
||||||
|
3. **问是否 commit、是否 push、推哪个 remote**;未获许可不得提交或推送。
|
||||||
|
4. 用户同意收尾时再 `commit` +(若许可)`push`;勿擅自 `--force`、勿提交 secrets / `local.toml`。
|
||||||
|
|
||||||
|
可自行处理(不必问改代码):`check` 密度失败只改歌词;漏 `--baseline` 补上;`prune --days 7` 清 tmp。
|
||||||
|
|
||||||
|
## 样例
|
||||||
|
|
||||||
|
`input/lyrics/pop_灯还亮着.txt` + `--style pop --bpm 104 --dur 180`
|
||||||
@@ -6,11 +6,12 @@
|
|||||||
|
|
||||||
| 文档 | 给谁 | 何时读 |
|
| 文档 | 给谁 | 何时读 |
|
||||||
|------|------|--------|
|
|------|------|--------|
|
||||||
| **[`AGENTS.md`](AGENTS.md)** | **Agent / Cursor / 自动化** | **做歌或改仓前必读**(含「遇事先问」) |
|
| **[`AGENTS_MIN.md`](AGENTS_MIN.md)** | **Agent 默认入口** | **先读这份(省 token)** |
|
||||||
|
| [`AGENTS.md`](AGENTS.md) | Agent 全文 | dig 失败 / 改铁律时再读 |
|
||||||
| [`docs/使用手册.md`](docs/使用手册.md) | 人类 | 命令与配置详解 |
|
| [`docs/使用手册.md`](docs/使用手册.md) | 人类 | 命令与配置详解 |
|
||||||
| [`config/local.toml.example`](config/local.toml.example) | 所有人 | 第一次连本机 ComfyUI |
|
| [`config/local.toml.example`](config/local.toml.example) | 所有人 | 第一次连本机 ComfyUI |
|
||||||
|
|
||||||
> 给 Agent:读完 `AGENTS.md` 再动手。缺 `local.toml`、Comfy 没起、风格/歌名不清、想改模型或阈值时——**先问用户,不要猜**。
|
> 给 Agent:默认只读 `AGENTS_MIN.md`。缺 `local.toml`、Comfy 没起、风格/歌名不清、想改模型或阈值时——**先问用户**。需改代码时先征求同意,建议 git 备份或新插件旁路,并问清是否 commit/push。音频探测/转码/截取用 `songforge media`,不要读大源码。
|
||||||
|
|
||||||
## 一键体检
|
## 一键体检
|
||||||
|
|
||||||
@@ -87,6 +88,17 @@ cd songforge
|
|||||||
| 采样 | shift=5.5 / steps=28 / cfg=2.0 / temperature=0.68 |
|
| 采样 | shift=5.5 / steps=28 / cfg=2.0 / temperature=0.68 |
|
||||||
| 时长 | 完整歌 150–200 秒 |
|
| 时长 | 完整歌 150–200 秒 |
|
||||||
| 前奏 | 8 小节器乐 hook;CLI 自动注入 |
|
| 前奏 | 8 小节器乐 hook;CLI 自动注入 |
|
||||||
|
| 衬音 | 默认无填充、无 backup/合唱(`RULE_NO_FILLER`);QC 有 `filler_ratio` 弱参考 |
|
||||||
|
|
||||||
|
## 音频工具(Agent 优先用 CLI)
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
.\.venv\Scripts\python.exe songforge.py media info --file path.flac
|
||||||
|
.\.venv\Scripts\python.exe songforge.py media convert --file in.flac --to wav
|
||||||
|
.\.venv\Scripts\python.exe songforge.py media clip --file in.flac --start 12 --dur 8 --out out.wav
|
||||||
|
```
|
||||||
|
|
||||||
|
依赖 `config/local.toml` 的 `qc_python`(与 qc 同栈)。
|
||||||
|
|
||||||
## 远程(双 remote)
|
## 远程(双 remote)
|
||||||
|
|
||||||
|
|||||||
+4
-1
@@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
命令:
|
命令:
|
||||||
doctor / styles / target / check / gen / runs / show / catalog /
|
doctor / styles / target / check / gen / runs / show / catalog /
|
||||||
prune / qc / selftest
|
prune / media / qc / selftest
|
||||||
|
|
||||||
设计约束:所有业务参数来自配置/命令行,本文件不写死任何模型或采样常量。
|
设计约束:所有业务参数来自配置/命令行,本文件不写死任何模型或采样常量。
|
||||||
实现见 common / assemble / commands / selftest / qc。
|
实现见 common / assemble / commands / selftest / qc。
|
||||||
@@ -146,6 +146,9 @@ def build_parser():
|
|||||||
help="一并删除 tmp/_migrated 等非日期目录")
|
help="一并删除 tmp/_migrated 等非日期目录")
|
||||||
pr.set_defaults(func=cmds.cmd_prune)
|
pr.set_defaults(func=cmds.cmd_prune)
|
||||||
|
|
||||||
|
from .media import add_media
|
||||||
|
add_media(sub)
|
||||||
|
|
||||||
from .qc import add_qc
|
from .qc import add_qc
|
||||||
add_qc(sub)
|
add_qc(sub)
|
||||||
return p
|
return p
|
||||||
|
|||||||
+107
@@ -0,0 +1,107 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""songforge media:info / convert / clip(经 qc_python 子进程)。"""
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import subprocess
|
||||||
|
|
||||||
|
from ..config import loader
|
||||||
|
from ..core import paths as pmod
|
||||||
|
from .qc import find_qc_python
|
||||||
|
|
||||||
|
ROOT = pmod.PKG_ROOT
|
||||||
|
WORKER = os.path.join(ROOT, "tools", "media_worker.py")
|
||||||
|
|
||||||
|
|
||||||
|
def _run(job, timeout=600):
|
||||||
|
cfg = loader.load({})
|
||||||
|
py = find_qc_python(cfg)
|
||||||
|
if not py:
|
||||||
|
print("[错误] 找不到 qc_python。请在 config/local.toml 配置 paths.qc_python")
|
||||||
|
return 2, None
|
||||||
|
env = dict(os.environ)
|
||||||
|
cro = pmod.comfy_root(cfg=cfg)
|
||||||
|
env["SONGFORGE_COMFY_ROOT"] = cro
|
||||||
|
env["PYTHONIOENCODING"] = "utf-8"
|
||||||
|
cmd = [py, WORKER, json.dumps(job, ensure_ascii=False)]
|
||||||
|
try:
|
||||||
|
r = subprocess.run(cmd, capture_output=True, env=env, timeout=timeout)
|
||||||
|
except subprocess.TimeoutExpired:
|
||||||
|
print("[错误] media 超时")
|
||||||
|
return 2, None
|
||||||
|
out = r.stdout.decode("utf-8", "replace")
|
||||||
|
if "###JSON###" not in out:
|
||||||
|
print(out[-1500:])
|
||||||
|
print(r.stderr.decode("utf-8", "replace")[-1500:])
|
||||||
|
print("[错误] media_worker 无 JSON 输出")
|
||||||
|
return 2, None
|
||||||
|
blob = json.loads(out.split("###JSON###", 1)[1].strip())
|
||||||
|
if blob.get("error"):
|
||||||
|
print("[错误] %s: %s" % (blob.get("type"), blob["error"]))
|
||||||
|
return 1, blob
|
||||||
|
return 0, blob
|
||||||
|
|
||||||
|
|
||||||
|
def cmd_media_info(args):
|
||||||
|
code, blob = _run(dict(op="info", file=os.path.abspath(args.file)))
|
||||||
|
if blob and not blob.get("error"):
|
||||||
|
print(json.dumps(blob, ensure_ascii=False, indent=1))
|
||||||
|
return code
|
||||||
|
|
||||||
|
|
||||||
|
def cmd_media_convert(args):
|
||||||
|
out = args.out
|
||||||
|
if not out:
|
||||||
|
base, _ = os.path.splitext(args.file)
|
||||||
|
out = base + "." + args.to.lstrip(".")
|
||||||
|
code, blob = _run(dict(
|
||||||
|
op="convert", file=os.path.abspath(args.file),
|
||||||
|
to=args.to, out=os.path.abspath(out)))
|
||||||
|
if blob and not blob.get("error"):
|
||||||
|
print(json.dumps(blob, ensure_ascii=False, indent=1))
|
||||||
|
return code
|
||||||
|
|
||||||
|
|
||||||
|
def cmd_media_clip(args):
|
||||||
|
out = args.out
|
||||||
|
if not out:
|
||||||
|
base, ext = os.path.splitext(args.file)
|
||||||
|
out = "%s_clip%.1f%s" % (base, args.start, ext or ".wav")
|
||||||
|
job = dict(op="clip", file=os.path.abspath(args.file),
|
||||||
|
start=args.start, out=os.path.abspath(out))
|
||||||
|
if args.dur is not None:
|
||||||
|
job["dur"] = args.dur
|
||||||
|
if args.end is not None:
|
||||||
|
job["end"] = args.end
|
||||||
|
code, blob = _run(job)
|
||||||
|
if blob and not blob.get("error"):
|
||||||
|
print(json.dumps(blob, ensure_ascii=False, indent=1))
|
||||||
|
return code
|
||||||
|
|
||||||
|
|
||||||
|
def add_media(sub):
|
||||||
|
m = sub.add_parser("media", help="音频窄接口:info / convert / clip")
|
||||||
|
ms = m.add_subparsers(dest="media_cmd")
|
||||||
|
|
||||||
|
i = ms.add_parser("info", help="时长/采样率/声道/粗 BPM")
|
||||||
|
i.add_argument("--file", required=True)
|
||||||
|
i.set_defaults(func=cmd_media_info)
|
||||||
|
|
||||||
|
c = ms.add_parser("convert", help="转 wav/flac/mp3")
|
||||||
|
c.add_argument("--file", required=True)
|
||||||
|
c.add_argument("--to", required=True, choices=["wav", "flac", "mp3"])
|
||||||
|
c.add_argument("--out")
|
||||||
|
c.set_defaults(func=cmd_media_convert)
|
||||||
|
|
||||||
|
k = ms.add_parser("clip", help="按秒截取")
|
||||||
|
k.add_argument("--file", required=True)
|
||||||
|
k.add_argument("--start", type=float, default=0.0)
|
||||||
|
k.add_argument("--dur", type=float, help="时长(秒)")
|
||||||
|
k.add_argument("--end", type=float, help="结束时刻(秒),与 --dur 二选一")
|
||||||
|
k.add_argument("--out")
|
||||||
|
k.set_defaults(func=cmd_media_clip)
|
||||||
|
|
||||||
|
def _need_sub(args):
|
||||||
|
print("用法: songforge media {info,convert,clip} ...")
|
||||||
|
return 2
|
||||||
|
m.set_defaults(func=_need_sub)
|
||||||
|
return m
|
||||||
@@ -333,17 +333,19 @@ def _render(rep, args, rundir=None, cfg=None):
|
|||||||
% (lk["t0"], hit, lk.get("text", "")))
|
% (lk["t0"], hit, lk.get("text", "")))
|
||||||
|
|
||||||
print("\n== 声线 / 歌词 ==")
|
print("\n== 声线 / 歌词 ==")
|
||||||
print("%-22s %-14s %8s %7s %7s %6s %6s %7s"
|
print("%-22s %-14s %8s %7s %7s %6s %6s %6s %7s"
|
||||||
% ("file", "最近邻老歌", "NN相似", "自相似", "cov", "f0中位",
|
% ("file", "最近邻老歌", "NN相似", "自相似", "cov", "衬词%",
|
||||||
"f0漂移", "t漂移"))
|
"f0中位", "f0漂移", "t漂移"))
|
||||||
for r in rows:
|
for r in rows:
|
||||||
if "error" in r:
|
if "error" in r:
|
||||||
continue
|
continue
|
||||||
print("%-22s %-14s %8.3f %7.3f %6.1f%% %6.1f %5.1fst %6.1f%%"
|
print("%-22s %-14s %8.3f %7.3f %6.1f%% %5.0f%% %6.1f %5.1fst %6.1f%%"
|
||||||
% (r["file"][:22], (r.get("voice_nn") or "-")[:14],
|
% (r["file"][:22], (r.get("voice_nn") or "-")[:14],
|
||||||
r.get("voice_nn_sim", 0), r.get("voice_self", 0),
|
r.get("voice_nn_sim", 0), r.get("voice_self", 0),
|
||||||
r.get("coverage", 0) * 100, r.get("f0_med", 0),
|
r.get("coverage", 0) * 100, r.get("filler_ratio", 0) * 100,
|
||||||
|
r.get("f0_med", 0),
|
||||||
r.get("f0_drift_st", 0), r.get("tempo_drift", 0) * 100))
|
r.get("f0_drift_st", 0), r.get("tempo_drift", 0) * 100))
|
||||||
|
print(" (衬词%% = ASR 语气/哼唱占比,弱参考,不单独否决)")
|
||||||
|
|
||||||
print("\n== 结论 ==")
|
print("\n== 结论 ==")
|
||||||
npass = 0
|
npass = 0
|
||||||
|
|||||||
+20
-8
@@ -124,8 +124,14 @@ def _t_model_locked():
|
|||||||
def _t_ironlaw():
|
def _t_ironlaw():
|
||||||
tags = ironlaw.build_tags("Chinese pop")
|
tags = ironlaw.build_tags("Chinese pop")
|
||||||
for kw in ("swlvoice", "8 bar instrumental intro hook", "no opening vocals",
|
for kw in ("swlvoice", "8 bar instrumental intro hook", "no opening vocals",
|
||||||
"no pure vocal intro", "no humming"):
|
"no pure vocal intro", "no humming",
|
||||||
|
"solo lead vocal only", "no backing vocals",
|
||||||
|
"sing only the exact words"):
|
||||||
assert kw in tags, "tags 缺少 %s" % kw
|
assert kw in tags, "tags 缺少 %s" % kw
|
||||||
|
assert "call and response" not in tags.lower() or \
|
||||||
|
"no call and response vocals" in tags.lower(), \
|
||||||
|
"MEMO 仍鼓励 call and response 且未禁叠唱"
|
||||||
|
assert "single lead vocal hook" in tags, "缺少单人主唱 hook 描述"
|
||||||
lyrics = ironlaw.build_lyrics(
|
lyrics = ironlaw.build_lyrics(
|
||||||
[("[verse]", "第一句歌词\n第二句歌词")], "kick and snare", bars=8)
|
[("[verse]", "第一句歌词\n第二句歌词")], "kick and snare", bars=8)
|
||||||
assert lyrics.lstrip().startswith("[intro]"), "未强制器乐前奏"
|
assert lyrics.lstrip().startswith("[intro]"), "未强制器乐前奏"
|
||||||
@@ -137,7 +143,12 @@ def _t_ironlaw():
|
|||||||
# 中文结构标记必须被拦
|
# 中文结构标记必须被拦
|
||||||
marked = lyrics.replace("[verse]", "[主歌]")
|
marked = lyrics.replace("[verse]", "[主歌]")
|
||||||
assert ironlaw.check_rules(marked, tags), "中文结构标记未被拦截"
|
assert ironlaw.check_rules(marked, tags), "中文结构标记未被拦截"
|
||||||
return [("铁律注入", "8 小节器乐前奏 + 反人声条款齐备,缺前奏/中文标记均被拦")]
|
# lean 也必须带衬音硬禁
|
||||||
|
lean = ironlaw.build_tags("Chinese pop", lean=True)
|
||||||
|
for kw in ("solo lead vocal only", "no backing vocals"):
|
||||||
|
assert kw in lean, "lean tags 缺少衬音禁令 %s" % kw
|
||||||
|
return [("铁律注入",
|
||||||
|
"8 小节前奏 + 无衬音/无和声叠唱 + lean 齐备,缺前奏/中文标记均被拦")]
|
||||||
|
|
||||||
|
|
||||||
def _t_sparse_profile():
|
def _t_sparse_profile():
|
||||||
@@ -338,15 +349,16 @@ def _t_chill_delay():
|
|||||||
|
|
||||||
# 但也不能把人声彻底禁掉,否则就是纯器乐、不是吟唱。
|
# 但也不能把人声彻底禁掉,否则就是纯器乐、不是吟唱。
|
||||||
# 注意只匹配纯器乐专属的反人声条款:
|
# 注意只匹配纯器乐专属的反人声条款:
|
||||||
# - 不能用裸 "no singing":"no singing in any breakdown" 含这个子串,
|
# - 不能用裸 "no singing":"no singing in any breakdown" 含这个子串。
|
||||||
# 那是吟唱要的人声约束。
|
# - 不能用 "no backing vocal"(无 s):那是 INST_NEG;默认衬音禁令是
|
||||||
# - 不能用 "instrumental only":它来自 "intro is instrumental only",
|
# "no backing vocals"(有 s)+ "solo lead vocal only",chill 必须保留。
|
||||||
# 那是前奏必须保留的约束。
|
for kw in ("no vocals anywhere", "no voice at all", "no lead vocal,",
|
||||||
for kw in ("no vocals anywhere", "no voice at all", "no lead vocal",
|
"no backing vocal,", "this is a backing track",
|
||||||
"no backing vocal", "this is a backing track",
|
|
||||||
"drums bass synths chords and lead melodies only"):
|
"drums bass synths chords and lead melodies only"):
|
||||||
assert kw not in tags.lower(), \
|
assert kw not in tags.lower(), \
|
||||||
"chill tags 含纯器乐条款 %s,吟唱被人声禁令吞掉" % kw
|
"chill tags 含纯器乐条款 %s,吟唱被人声禁令吞掉" % kw
|
||||||
|
assert "no backing vocals" in tags.lower(), \
|
||||||
|
"chill 缺少默认无和声叠唱禁令"
|
||||||
|
|
||||||
return [("吟唱标签梯度",
|
return [("吟唱标签梯度",
|
||||||
"时机类措辞全部禁掉,密度触发词保留,"
|
"时机类措辞全部禁掉,密度触发词保留,"
|
||||||
|
|||||||
+39
-45
@@ -7,7 +7,7 @@
|
|||||||
"duration": 165,
|
"duration": 165,
|
||||||
"instruments": "hard attacking kick, crisp layered snare, tight closed hi-hats with triplet rolls, aggressive sub bass, stabbing brass hits, neon synth stabs, wide stereo hook",
|
"instruments": "hard attacking kick, crisp layered snare, tight closed hi-hats with triplet rolls, aggressive sub bass, stabbing brass hits, neon synth stabs, wide stereo hook",
|
||||||
"mood": "precise rhythmic groove, sharp and tight, punchy snares",
|
"mood": "precise rhythmic groove, sharp and tight, punchy snares",
|
||||||
"extra": "male rap with baritone tone, mid low register, controlling clean vocal tone, crisp clear pronunciation"
|
"extra": "male rap with baritone tone, mid low register, controlling clean vocal tone, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"chillhiphop": {
|
"chillhiphop": {
|
||||||
"style": "Chinese chill hiphop",
|
"style": "Chinese chill hiphop",
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
"duration": 165,
|
"duration": 165,
|
||||||
"instruments": "soft round kick, brushed hi-hat, walking bass, warm rhodes chords, mellow keys",
|
"instruments": "soft round kick, brushed hi-hat, walking bass, warm rhodes chords, mellow keys",
|
||||||
"mood": "warm relaxed groove, gentle and easy",
|
"mood": "warm relaxed groove, gentle and easy",
|
||||||
"extra": "male singing with soft baritone tone, mid low register, clean controlled vocal tone"
|
"extra": "male singing with soft baritone tone, mid low register, clean controlled vocal tone, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"partyyrap": {
|
"partyyrap": {
|
||||||
"style": "Chinese party hiphop",
|
"style": "Chinese party hiphop",
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "bright four on the floor kick, crisp snare, sixteenth hi-hats, bouncing 808 bass, synth arpeggio, brass stab",
|
"instruments": "bright four on the floor kick, crisp snare, sixteenth hi-hats, bouncing 808 bass, synth arpeggio, brass stab",
|
||||||
"mood": "explosive high energy, maximum bounce",
|
"mood": "explosive high energy, maximum bounce",
|
||||||
"extra": "male rap with baritone tone, mid low register, crisp clear pronunciation"
|
"extra": "male rap with baritone tone, mid low register, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"pop": {
|
"pop": {
|
||||||
"style": "Chinese pop",
|
"style": "Chinese pop",
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
"duration": 180,
|
"duration": 180,
|
||||||
"instruments": "tight punchy kick, crisp clap snare, modern synth bass, glossy electric piano, wide layered synths, claps",
|
"instruments": "tight punchy kick, crisp clap snare, modern synth bass, glossy electric piano, wide layered synths, claps",
|
||||||
"mood": "warm emotional groove, lifting chorus, clear contrast",
|
"mood": "warm emotional groove, lifting chorus, clear contrast",
|
||||||
"extra": "clear male singing voice, stable tone, expressive but controlled"
|
"extra": "clear male singing voice, stable tone, expressive but controlled, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"punk": {
|
"punk": {
|
||||||
"style": "Chinese punk rock",
|
"style": "Chinese punk rock",
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
"duration": 155,
|
"duration": 155,
|
||||||
"instruments": "driving distorted power chords, crashing cymbals, fast eighth note drums, punchy bass, roaring guitar riff",
|
"instruments": "driving distorted power chords, crashing cymbals, fast eighth note drums, punchy bass, roaring guitar riff",
|
||||||
"mood": "relentless high energy, aggressive and fast, shouted chorus",
|
"mood": "relentless high energy, aggressive and fast, shouted chorus",
|
||||||
"extra": "male vocal with gritty mid range, aggressive delivery, clear pronunciation"
|
"extra": "male vocal with gritty mid range, aggressive delivery, clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"funkhiphop": {
|
"funkhiphop": {
|
||||||
"style": "Chinese funky hiphop",
|
"style": "Chinese funky hiphop",
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "four on the floor kick, clapping and cowbell, walking bass, jazzy rhodes chords, funk guitar chops, brass stabs",
|
"instruments": "four on the floor kick, clapping and cowbell, walking bass, jazzy rhodes chords, funk guitar chops, brass stabs",
|
||||||
"mood": "playful bouncy groove, tight and groovy",
|
"mood": "playful bouncy groove, tight and groovy",
|
||||||
"extra": "male rap with baritone tone, mid low register, crisp clear pronunciation"
|
"extra": "male rap with baritone tone, mid low register, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"discofunk": {
|
"discofunk": {
|
||||||
"style": "Chinese disco funk",
|
"style": "Chinese disco funk",
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "four on the floor kick, handclaps and cowbell, walking bass, wah guitar, bright brass section, synth arpeggio",
|
"instruments": "four on the floor kick, handclaps and cowbell, walking bass, wah guitar, bright brass section, synth arpeggio",
|
||||||
"mood": "carefree party energy, playful and bouncy",
|
"mood": "carefree party energy, playful and bouncy",
|
||||||
"extra": "male singing with bright tone, playful delivery, clear pronunciation"
|
"extra": "male singing with bright tone, playful delivery, clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"emopunk": {
|
"emopunk": {
|
||||||
"style": "Chinese emotional punk rock",
|
"style": "Chinese emotional punk rock",
|
||||||
@@ -70,7 +70,7 @@
|
|||||||
"duration": 175,
|
"duration": 175,
|
||||||
"instruments": "clean chiming guitars, driving bass, steady rock drums, wide reverb, melodic lead line",
|
"instruments": "clean chiming guitars, driving bass, steady rock drums, wide reverb, melodic lead line",
|
||||||
"mood": "slow burning build, restrained verse and loud chorus",
|
"mood": "slow burning build, restrained verse and loud chorus",
|
||||||
"extra": "male singing with clear mid range, honest emotional delivery"
|
"extra": "male singing with clear mid range, honest emotional delivery, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"jazzhiphop": {
|
"jazzhiphop": {
|
||||||
"style": "Chinese jazz hiphop",
|
"style": "Chinese jazz hiphop",
|
||||||
@@ -79,7 +79,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "groovy electric piano, walking bass, brass accents, shuffle drums, pocket groove, tight snare",
|
"instruments": "groovy electric piano, walking bass, brass accents, shuffle drums, pocket groove, tight snare",
|
||||||
"mood": "smooth pocket groove, laid back but crisp",
|
"mood": "smooth pocket groove, laid back but crisp",
|
||||||
"extra": "male rap with baritone tone, mid low register, crisp clear pronunciation"
|
"extra": "male rap with baritone tone, mid low register, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"guofeng": {
|
"guofeng": {
|
||||||
"style": "Chinese traditional style hiphop",
|
"style": "Chinese traditional style hiphop",
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
"duration": 200,
|
"duration": 200,
|
||||||
"instruments": "erhu, pipa, bamboo flute, 808 sub bass, trap hats, traditional percussion",
|
"instruments": "erhu, pipa, bamboo flute, 808 sub bass, trap hats, traditional percussion",
|
||||||
"mood": "modern traditional fusion, cinematic and steady",
|
"mood": "modern traditional fusion, cinematic and steady",
|
||||||
"extra": "male rap with baritone tone, mid low register, clear pronunciation"
|
"extra": "male rap with baritone tone, mid low register, clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"folk": {
|
"folk": {
|
||||||
"style": "Chinese folk ballad",
|
"style": "Chinese folk ballad",
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
"duration": 175,
|
"duration": 175,
|
||||||
"instruments": "nylon string acoustic guitar fingerpicking, warm upright bass, brushed snare, subtle piano, natural room reverb",
|
"instruments": "nylon string acoustic guitar fingerpicking, warm upright bass, brushed snare, subtle piano, natural room reverb",
|
||||||
"mood": "intimate warm storytelling, gentle and honest, close mic",
|
"mood": "intimate warm storytelling, gentle and honest, close mic",
|
||||||
"extra": "male singing with warm soft tenor tone, close to microphone, gentle restrained delivery, clear pronunciation"
|
"extra": "male singing with warm soft tenor tone, close to microphone, gentle restrained delivery, clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"poppunk": {
|
"poppunk": {
|
||||||
"style": "Chinese pop punk",
|
"style": "Chinese pop punk",
|
||||||
@@ -106,7 +106,7 @@
|
|||||||
"duration": 158,
|
"duration": 158,
|
||||||
"instruments": "punchy palm muted power chords, driving bass, fast crisp drums, bright lead guitar riff, claps on chorus",
|
"instruments": "punchy palm muted power chords, driving bass, fast crisp drums, bright lead guitar riff, claps on chorus",
|
||||||
"mood": "upbeat catchy and bright, fast but singable, youthful",
|
"mood": "upbeat catchy and bright, fast but singable, youthful",
|
||||||
"extra": "male singing with clear bright tone, energetic but controlled, crisp clear pronunciation"
|
"extra": "male singing with clear bright tone, energetic but controlled, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"indie": {
|
"indie": {
|
||||||
"style": "Chinese indie pop",
|
"style": "Chinese indie pop",
|
||||||
@@ -115,7 +115,7 @@
|
|||||||
"duration": 172,
|
"duration": 172,
|
||||||
"instruments": "clean electric guitar arpeggio, analog synth pad, warm bass, real drum kit, subtle tremolo",
|
"instruments": "clean electric guitar arpeggio, analog synth pad, warm bass, real drum kit, subtle tremolo",
|
||||||
"mood": "dreamy nostalgic and warm, gently swaying",
|
"mood": "dreamy nostalgic and warm, gently swaying",
|
||||||
"extra": "male singing with soft airy tone, gentle close mic delivery, clear pronunciation"
|
"extra": "male singing with soft airy tone, gentle close mic delivery, clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"electronic": {
|
"electronic": {
|
||||||
"style": "Chinese future bass electro",
|
"style": "Chinese future bass electro",
|
||||||
@@ -124,7 +124,7 @@
|
|||||||
"duration": 168,
|
"duration": 168,
|
||||||
"instruments": "big supersaw synth lead, sidechained pad, punchy electro kick, trap snare, white noise riser, wide reverb",
|
"instruments": "big supersaw synth lead, sidechained pad, punchy electro kick, trap snare, white noise riser, wide reverb",
|
||||||
"mood": "vast emotional build, euphoric and bright, festival anthem",
|
"mood": "vast emotional build, euphoric and bright, festival anthem",
|
||||||
"extra": "male singing with clear bright tone, soaring controlled delivery, crisp clear pronunciation"
|
"extra": "male singing with clear bright tone, soaring controlled delivery, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"lofi": {
|
"lofi": {
|
||||||
"style": "Chinese chillhop lofi",
|
"style": "Chinese chillhop lofi",
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
"duration": 168,
|
"duration": 168,
|
||||||
"instruments": "dusty jazz chords, upright bass, soft rimshot, vinyl crackle, mellow rhodes, subtle swing",
|
"instruments": "dusty jazz chords, upright bass, soft rimshot, vinyl crackle, mellow rhodes, subtle swing",
|
||||||
"mood": "laid back nostalgic calm, late night quiet",
|
"mood": "laid back nostalgic calm, late night quiet",
|
||||||
"extra": "male singing with soft low tone, relaxed and close, clear pronunciation"
|
"extra": "male singing with soft low tone, relaxed and close, clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"poprap": {
|
"poprap": {
|
||||||
"_comment": "甜系中文 pop rap。tags 靠正向措辞自然带出鼓组,lean 模式不注入 RULE_NEG 那 20+ 条人声否定句。旧版 dy10_心动预警 的 lean tags 是 13 子句,本风格经 ironlaw 注入后约 43 子句。",
|
"_comment": "甜系中文 pop rap。tags 靠正向措辞自然带出鼓组,lean 模式不注入 RULE_NEG 那 20+ 条人声否定句。旧版 dy10_心动预警 的 lean tags 是 13 子句,本风格经 ironlaw 注入后约 43 子句。",
|
||||||
@@ -143,7 +143,7 @@
|
|||||||
"duration": 112,
|
"duration": 112,
|
||||||
"instruments": "bouncy kick and snare, sweet piano arpeggio, bright synth chords, hand claps, soft bass",
|
"instruments": "bouncy kick and snare, sweet piano arpeggio, bright synth chords, hand claps, soft bass",
|
||||||
"mood": "sweet and bubbly, romantic crush feeling, upbeat and cute",
|
"mood": "sweet and bubbly, romantic crush feeling, upbeat and cute",
|
||||||
"extra": "male rap with clear tone, playful delivery, light and sweet, crisp clear pronunciation"
|
"extra": "male rap with clear tone, playful delivery, light and sweet, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"poprap2": {
|
"poprap2": {
|
||||||
"_comment": "甜系 pop rap 第二首,节奏更跳一点,hook 更口语。",
|
"_comment": "甜系 pop rap 第二首,节奏更跳一点,hook 更口语。",
|
||||||
@@ -153,7 +153,7 @@
|
|||||||
"duration": 112,
|
"duration": 112,
|
||||||
"instruments": "bouncy kick and snare, sweet piano arpeggio, bright synth chords, hand claps, soft bass",
|
"instruments": "bouncy kick and snare, sweet piano arpeggio, bright synth chords, hand claps, soft bass",
|
||||||
"mood": "sweet and playful, cheeky and cute, upbeat and light",
|
"mood": "sweet and playful, cheeky and cute, upbeat and light",
|
||||||
"extra": "male rap with clear tone, playful delivery, light and sweet, crisp clear pronunciation"
|
"extra": "male rap with clear tone, playful delivery, light and sweet, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"poprap3": {
|
"poprap3": {
|
||||||
"_comment": "甜系 pop rap 第三首,稍抒情一点,副歌更开阔。",
|
"_comment": "甜系 pop rap 第三首,稍抒情一点,副歌更开阔。",
|
||||||
@@ -163,7 +163,7 @@
|
|||||||
"duration": 112,
|
"duration": 112,
|
||||||
"instruments": "bouncy kick and snare, sweet piano arpeggio, bright synth chords, hand claps, soft bass",
|
"instruments": "bouncy kick and snare, sweet piano arpeggio, bright synth chords, hand claps, soft bass",
|
||||||
"mood": "sweet and warm, gentle crush feeling, bright and hopeful",
|
"mood": "sweet and warm, gentle crush feeling, bright and hopeful",
|
||||||
"extra": "male rap with clear tone, warm delivery, light and sweet, crisp clear pronunciation"
|
"extra": "male rap with clear tone, warm delivery, light and sweet, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"funkdance": {
|
"funkdance": {
|
||||||
"_comment": "街舞编舞导向 funk。动作引导词写进 instruments 与 extra:downbeat 停顿、popping 咬点、groove 起伏。lean 模式使用,正向措辞。",
|
"_comment": "街舞编舞导向 funk。动作引导词写进 instruments 与 extra:downbeat 停顿、popping 咬点、groove 起伏。lean 模式使用,正向措辞。",
|
||||||
@@ -173,7 +173,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "punchy four on the floor kick, dry crisp snare, tight closed hi-hats, short slap bass, clavinet stabs, wah guitar, tambourine, hand claps",
|
"instruments": "punchy four on the floor kick, dry crisp snare, tight closed hi-hats, short slap bass, clavinet stabs, wah guitar, tambourine, hand claps",
|
||||||
"mood": "bouncy playful groove, clear strong downbeat accents, light and easy groove, danceable pocket",
|
"mood": "bouncy playful groove, clear strong downbeat accents, light and easy groove, danceable pocket",
|
||||||
"extra": "male singing with clear warm tone, playful rhythmic delivery, crisp clear pronunciation, short punchy phrases on the downbeat"
|
"extra": "male singing with clear warm tone, playful rhythmic delivery, crisp clear pronunciation, short punchy phrases on the downbeat, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"funkdance2": {
|
"funkdance2": {
|
||||||
"_comment": "funk 第二首:更跳更复古,James Brown 式的连续十六分贝斯线。",
|
"_comment": "funk 第二首:更跳更复古,James Brown 式的连续十六分贝斯线。",
|
||||||
@@ -183,7 +183,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "hard four on the floor kick, crisp rimshot snare, tight hi-hats with sixteenth rolls, deep elastic bass, clavinet short stabs, brass stab accents, tambourine",
|
"instruments": "hard four on the floor kick, crisp rimshot snare, tight hi-hats with sixteenth rolls, deep elastic bass, clavinet short stabs, brass stab accents, tambourine",
|
||||||
"mood": "explosive vintage groove, punchy and driving, playful rhythmic stop and start",
|
"mood": "explosive vintage groove, punchy and driving, playful rhythmic stop and start",
|
||||||
"extra": "male rap with warm clear tone, playful delivery, crisp clear pronunciation, short punchy phrases"
|
"extra": "male rap with warm clear tone, playful delivery, crisp clear pronunciation, short punchy phrases, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"funkdance3": {
|
"funkdance3": {
|
||||||
"_comment": "funk 第三首:中速偏 chill,适合 isolations 编排,律动留白多。",
|
"_comment": "funk 第三首:中速偏 chill,适合 isolations 编排,律动留白多。",
|
||||||
@@ -193,7 +193,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "round punchy kick, brushed snare, soft closed hi-hats, round walking bass, jazzy rhodes chords, muted trumpet accents, light tambourine",
|
"instruments": "round punchy kick, brushed snare, soft closed hi-hats, round walking bass, jazzy rhodes chords, muted trumpet accents, light tambourine",
|
||||||
"mood": "smooth pocket groove, laid back and warm, gentle swing, easy going bounce",
|
"mood": "smooth pocket groove, laid back and warm, gentle swing, easy going bounce",
|
||||||
"extra": "male singing with soft clear tone, warm relaxed delivery, crisp clear pronunciation"
|
"extra": "male singing with soft clear tone, warm relaxed delivery, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"funkdance4": {
|
"funkdance4": {
|
||||||
"_comment": "funk 第四首:明快大调,适合 waacking / locking 快速手臂与定点。",
|
"_comment": "funk 第四首:明快大调,适合 waacking / locking 快速手臂与定点。",
|
||||||
@@ -203,7 +203,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "bright four on the floor kick, crisp clap snare, tight hi-hats, elastic slap bass, clavi short stabs, bright brass accents, hand claps",
|
"instruments": "bright four on the floor kick, crisp clap snare, tight hi-hats, elastic slap bass, clavi short stabs, bright brass accents, hand claps",
|
||||||
"mood": "bright cheerful groove, fast playful accents, crisp and clean, dance floor ready",
|
"mood": "bright cheerful groove, fast playful accents, crisp and clean, dance floor ready",
|
||||||
"extra": "male singing with bright clear tone, energetic playful delivery, crisp clear pronunciation, short punchy phrases"
|
"extra": "male singing with bright clear tone, energetic playful delivery, crisp clear pronunciation, short punchy phrases, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"funkdance5": {
|
"funkdance5": {
|
||||||
"_comment": "funk 第五首:带一点 trap 底鼓的现代 funk,hook 更抓耳,适合编舞短视频。",
|
"_comment": "funk 第五首:带一点 trap 底鼓的现代 funk,hook 更抓耳,适合编舞短视频。",
|
||||||
@@ -213,7 +213,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "hard four on the floor kick, layered crisp snare, tight closed hi-hats, deep sub and elastic bass, clavinet stabs, wah guitar short hits, hand claps",
|
"instruments": "hard four on the floor kick, layered crisp snare, tight closed hi-hats, deep sub and elastic bass, clavinet stabs, wah guitar short hits, hand claps",
|
||||||
"mood": "heavy on the downbeat, dark warm groove, catchy stop and start pocket, confident bounce",
|
"mood": "heavy on the downbeat, dark warm groove, catchy stop and start pocket, confident bounce",
|
||||||
"extra": "male singing with clear low tone, confident rhythmic delivery, crisp clear pronunciation, short punchy phrases on the downbeat"
|
"extra": "male singing with clear low tone, confident rhythmic delivery, crisp clear pronunciation, short punchy phrases on the downbeat, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"vocalchill": {
|
"vocalchill": {
|
||||||
"_comment": "第三张专辑用:英文低声吟唱/哼唱,突出音乐本身,接近 Avicii 那种大编制 EDM + 克制人声。",
|
"_comment": "第三张专辑用:英文低声吟唱/哼唱,突出音乐本身,接近 Avicii 那种大编制 EDM + 克制人声。",
|
||||||
@@ -223,7 +223,7 @@
|
|||||||
"duration": 175,
|
"duration": 175,
|
||||||
"instruments": "punchy electro kick, deep sub bass and walking bass, crisp clap, trap snare, huge supersaw lead, sidechain compressed pad, white noise riser, big reverb, melodic drop",
|
"instruments": "punchy electro kick, deep sub bass and walking bass, crisp clap, trap snare, huge supersaw lead, sidechain compressed pad, white noise riser, big reverb, melodic drop",
|
||||||
"mood": "vast uplifting emotional EDM, instrumental section showcase, euphoria then release",
|
"mood": "vast uplifting emotional EDM, instrumental section showcase, euphoria then release",
|
||||||
"extra": "male low whisper vocal, hushed and intimate, sparse English words, mostly instrumental between phrases, no belting, no big singing"
|
"extra": "male low whisper vocal, hushed and intimate, sparse English words, mostly instrumental between phrases, no belting, no big singing, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"_comment_cuckoo": "===== cuckoo 编舞批次(2026-10-05)=====",
|
"_comment_cuckoo": "===== cuckoo 编舞批次(2026-10-05)=====",
|
||||||
"ckfunk": {
|
"ckfunk": {
|
||||||
@@ -234,7 +234,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "heavy four on the floor kick on beat one, dry crisp snare with ghost notes on every sixteenth, tight closed hi-hats accenting the offbeats, short slap bass with thumb pops and octave jumps, clavinet chicken scratch stabs, wah guitar short chops, tambourine and hand claps",
|
"instruments": "heavy four on the floor kick on beat one, dry crisp snare with ghost notes on every sixteenth, tight closed hi-hats accenting the offbeats, short slap bass with thumb pops and octave jumps, clavinet chicken scratch stabs, wah guitar short chops, tambourine and hand claps",
|
||||||
"mood": "bouncy playful groove, clear strong downbeat accents, stop and start pocket, light and easy, danceable",
|
"mood": "bouncy playful groove, clear strong downbeat accents, stop and start pocket, light and easy, danceable",
|
||||||
"extra": "male singing with clear warm tone, playful rhythmic delivery, crisp clear pronunciation, short punchy phrases landing on the downbeat"
|
"extra": "male singing with clear warm tone, playful rhythmic delivery, crisp clear pronunciation, short punchy phrases landing on the downbeat, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"ckfunkretro": {
|
"ckfunkretro": {
|
||||||
"_comment": "中文 112 复古档。十六分音符滚奏 hi-hat + rimshot,James Brown 式连续贝斯线,适合大开大合的 frame。",
|
"_comment": "中文 112 复古档。十六分音符滚奏 hi-hat + rimshot,James Brown 式连续贝斯线,适合大开大合的 frame。",
|
||||||
@@ -244,7 +244,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "hard four on the floor kick, crisp rimshot snare, tight hi-hats with sixteenth rolls, deep elastic slap bass line, clavinet short stabs, brass stab accents on the offbeat, tambourine",
|
"instruments": "hard four on the floor kick, crisp rimshot snare, tight hi-hats with sixteenth rolls, deep elastic slap bass line, clavinet short stabs, brass stab accents on the offbeat, tambourine",
|
||||||
"mood": "explosive vintage groove, punchy and driving, playful rhythmic stop and start",
|
"mood": "explosive vintage groove, punchy and driving, playful rhythmic stop and start",
|
||||||
"extra": "male singing with warm clear tone, playful delivery, crisp clear pronunciation, short punchy phrases"
|
"extra": "male singing with warm clear tone, playful delivery, crisp clear pronunciation, short punchy phrases, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"ckchillfunk": {
|
"ckchillfunk": {
|
||||||
"_comment": "中文 98 chill 档。留白多、摆动大,适合 isolations 编排和慢速数拍教学,对应《两难》那种慢速解析路线。",
|
"_comment": "中文 98 chill 档。留白多、摆动大,适合 isolations 编排和慢速数拍教学,对应《两难》那种慢速解析路线。",
|
||||||
@@ -254,7 +254,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "round punchy kick, brushed snare, soft closed hi-hats, round walking bass, jazzy rhodes chords, muted trumpet accents, light tambourine, gentle swing",
|
"instruments": "round punchy kick, brushed snare, soft closed hi-hats, round walking bass, jazzy rhodes chords, muted trumpet accents, light tambourine, gentle swing",
|
||||||
"mood": "smooth pocket groove, laid back and warm, gentle swing, easy going bounce",
|
"mood": "smooth pocket groove, laid back and warm, gentle swing, easy going bounce",
|
||||||
"extra": "male singing with soft clear tone, warm relaxed delivery, crisp clear pronunciation"
|
"extra": "male singing with soft clear tone, warm relaxed delivery, crisp clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"cktrapfunk": {
|
"cktrapfunk": {
|
||||||
"_comment": "中文 122 快速档。trap 底鼓 + funk 十六分,体感按 half-time 走,适合抖音短视频卡点快闪。",
|
"_comment": "中文 122 快速档。trap 底鼓 + funk 十六分,体感按 half-time 走,适合抖音短视频卡点快闪。",
|
||||||
@@ -264,7 +264,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "hard four on the floor kick hitting on every single beat, layered crisp snare, tight closed hi-hats, deep sub bass and elastic bass pumping on every beat, clavinet short stabs, wah guitar short hits, hand claps, half time feel",
|
"instruments": "hard four on the floor kick hitting on every single beat, layered crisp snare, tight closed hi-hats, deep sub bass and elastic bass pumping on every beat, clavinet short stabs, wah guitar short hits, hand claps, half time feel",
|
||||||
"mood": "heavy on the downbeat, dark warm groove, catchy stop and start pocket, confident bounce",
|
"mood": "heavy on the downbeat, dark warm groove, catchy stop and start pocket, confident bounce",
|
||||||
"extra": "male singing with clear low tone, confident rhythmic delivery, crisp clear pronunciation, short punchy phrases on the downbeat"
|
"extra": "male singing with clear low tone, confident rhythmic delivery, crisp clear pronunciation, short punchy phrases on the downbeat, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"ckfunken": {
|
"ckfunken": {
|
||||||
"_comment": "英文 110 主体档。同 ckfunk 的鼓组,英文咬字需要更松的元音,所以 extra 写 melismatic 一点点、phrasing 更 swing。",
|
"_comment": "英文 110 主体档。同 ckfunk 的鼓组,英文咬字需要更松的元音,所以 extra 写 melismatic 一点点、phrasing 更 swing。",
|
||||||
@@ -274,7 +274,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "heavy four on the floor kick hitting on every single beat, dry crisp snare with ghost notes, tight closed hi-hats accenting the offbeats, short slap bass with thumb pops pumping on every beat, clavinet chicken scratch stabs, wah guitar chops, tambourine and hand claps",
|
"instruments": "heavy four on the floor kick hitting on every single beat, dry crisp snare with ghost notes, tight closed hi-hats accenting the offbeats, short slap bass with thumb pops pumping on every beat, clavinet chicken scratch stabs, wah guitar chops, tambourine and hand claps",
|
||||||
"mood": "bouncy playful groove, clear strong downbeat accents, stop and start pocket, danceable",
|
"mood": "bouncy playful groove, clear strong downbeat accents, stop and start pocket, danceable",
|
||||||
"extra": "male singing with clear warm tone, playful rhythmic phrasing, crisp clear English pronunciation, short punchy phrases landing on the downbeat"
|
"extra": "male singing with clear warm tone, playful rhythmic phrasing, crisp clear English pronunciation, short punchy phrases landing on the downbeat, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"ckfunkdisco": {
|
"ckfunkdisco": {
|
||||||
"_comment": "英文 118 复古 disco 档。对应《Talk Dirty》那种快卡点,brass stab 更亮,十六分更密。",
|
"_comment": "英文 118 复古 disco 档。对应《Talk Dirty》那种快卡点,brass stab 更亮,十六分更密。",
|
||||||
@@ -284,7 +284,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "bright four on the floor kick, crisp clap snare, tight hi-hats with sixteenth rolls, elastic slap bass, clavi short stabs, bright brass stab accents, hand claps",
|
"instruments": "bright four on the floor kick, crisp clap snare, tight hi-hats with sixteenth rolls, elastic slap bass, clavi short stabs, bright brass stab accents, hand claps",
|
||||||
"mood": "bright cheerful groove, fast playful accents, crisp and clean, dance floor ready",
|
"mood": "bright cheerful groove, fast playful accents, crisp and clean, dance floor ready",
|
||||||
"extra": "male singing with bright clear tone, energetic playful delivery, crisp clear English pronunciation, short punchy phrases"
|
"extra": "male singing with bright clear tone, energetic playful delivery, crisp clear English pronunciation, short punchy phrases, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"ckrbslow": {
|
"ckrbslow": {
|
||||||
"_comment": "英文 96 slow R&B 档。对应《想想念念》《还是会想你》那条抒情编舞线:isolations、延伸细腻动作、情绪拉满。",
|
"_comment": "英文 96 slow R&B 档。对应《想想念念》《还是会想你》那条抒情编舞线:isolations、延伸细腻动作、情绪拉满。",
|
||||||
@@ -294,7 +294,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "round punchy kick, brushed snare, soft closed hi-hats, round walking bass, warm rhodes chords, muted trumpet accents, light tambourine, gentle swing",
|
"instruments": "round punchy kick, brushed snare, soft closed hi-hats, round walking bass, warm rhodes chords, muted trumpet accents, light tambourine, gentle swing",
|
||||||
"mood": "smooth warm pocket groove, laid back and tender, gentle swing, emotional and easy going",
|
"mood": "smooth warm pocket groove, laid back and tender, gentle swing, emotional and easy going",
|
||||||
"extra": "male singing with soft warm tone, tender relaxed delivery, crisp clear English pronunciation, smooth legato phrasing"
|
"extra": "male singing with soft warm tone, tender relaxed delivery, crisp clear English pronunciation, smooth legato phrasing, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"cktrapfunken": {
|
"cktrapfunken": {
|
||||||
"_comment": "英文 124 快速档。trap 底鼓 + funk 十六分,体感 half-time,适合快手 waacking 和定点。",
|
"_comment": "英文 124 快速档。trap 底鼓 + funk 十六分,体感 half-time,适合快手 waacking 和定点。",
|
||||||
@@ -304,7 +304,7 @@
|
|||||||
"duration": 160,
|
"duration": 160,
|
||||||
"instruments": "hard four on the floor kick hitting on every single beat, layered crisp snare, tight closed hi-hats, deep sub bass and elastic bass pumping on every beat, clavinet short stabs, wah guitar short hits, hand claps, half time feel",
|
"instruments": "hard four on the floor kick hitting on every single beat, layered crisp snare, tight closed hi-hats, deep sub bass and elastic bass pumping on every beat, clavinet short stabs, wah guitar short hits, hand claps, half time feel",
|
||||||
"mood": "heavy on the downbeat, dark confident groove, catchy stop and start pocket, fast bounce",
|
"mood": "heavy on the downbeat, dark confident groove, catchy stop and start pocket, fast bounce",
|
||||||
"extra": "male singing with clear low tone, confident rhythmic delivery, crisp clear English pronunciation, short punchy phrases on the downbeat"
|
"extra": "male singing with clear low tone, confident rhythmic delivery, crisp clear English pronunciation, short punchy phrases on the downbeat, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"_comment_birthday": "===== 一棠生日·术力口三版(2026-10-05)=====",
|
"_comment_birthday": "===== 一棠生日·术力口三版(2026-10-05)=====",
|
||||||
"vocaloid_fb": {
|
"vocaloid_fb": {
|
||||||
@@ -315,7 +315,7 @@
|
|||||||
"duration": 118,
|
"duration": 118,
|
||||||
"instruments": "four on the floor kick, bright snare rolls, fast sixteenth note hi-hats, bouncy synth bass, glittery arpeggio, supersaw lead, xylophone-like bell melody, hand claps, cute chiptune accents",
|
"instruments": "four on the floor kick, bright snare rolls, fast sixteenth note hi-hats, bouncy synth bass, glittery arpeggio, supersaw lead, xylophone-like bell melody, hand claps, cute chiptune accents",
|
||||||
"mood": "bright and hyper cute, happy birthday celebration, energetic and bouncy, youthful 10s vibe, sparkling and uplifting",
|
"mood": "bright and hyper cute, happy birthday celebration, energetic and bouncy, youthful 10s vibe, sparkling and uplifting",
|
||||||
"extra": "cute high pitched female singing voice, Vocaloid style vocal, bright girlish tone, clear Japanese and Mandarin pronunciation, cheerful energetic delivery, catchy melodic phrases"
|
"extra": "cute high pitched female singing voice, Vocaloid style vocal, bright girlish tone, clear Japanese and Mandarin pronunciation, cheerful energetic delivery, catchy melodic phrases, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"vocaloid_euro": {
|
"vocaloid_euro": {
|
||||||
"_comment": "术力口生日 V2:日系 Eurobeat / 高速蹦迪感,副歌洗脑。lean 模式使用,中日双语。",
|
"_comment": "术力口生日 V2:日系 Eurobeat / 高速蹦迪感,副歌洗脑。lean 模式使用,中日双语。",
|
||||||
@@ -325,7 +325,7 @@
|
|||||||
"duration": 118,
|
"duration": 118,
|
||||||
"instruments": "fast four on the floor kick, powerful snare, rolling sixteenth hi-hats, driving synth bass, bright brass stabs, retro synth lead, piano staccato, tambourine, hand claps on every beat",
|
"instruments": "fast four on the floor kick, powerful snare, rolling sixteenth hi-hats, driving synth bass, bright brass stabs, retro synth lead, piano staccato, tambourine, hand claps on every beat",
|
||||||
"mood": "explosive high energy, happy party feeling, catchy singalong chorus, upbeat and joyful, celebratory dance floor vibe",
|
"mood": "explosive high energy, happy party feeling, catchy singalong chorus, upbeat and joyful, celebratory dance floor vibe",
|
||||||
"extra": "bright powerful female singing voice, clear energetic tone, Japanese and Mandarin bilingual vocals, strong catchy chorus, upbeat rhythmic delivery"
|
"extra": "bright powerful female singing voice, clear energetic tone, Japanese and Mandarin bilingual vocals, strong catchy chorus, upbeat rhythmic delivery, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"vocaloid_jpop": {
|
"vocaloid_jpop": {
|
||||||
"_comment": "术力口生日 V3:稍抒情 J-pop,旋律好听,适合全家一起唱。lean 模式使用,中日双语。",
|
"_comment": "术力口生日 V3:稍抒情 J-pop,旋律好听,适合全家一起唱。lean 模式使用,中日双语。",
|
||||||
@@ -335,7 +335,7 @@
|
|||||||
"duration": 122,
|
"duration": 122,
|
||||||
"instruments": "warm acoustic guitar strumming, gentle piano arpeggio, soft kick and snare, warm bass, strings pad, glockenspiel melody, light tambourine, warm brass accents on chorus",
|
"instruments": "warm acoustic guitar strumming, gentle piano arpeggio, soft kick and snare, warm bass, strings pad, glockenspiel melody, light tambourine, warm brass accents on chorus",
|
||||||
"mood": "warm heartfelt emotion, gentle and sincere, uplifting chorus, sweet birthday blessing, family friendly and touching",
|
"mood": "warm heartfelt emotion, gentle and sincere, uplifting chorus, sweet birthday blessing, family friendly and touching",
|
||||||
"extra": "warm clear female singing voice, sweet gentle tone, Japanese and Mandarin bilingual vocals, emotional but controlled delivery, clear pronunciation, singalong melody"
|
"extra": "warm clear female singing voice, sweet gentle tone, Japanese and Mandarin bilingual vocals, emotional but controlled delivery, clear pronunciation, singalong melody, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"_comment_insomnia": "===== 失眠三部曲(2026-10-06)=====",
|
"_comment_insomnia": "===== 失眠三部曲(2026-10-06)=====",
|
||||||
"insomnia1_rnb": {
|
"insomnia1_rnb": {
|
||||||
@@ -346,7 +346,7 @@
|
|||||||
"duration": 175,
|
"duration": 175,
|
||||||
"instruments": "soft deep sub bass on every beat, gentle rim click rhythm, warm piano arpeggios, atmospheric synth pad, subtle vinyl crackle, spacious reverb, slow grooving",
|
"instruments": "soft deep sub bass on every beat, gentle rim click rhythm, warm piano arpeggios, atmospheric synth pad, subtle vinyl crackle, spacious reverb, slow grooving",
|
||||||
"mood": "late night quiet, lonely and introspective, empty room echo, gentle melancholy, slow burning emotion",
|
"mood": "late night quiet, lonely and introspective, empty room echo, gentle melancholy, slow burning emotion",
|
||||||
"extra": "male singing with soft youthful tone, mid low register, intimate close mic delivery, breathy and fragile, gentle restrained emotion, clear pronunciation, no belting, no high notes"
|
"extra": "male singing with soft youthful tone, mid low register, intimate close mic delivery, breathy and fragile, gentle restrained emotion, clear pronunciation, no belting, no high notes, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"insomnia2_emo": {
|
"insomnia2_emo": {
|
||||||
"_comment": "失眠三部曲 2/3《旧号码》:Emo R&B 慢板,情绪最低点。钢琴为主,弦乐铺底,鼓点极度克制。shift=5.0 贴中低音脆弱感。",
|
"_comment": "失眠三部曲 2/3《旧号码》:Emo R&B 慢板,情绪最低点。钢琴为主,弦乐铺底,鼓点极度克制。shift=5.0 贴中低音脆弱感。",
|
||||||
@@ -356,7 +356,7 @@
|
|||||||
"duration": 200,
|
"duration": 200,
|
||||||
"instruments": "slow piano chords, deep sub bass on every beat, soft string pad, minimal brushed snare, spacious reverb, ambient texture",
|
"instruments": "slow piano chords, deep sub bass on every beat, soft string pad, minimal brushed snare, spacious reverb, ambient texture",
|
||||||
"mood": "deep sadness, heartbroken and tender, quiet crying feeling, restrained verse and emotional chorus, intimate vulnerability",
|
"mood": "deep sadness, heartbroken and tender, quiet crying feeling, restrained verse and emotional chorus, intimate vulnerability",
|
||||||
"extra": "male singing with soft fragile youthful tone, mid low register, intimate close mic, breathy delivery, trembling vulnerable emotion, gentle crying tone, no belting, no high notes, clear pronunciation"
|
"extra": "male singing with soft fragile youthful tone, mid low register, intimate close mic, breathy delivery, trembling vulnerable emotion, gentle crying tone, no belting, no high notes, clear pronunciation, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"insomnia3_folk": {
|
"insomnia3_folk": {
|
||||||
"_comment": "失眠三部曲 3/3《天又亮了》:民谣 R&B,清晨麻木的温柔。木吉他 + 轻拍军鼓,情绪是'熬过去了'的平静。shift=5.0。时长 200s 给叙事留呼吸。",
|
"_comment": "失眠三部曲 3/3《天又亮了》:民谣 R&B,清晨麻木的温柔。木吉他 + 轻拍军鼓,情绪是'熬过去了'的平静。shift=5.0。时长 200s 给叙事留呼吸。",
|
||||||
@@ -366,7 +366,7 @@
|
|||||||
"duration": 200,
|
"duration": 200,
|
||||||
"instruments": "warm acoustic guitar fingerpicking, soft sub bass on every beat, brushed snare, gentle synth pad, light tambourine, natural room reverb, morning ambient feel",
|
"instruments": "warm acoustic guitar fingerpicking, soft sub bass on every beat, brushed snare, gentle synth pad, light tambourine, natural room reverb, morning ambient feel",
|
||||||
"mood": "calm resignation, gentle acceptance, quiet hope, numb but soft, morning after a long night, bittersweet warmth",
|
"mood": "calm resignation, gentle acceptance, quiet hope, numb but soft, morning after a long night, bittersweet warmth",
|
||||||
"extra": "male singing with soft warm youthful tone, mid low register, gentle honest delivery, intimate close mic, restrained emotion, clear pronunciation, no belting, no high notes"
|
"extra": "male singing with soft warm youthful tone, mid low register, gentle honest delivery, intimate close mic, restrained emotion, clear pronunciation, no belting, no high notes, solo lead vocal only, no backup vocals, no choir"
|
||||||
},
|
},
|
||||||
"_comment_edm": "===== 甜嗓电音三部曲(2026-10-06)中 + 英 =====",
|
"_comment_edm": "===== 甜嗓电音三部曲(2026-10-06)中 + 英 =====",
|
||||||
"edm1_chudian": {
|
"edm1_chudian": {
|
||||||
@@ -480,7 +480,6 @@
|
|||||||
"mood": "nervous anticipation, tender vulnerability, night before confession, sleepless and lovesick, sweet anxiety, hopeful but scared, emotional climax, heartfelt",
|
"mood": "nervous anticipation, tender vulnerability, night before confession, sleepless and lovesick, sweet anxiety, hopeful but scared, emotional climax, heartfelt",
|
||||||
"extra": "male singing with sweet tender youthful tone, mid register, emotional delivery, clear pronunciation, building from soft verse to emotional chorus, breathy verses, heartfelt chorus, gentle falsetto touches, modern synth pop vocal, The Weeknd ballad style, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
"extra": "male singing with sweet tender youthful tone, mid register, emotional delivery, clear pronunciation, building from soft verse to emotional chorus, breathy verses, heartfelt chorus, gentle falsetto touches, modern synth pop vocal, The Weeknd ballad style, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
||||||
},
|
},
|
||||||
|
|
||||||
"moto_yehang": {
|
"moto_yehang": {
|
||||||
"_comment": "夜航摩托车版:引擎轰鸣 + synthwave 飞驰感。BPM 145,D major。shift=5.2。摩托车公路飞驰。",
|
"_comment": "夜航摩托车版:引擎轰鸣 + synthwave 飞驰感。BPM 145,D major。shift=5.2。摩托车公路飞驰。",
|
||||||
"style": "synthwave rock pop, motorcycle highway driving, energetic electronic rock",
|
"style": "synthwave rock pop, motorcycle highway driving, energetic electronic rock",
|
||||||
@@ -491,7 +490,6 @@
|
|||||||
"mood": "euphoric freedom, motorcycle highway adrenaline, wind in face, big emotional chorus, uplifting release, triumphant feeling, night ride energy, dance floor ready, retro 80s meets modern pop",
|
"mood": "euphoric freedom, motorcycle highway adrenaline, wind in face, big emotional chorus, uplifting release, triumphant feeling, night ride energy, dance floor ready, retro 80s meets modern pop",
|
||||||
"extra": "male singing with bright powerful youthful tone, mid high register, energetic belting on chorus, clear pronunciation, big catchy hooks, modern pop EDM vocal style, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
"extra": "male singing with bright powerful youthful tone, mid high register, energetic belting on chorus, clear pronunciation, big catchy hooks, modern pop EDM vocal style, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
||||||
},
|
},
|
||||||
|
|
||||||
"edm3_yehang_vox": {
|
"edm3_yehang_vox": {
|
||||||
"_comment": "夜航声线优先版:降BPM到128、C大调、中低音区,最大限度还原参考声线。shift=4.0。",
|
"_comment": "夜航声线优先版:降BPM到128、C大调、中低音区,最大限度还原参考声线。shift=4.0。",
|
||||||
"style": "synthwave pop, night drive electronic pop, mid tempo EDM pop",
|
"style": "synthwave pop, night drive electronic pop, mid tempo EDM pop",
|
||||||
@@ -502,7 +500,6 @@
|
|||||||
"mood": "euphoric freedom, night drive feeling, wind in hair, emotional release, uplifting but intimate, nostalgic synthwave vibe, warm energy, modern pop sensibility",
|
"mood": "euphoric freedom, night drive feeling, wind in hair, emotional release, uplifting but intimate, nostalgic synthwave vibe, warm energy, modern pop sensibility",
|
||||||
"extra": "male singing with natural youthful tone, mid register, conversational delivery, clear pronunciation, melodic chorus, preserve exact voice timbre and color, true to reference voice, natural breathing, smooth phrasing, no belting, no screaming, no vocal acrobatics, stay in natural vocal range, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
"extra": "male singing with natural youthful tone, mid register, conversational delivery, clear pronunciation, melodic chorus, preserve exact voice timbre and color, true to reference voice, natural breathing, smooth phrasing, no belting, no screaming, no vocal acrobatics, stay in natural vocal range, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
||||||
},
|
},
|
||||||
|
|
||||||
"edm6_neon_vox": {
|
"edm6_neon_vox": {
|
||||||
"_comment": "Neon Drive声线优先版:降BPM到128、C大调、中低音区,英文演唱最大限度还原参考声线。shift=4.0。",
|
"_comment": "Neon Drive声线优先版:降BPM到128、C大调、中低音区,英文演唱最大限度还原参考声线。shift=4.0。",
|
||||||
"style": "synthwave pop, neon night drive electronic pop, mid tempo EDM pop",
|
"style": "synthwave pop, neon night drive electronic pop, mid tempo EDM pop",
|
||||||
@@ -513,7 +510,6 @@
|
|||||||
"mood": "euphoric freedom, neon night drive feeling, city lights, emotional release, uplifting but intimate, nostalgic synthwave vibe, warm energy, modern pop sensibility",
|
"mood": "euphoric freedom, neon night drive feeling, city lights, emotional release, uplifting but intimate, nostalgic synthwave vibe, warm energy, modern pop sensibility",
|
||||||
"extra": "male singing with natural youthful tone, mid register, conversational delivery, clear English pronunciation, melodic chorus, preserve exact voice timbre and color, true to reference voice, natural breathing, smooth phrasing, no belting, no screaming, no vocal acrobatics, stay in natural vocal range, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
"extra": "male singing with natural youthful tone, mid register, conversational delivery, clear English pronunciation, melodic chorus, preserve exact voice timbre and color, true to reference voice, natural breathing, smooth phrasing, no belting, no screaming, no vocal acrobatics, stay in natural vocal range, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
||||||
},
|
},
|
||||||
|
|
||||||
"trend3_xinhao_pro": {
|
"trend3_xinhao_pro": {
|
||||||
"_comment": "信号干扰Pro版:Hyperpop + Bass House 升级版,编曲更炸更有层次,drop 更有冲击力。BPM 140,E minor。shift=5.2。100% 男声独唱。",
|
"_comment": "信号干扰Pro版:Hyperpop + Bass House 升级版,编曲更炸更有层次,drop 更有冲击力。BPM 140,E minor。shift=5.2。100% 男声独唱。",
|
||||||
"style": "hyperpop bass house, aggressive electronic pop, glitchy EDM",
|
"style": "hyperpop bass house, aggressive electronic pop, glitchy EDM",
|
||||||
@@ -524,7 +520,6 @@
|
|||||||
"mood": "chaotic energy, emotional turbulence, signal distortion feeling, aggressive but catchy, intense chorus, glitchy vibe, futuristic electronic, dance floor banger, headbanging energy, triumphant drop",
|
"mood": "chaotic energy, emotional turbulence, signal distortion feeling, aggressive but catchy, intense chorus, glitchy vibe, futuristic electronic, dance floor banger, headbanging energy, triumphant drop",
|
||||||
"extra": "male singing with bright sweet youthful tone, mid high register, energetic rhythmic delivery, clear pronunciation, catchy repetitive hooks, spoken word sections that build into singing, powerful chorus, modern hyperpop vocal style, Charli XCX meets 100 gecs energy but male voice, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops, no vocal samples"
|
"extra": "male singing with bright sweet youthful tone, mid high register, energetic rhythmic delivery, clear pronunciation, catchy repetitive hooks, spoken word sections that build into singing, powerful chorus, modern hyperpop vocal style, Charli XCX meets 100 gecs energy but male voice, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops, no vocal samples"
|
||||||
},
|
},
|
||||||
|
|
||||||
"futureremix": {
|
"futureremix": {
|
||||||
"_comment": "Future House EDM 通用:弹跳合成贝斯+supersaw+drop结构。128 BPM,F minor,时长168s。",
|
"_comment": "Future House EDM 通用:弹跳合成贝斯+supersaw+drop结构。128 BPM,F minor,时长168s。",
|
||||||
"style": "modern future house EDM, bouncy club electronic, big room dance",
|
"style": "modern future house EDM, bouncy club electronic, big room dance",
|
||||||
@@ -535,7 +530,6 @@
|
|||||||
"mood": "euphoric club energy, high voltage night drive, dance floor rush, sweet crush turned explosive, uplifting release, bouncy and hyped, anthemic festival feeling, nonstop momentum",
|
"mood": "euphoric club energy, high voltage night drive, dance floor rush, sweet crush turned explosive, uplifting release, bouncy and hyped, anthemic festival feeling, nonstop momentum",
|
||||||
"extra": "male singing with bright energetic tone, punchy rhythmic delivery, clear pronunciation, catchy repeating hook, strong anthemic chorus, modern EDM vocal style, forward and confident, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
"extra": "male singing with bright energetic tone, punchy rhythmic delivery, clear pronunciation, catchy repeating hook, strong anthemic chorus, modern EDM vocal style, forward and confident, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
||||||
},
|
},
|
||||||
|
|
||||||
"test_filler_fix": {
|
"test_filler_fix": {
|
||||||
"_comment": "衬音修复测试 demo:90s 短时长,验证 lean 模式下 RULE_NO_FILLER 是否生效。",
|
"_comment": "衬音修复测试 demo:90s 短时长,验证 lean 模式下 RULE_NO_FILLER 是否生效。",
|
||||||
"style": "future house electronic pop, upbeat EDM pop",
|
"style": "future house electronic pop, upbeat EDM pop",
|
||||||
@@ -546,4 +540,4 @@
|
|||||||
"mood": "upbeat euphoric, dance floor energy, sweet and catchy, uplifting release",
|
"mood": "upbeat euphoric, dance floor energy, sweet and catchy, uplifting release",
|
||||||
"extra": "male singing with bright sweet youthful tone, mid high register, energetic rhythmic delivery, clear pronunciation, catchy hooks, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
"extra": "male singing with bright sweet youthful tone, mid high register, energetic rhythmic delivery, clear pronunciation, catchy hooks, solo male vocal only, no female vocals, no backup vocals, no choir, no duet, no vocal chops"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+6
-3
@@ -4,7 +4,8 @@
|
|||||||
|
|
||||||
| 文档 | 用途 |
|
| 文档 | 用途 |
|
||||||
|------|------|
|
|------|------|
|
||||||
| [`../AGENTS.md`](../AGENTS.md) | **Agent 必读**:流水线、铁律、**遇事先问** |
|
| [`../AGENTS_MIN.md`](../AGENTS_MIN.md) | **Agent 默认入口**(省 token) |
|
||||||
|
| [`../AGENTS.md`](../AGENTS.md) | Agent 全文:流水线、铁律、遇事先问 |
|
||||||
| [`../README.md`](../README.md) | clone / 安装 / 远程 |
|
| [`../README.md`](../README.md) | clone / 安装 / 远程 |
|
||||||
| [`../config/default.toml`](../config/default.toml) | 算法默认(本仓为准) |
|
| [`../config/default.toml`](../config/default.toml) | 算法默认(本仓为准) |
|
||||||
| 若仍嵌套 ComfyUI:`生歌规则.md` | 踩坑长文;与 `default.toml` 冲突时以 TOML + AGENTS 为准 |
|
| 若仍嵌套 ComfyUI:`生歌规则.md` | 踩坑长文;与 `default.toml` 冲突时以 TOML + AGENTS 为准 |
|
||||||
@@ -27,9 +28,11 @@ python songforge\songforge.py <命令> [选项]
|
|||||||
|
|
||||||
### 给 Agent / 自动化
|
### 给 Agent / 自动化
|
||||||
|
|
||||||
1. 先读 [`AGENTS.md`](../AGENTS.md),再跑命令。
|
1. 先读 [`AGENTS_MIN.md`](../AGENTS_MIN.md);不够再读 [`AGENTS.md`](../AGENTS.md)。
|
||||||
2. 没有 `local.toml`、Comfy 没起、风格/歌名/歌词来源不清 → **先问用户**,不要猜路径或改铁律。
|
2. 没有 `local.toml`、Comfy 没起、风格/歌名/歌词来源不清 → **先问用户**,不要猜路径或改铁律。
|
||||||
3. 交付以 `qc --baseline` PASS 为准;不要把 `style_fam` 说成「风格已验证」。
|
3. 需改仓库代码时:先征求同意;建议 git 备份或新插件旁路;问清是否 commit/push、推哪个 remote。
|
||||||
|
4. 交付以 `qc --baseline` PASS 为准;不要把 `style_fam` / `filler_ratio` 说成硬闸门。
|
||||||
|
5. 探测/转码/截取用 `songforge media`,不要整读 `qc_worker.py`。
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|||||||
+9
-3
@@ -68,10 +68,15 @@ RULE_CONSIST = (
|
|||||||
# - 英文:覆盖 ACE-Step 最常见的 filler 词
|
# - 英文:覆盖 ACE-Step 最常见的 filler 词
|
||||||
# - 中文:覆盖模型在中文歌词间插入的衬词
|
# - 中文:覆盖模型在中文歌词间插入的衬词
|
||||||
# - 段落间:明确要求段落之间只允许器乐,不允许人声填充
|
# - 段落间:明确要求段落之间只允许器乐,不允许人声填充
|
||||||
|
# 默认无衬音:段落间不要 ooh/啊 填充,也不要和声/backup/合唱层。
|
||||||
RULE_NO_FILLER = (
|
RULE_NO_FILLER = (
|
||||||
"vocals sing only the exact words written in the lyrics, "
|
"vocals sing only the exact words written in the lyrics, "
|
||||||
"no other vocal sounds anywhere in the song, "
|
"no other vocal sounds anywhere in the song, "
|
||||||
"all sections without lyrics are instrumental only"
|
"all sections without lyrics are instrumental only, "
|
||||||
|
"solo lead vocal only, "
|
||||||
|
"no backing vocals, no backup singers, no choir, "
|
||||||
|
"no vocal doubles, no harmony stack, no call and response vocals, "
|
||||||
|
"no wordless vocals between sections"
|
||||||
)
|
)
|
||||||
|
|
||||||
RULE_HARMONY = (
|
RULE_HARMONY = (
|
||||||
@@ -81,7 +86,7 @@ RULE_HARMONY = (
|
|||||||
|
|
||||||
RULE_MEMO = (
|
RULE_MEMO = (
|
||||||
"memorable repeating vocal hook, short four syllable hook, "
|
"memorable repeating vocal hook, short four syllable hook, "
|
||||||
"strong call and response, dynamic contrast between verse and hook, "
|
"single lead vocal hook, dynamic contrast between verse and hook, "
|
||||||
"clear space between rap phrases, crisp clear pronunciation, "
|
"clear space between rap phrases, crisp clear pronunciation, "
|
||||||
"no straining, no autotune warble, radio ready loudness, "
|
"no straining, no autotune warble, radio ready loudness, "
|
||||||
"choreography friendly, dance floor ready"
|
"choreography friendly, dance floor ready"
|
||||||
@@ -1073,7 +1078,8 @@ def check_rules(lyrics, tags, lean=False):
|
|||||||
# 膨胀,但衬音禁令跟前奏无关,不能一起跳过。
|
# 膨胀,但衬音禁令跟前奏无关,不能一起跳过。
|
||||||
# 2026-10-08:从负面禁词(no ooh / no 嗯嗯)改为正面强制
|
# 2026-10-08:从负面禁词(no ooh / no 嗯嗯)改为正面强制
|
||||||
# "sing only the exact words",校验关键词也跟着改。
|
# "sing only the exact words",校验关键词也跟着改。
|
||||||
for kw in ("sing only the exact words", "instrumental only"):
|
for kw in ("sing only the exact words", "instrumental only",
|
||||||
|
"solo lead vocal only", "no backing vocals"):
|
||||||
if kw not in low:
|
if kw not in low:
|
||||||
errs.append("tags 缺少 '%s'(衬音禁令,lean 下也必须存在)" % kw)
|
errs.append("tags 缺少 '%s'(衬音禁令,lean 下也必须存在)" % kw)
|
||||||
# 器乐前奏小节数:普通歌曲 8 小节,chill 吟唱 8 小节,纯器乐 8 小节。
|
# 器乐前奏小节数:普通歌曲 8 小节,chill 吟唱 8 小节,纯器乐 8 小节。
|
||||||
|
|||||||
@@ -0,0 +1,140 @@
|
|||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""音频窄接口:info / convert / clip。由 songforge media 经 qc_python 调用。
|
||||||
|
|
||||||
|
用法(内部):
|
||||||
|
python media_worker.py '{"op":"info","file":"..."}'
|
||||||
|
stdout 最后一行前有 ###JSON###
|
||||||
|
"""
|
||||||
|
import json
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
def _load(path):
|
||||||
|
import soundfile as sf
|
||||||
|
import numpy as np
|
||||||
|
y, sr = sf.read(path, always_2d=True)
|
||||||
|
y = np.asarray(y, dtype=np.float32)
|
||||||
|
return y, int(sr)
|
||||||
|
|
||||||
|
|
||||||
|
def op_info(job):
|
||||||
|
import librosa
|
||||||
|
path = job["file"]
|
||||||
|
y, sr = _load(path)
|
||||||
|
ch = y.shape[1]
|
||||||
|
mono = y.mean(axis=1) if ch > 1 else y[:, 0]
|
||||||
|
dur = float(mono.shape[0]) / float(sr)
|
||||||
|
bpm = None
|
||||||
|
try:
|
||||||
|
tempo, _ = librosa.beat.beat_track(y=mono, sr=sr)
|
||||||
|
import numpy as np
|
||||||
|
t = np.asarray(tempo).reshape(-1)
|
||||||
|
bpm = float(t[0]) if t.size else None
|
||||||
|
except Exception:
|
||||||
|
bpm = None
|
||||||
|
return dict(
|
||||||
|
file=os.path.abspath(path),
|
||||||
|
duration_sec=round(dur, 3),
|
||||||
|
sample_rate=sr,
|
||||||
|
channels=ch,
|
||||||
|
frames=int(mono.shape[0]),
|
||||||
|
tempo_est=round(bpm, 1) if bpm else None,
|
||||||
|
size_bytes=os.path.getsize(path),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
def op_convert(job):
|
||||||
|
import soundfile as sf
|
||||||
|
path = job["file"]
|
||||||
|
out = job["out"]
|
||||||
|
fmt = (job.get("to") or "wav").lower().lstrip(".")
|
||||||
|
y, sr = _load(path)
|
||||||
|
os.makedirs(os.path.dirname(os.path.abspath(out)) or ".", exist_ok=True)
|
||||||
|
# soundfile: wav/flac 原生;mp3 需外部,失败则明确报错
|
||||||
|
if fmt == "mp3":
|
||||||
|
try:
|
||||||
|
import numpy as np
|
||||||
|
from pydub import AudioSegment
|
||||||
|
# write temp wav then export
|
||||||
|
import tempfile
|
||||||
|
fd, tmp = tempfile.mkstemp(suffix=".wav")
|
||||||
|
os.close(fd)
|
||||||
|
try:
|
||||||
|
sf.write(tmp, y, sr)
|
||||||
|
AudioSegment.from_wav(tmp).export(out, format="mp3")
|
||||||
|
finally:
|
||||||
|
try:
|
||||||
|
os.remove(tmp)
|
||||||
|
except OSError:
|
||||||
|
pass
|
||||||
|
except Exception as e:
|
||||||
|
raise RuntimeError(
|
||||||
|
"mp3 需要 pydub+ffmpeg;或改用 --to wav/flac。详情: %s" % e)
|
||||||
|
else:
|
||||||
|
subtype = "PCM_16" if fmt == "wav" else None
|
||||||
|
kw = dict(format=fmt.upper())
|
||||||
|
if subtype:
|
||||||
|
kw["subtype"] = subtype
|
||||||
|
sf.write(out, y, sr, **kw)
|
||||||
|
return dict(file=os.path.abspath(path), out=os.path.abspath(out),
|
||||||
|
format=fmt, ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
def op_clip(job):
|
||||||
|
import soundfile as sf
|
||||||
|
path = job["file"]
|
||||||
|
out = job["out"]
|
||||||
|
start = float(job.get("start") or 0.0)
|
||||||
|
dur = job.get("dur")
|
||||||
|
end = job.get("end")
|
||||||
|
y, sr = _load(path)
|
||||||
|
i0 = max(0, int(start * sr))
|
||||||
|
if dur is not None:
|
||||||
|
i1 = min(y.shape[0], i0 + int(float(dur) * sr))
|
||||||
|
elif end is not None:
|
||||||
|
i1 = min(y.shape[0], int(float(end) * sr))
|
||||||
|
else:
|
||||||
|
i1 = y.shape[0]
|
||||||
|
if i1 <= i0:
|
||||||
|
raise ValueError("截取区间无效 start=%s dur=%s end=%s" % (start, dur, end))
|
||||||
|
chunk = y[i0:i1]
|
||||||
|
os.makedirs(os.path.dirname(os.path.abspath(out)) or ".", exist_ok=True)
|
||||||
|
ext = os.path.splitext(out)[1].lstrip(".").lower() or "wav"
|
||||||
|
if ext == "mp3":
|
||||||
|
raise RuntimeError("clip 输出请用 .wav 或 .flac(mp3 请再 convert)")
|
||||||
|
subtype = "PCM_16" if ext == "wav" else None
|
||||||
|
kw = {}
|
||||||
|
if subtype:
|
||||||
|
kw["subtype"] = subtype
|
||||||
|
sf.write(out, chunk, sr, **kw)
|
||||||
|
return dict(
|
||||||
|
file=os.path.abspath(path), out=os.path.abspath(out),
|
||||||
|
start_sec=start, end_sec=i1 / float(sr),
|
||||||
|
duration_sec=round((i1 - i0) / float(sr), 3), ok=True)
|
||||||
|
|
||||||
|
|
||||||
|
OPS = {"info": op_info, "convert": op_convert, "clip": op_clip}
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
raw = sys.argv[1] if len(sys.argv) > 1 else sys.stdin.read()
|
||||||
|
job = json.loads(raw)
|
||||||
|
op = job.get("op")
|
||||||
|
if op not in OPS:
|
||||||
|
raise SystemExit("unknown op: %s" % op)
|
||||||
|
if not job.get("file") or not os.path.isfile(job["file"]):
|
||||||
|
raise SystemExit("file missing: %s" % job.get("file"))
|
||||||
|
out = OPS[op](job)
|
||||||
|
print("###JSON###")
|
||||||
|
print(json.dumps(out, ensure_ascii=False))
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
try:
|
||||||
|
main()
|
||||||
|
except Exception as e:
|
||||||
|
print("###JSON###")
|
||||||
|
print(json.dumps(dict(error=str(e), type=type(e).__name__),
|
||||||
|
ensure_ascii=False))
|
||||||
|
sys.exit(1)
|
||||||
+19
-1
@@ -685,6 +685,21 @@ def _collapse_runs(s, max_run=3):
|
|||||||
return "".join(out)
|
return "".join(out)
|
||||||
|
|
||||||
|
|
||||||
|
def filler_ratio(asr_text, lang="zh"):
|
||||||
|
"""ASR 文本中语气/哼唱衬词占比(弱参考,不单独否决)。"""
|
||||||
|
if _is_en(lang):
|
||||||
|
words = _en_words(_strip_tags(asr_text or ""))
|
||||||
|
if not words:
|
||||||
|
return 0.0
|
||||||
|
n = sum(1 for w in words if w in EN_FILLER)
|
||||||
|
return n / float(len(words))
|
||||||
|
chars = cjk(asr_text or "")
|
||||||
|
if not chars:
|
||||||
|
return 0.0
|
||||||
|
n = sum(1 for c in chars if c in FILLER)
|
||||||
|
return n / float(len(chars))
|
||||||
|
|
||||||
|
|
||||||
def coverage(asr_text, lyrics, lang="zh"):
|
def coverage(asr_text, lyrics, lang="zh"):
|
||||||
"""ASR 召回率:ASR 里命中的歌词单元 / 歌词正文单元。
|
"""ASR 召回率:ASR 里命中的歌词单元 / 歌词正文单元。
|
||||||
|
|
||||||
@@ -875,6 +890,8 @@ def measure(path, expect=None, cache_dir=None, with_asr=True):
|
|||||||
if half > vsr else 0.0
|
if half > vsr else 0.0
|
||||||
|
|
||||||
cov = coverage(txt, lyr, lang) if with_asr else 0.0
|
cov = coverage(txt, lyr, lang) if with_asr else 0.0
|
||||||
|
# 衬词占比:弱参考,不单独导致 FAIL(与 style_fam 同级)
|
||||||
|
fill_r = filler_ratio(txt, lang) if with_asr else 0.0
|
||||||
|
|
||||||
# ---- 风格分类:只看混音轨,不掺 demucs(见 qc_style 文件头坑位 4)
|
# ---- 风格分类:只看混音轨,不掺 demucs(见 qc_style 文件头坑位 4)
|
||||||
svec, sraw = qc_style.features(path, expect_bpm=expect.get("bpm"))
|
svec, sraw = qc_style.features(path, expect_bpm=expect.get("bpm"))
|
||||||
@@ -901,7 +918,8 @@ def measure(path, expect=None, cache_dir=None, with_asr=True):
|
|||||||
f0_p98=round(float(np.percentile(f0v, 98)), 1) if f0v.size else 0.0,
|
f0_p98=round(float(np.percentile(f0v, 98)), 1) if f0v.size else 0.0,
|
||||||
f0_drift_st=round(f0_drift_st, 2),
|
f0_drift_st=round(f0_drift_st, 2),
|
||||||
asr_chars=len(tokens(txt, lang)), asr_segs=len(segs),
|
asr_chars=len(tokens(txt, lang)), asr_segs=len(segs),
|
||||||
coverage=round(cov, 4), asr_head=txt[:120],
|
coverage=round(cov, 4), filler_ratio=round(fill_r, 4),
|
||||||
|
asr_head=txt[:120],
|
||||||
voice_self=round(float(e_self), 4),
|
voice_self=round(float(e_self), 4),
|
||||||
flatness=round(sraw.get("flatness", 0.0), 4),
|
flatness=round(sraw.get("flatness", 0.0), 4),
|
||||||
expect=dict(expect),
|
expect=dict(expect),
|
||||||
|
|||||||
Reference in New Issue
Block a user