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:
+9
-3
@@ -68,10 +68,15 @@ RULE_CONSIST = (
|
||||
# - 英文:覆盖 ACE-Step 最常见的 filler 词
|
||||
# - 中文:覆盖模型在中文歌词间插入的衬词
|
||||
# - 段落间:明确要求段落之间只允许器乐,不允许人声填充
|
||||
# 默认无衬音:段落间不要 ooh/啊 填充,也不要和声/backup/合唱层。
|
||||
RULE_NO_FILLER = (
|
||||
"vocals sing only the exact words written in the lyrics, "
|
||||
"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 = (
|
||||
@@ -81,7 +86,7 @@ RULE_HARMONY = (
|
||||
|
||||
RULE_MEMO = (
|
||||
"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, "
|
||||
"no straining, no autotune warble, radio ready loudness, "
|
||||
"choreography friendly, dance floor ready"
|
||||
@@ -1073,7 +1078,8 @@ def check_rules(lyrics, tags, lean=False):
|
||||
# 膨胀,但衬音禁令跟前奏无关,不能一起跳过。
|
||||
# 2026-10-08:从负面禁词(no ooh / no 嗯嗯)改为正面强制
|
||||
# "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:
|
||||
errs.append("tags 缺少 '%s'(衬音禁令,lean 下也必须存在)" % kw)
|
||||
# 器乐前奏小节数:普通歌曲 8 小节,chill 吟唱 8 小节,纯器乐 8 小节。
|
||||
|
||||
Reference in New Issue
Block a user