new song structure
This commit is contained in:
@@ -363,7 +363,7 @@ const MusicDetails = ({ route }) => {
|
||||
let type = "section";
|
||||
if (lower.includes("refrain") || lower.includes("chorus")) type = "refrain";
|
||||
else if (lower.includes("couplet") || lower.includes("verse")) type = "couplet";
|
||||
else if (lower.includes("bridge")) type = "bridge";
|
||||
else if (lower.includes("pont") || lower.includes("bridge")) type = "pont";
|
||||
else if (lower.includes("intro")) type = "intro";
|
||||
const indexMatch = label.match(/(\d+)/);
|
||||
const index = indexMatch ? Number(indexMatch[1]) : undefined;
|
||||
@@ -373,7 +373,7 @@ const MusicDetails = ({ route }) => {
|
||||
if (fallback) return fallback;
|
||||
if (type === "refrain") return index > 1 ? `Refrain ${index}` : "Refrain";
|
||||
if (type === "couplet") return index > 1 ? `Couplet ${index}` : "Couplet";
|
||||
if (type === "bridge") return index > 1 ? `Pont ${index}` : "Pont";
|
||||
if (type === "pont") return index > 1 ? `Pont ${index}` : "Pont";
|
||||
if (type === "intro") return "Intro";
|
||||
return index > 1 ? `Section ${index}` : "Section";
|
||||
};
|
||||
|
||||
@@ -445,7 +445,7 @@ const MusicDetails = ({ route }) => {
|
||||
lower.includes("pre-refrain")
|
||||
)
|
||||
type = "pre_chorus";
|
||||
else if (lower.includes("bridge")) type = "bridge";
|
||||
else if (lower.includes("pont") || lower.includes("bridge")) type = "pont";
|
||||
else if (lower.includes("intro")) {
|
||||
if (lower.includes("long")) type = "long_intro";
|
||||
else type = "short_intro";
|
||||
@@ -468,7 +468,7 @@ const MusicDetails = ({ route }) => {
|
||||
return index > 1 ? `Refrain ${index}` : "Refrain";
|
||||
if (normalized === "couplet")
|
||||
return index > 1 ? `Couplet ${index}` : "Couplet";
|
||||
if (type === "bridge") return index > 1 ? `Pont ${index}` : "Pont";
|
||||
if (type === "pont") return index > 1 ? `Pont ${index}` : "Pont";
|
||||
if (type === "intro") return index > 1 ? `Intro ${index}` : "Intro";
|
||||
return index > 1 ? `Section ${index}` : "Section";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user