fix structure

This commit is contained in:
2025-10-22 16:32:58 +02:00
parent da001a491b
commit 40e10d1692
4 changed files with 74 additions and 99 deletions
+1 -7
View File
@@ -444,7 +444,7 @@ const MusicDetails = ({ route }) => {
lower.includes("pre chorus") ||
lower.includes("pre-refrain")
)
type = "pre_chorus";
type = "pre_refrain_instrumental";
else if (lower.includes("pont") || lower.includes("bridge")) type = "pont";
else if (lower.includes("intro")) {
if (lower.includes("long")) type = "long_intro";
@@ -464,12 +464,6 @@ const MusicDetails = ({ route }) => {
}
const prompt = getPromptLabelForStructure(normalized);
if (prompt) return prompt;
if (normalized === "refrain")
return index > 1 ? `Refrain ${index}` : "Refrain";
if (normalized === "couplet")
return index > 1 ? `Couplet ${index}` : "Couplet";
if (type === "pont") return index > 1 ? `Pont ${index}` : "Pont";
if (type === "intro") return index > 1 ? `Intro ${index}` : "Intro";
return index > 1 ? `Section ${index}` : "Section";
};