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:
+20
-8
@@ -124,8 +124,14 @@ def _t_model_locked():
|
||||
def _t_ironlaw():
|
||||
tags = ironlaw.build_tags("Chinese pop")
|
||||
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 "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(
|
||||
[("[verse]", "第一句歌词\n第二句歌词")], "kick and snare", bars=8)
|
||||
assert lyrics.lstrip().startswith("[intro]"), "未强制器乐前奏"
|
||||
@@ -137,7 +143,12 @@ def _t_ironlaw():
|
||||
# 中文结构标记必须被拦
|
||||
marked = lyrics.replace("[verse]", "[主歌]")
|
||||
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():
|
||||
@@ -338,15 +349,16 @@ def _t_chill_delay():
|
||||
|
||||
# 但也不能把人声彻底禁掉,否则就是纯器乐、不是吟唱。
|
||||
# 注意只匹配纯器乐专属的反人声条款:
|
||||
# - 不能用裸 "no singing":"no singing in any breakdown" 含这个子串,
|
||||
# 那是吟唱要的人声约束。
|
||||
# - 不能用 "instrumental only":它来自 "intro is instrumental only",
|
||||
# 那是前奏必须保留的约束。
|
||||
for kw in ("no vocals anywhere", "no voice at all", "no lead vocal",
|
||||
"no backing vocal", "this is a backing track",
|
||||
# - 不能用裸 "no singing":"no singing in any breakdown" 含这个子串。
|
||||
# - 不能用 "no backing vocal"(无 s):那是 INST_NEG;默认衬音禁令是
|
||||
# "no backing vocals"(有 s)+ "solo lead vocal only",chill 必须保留。
|
||||
for kw in ("no vocals anywhere", "no voice at all", "no lead vocal,",
|
||||
"no backing vocal,", "this is a backing track",
|
||||
"drums bass synths chords and lead melodies only"):
|
||||
assert kw not in tags.lower(), \
|
||||
"chill tags 含纯器乐条款 %s,吟唱被人声禁令吞掉" % kw
|
||||
assert "no backing vocals" in tags.lower(), \
|
||||
"chill 缺少默认无和声叠唱禁令"
|
||||
|
||||
return [("吟唱标签梯度",
|
||||
"时机类措辞全部禁掉,密度触发词保留,"
|
||||
|
||||
Reference in New Issue
Block a user