Skip to content

Commit

Permalink
fix: replaces aa and Aa with ah and Ah to avoid oddvoice weirdness
Browse files Browse the repository at this point in the history
  • Loading branch information
VehpuS committed Apr 26, 2024
1 parent eeb6045 commit f941e3e
Show file tree
Hide file tree
Showing 4 changed files with 993 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@ export const modifyLyricsForOddvoices = (lyrics: string): string => {
modifiedLyrics = modifiedLyrics.replace(/Ooo+/g, "Oo");
modifiedLyrics = modifiedLyrics.replace(/ooo+/g, "oo");

// Replace all repeated aas (more than 2) with ah. For example, "Aaaa" -> "Ah"
// For some reason, oddvoices will read "aa" as "ay ay" instead of "ah", and splitting them into separate notes
modifiedLyrics = modifiedLyrics.replace(/Aa+/g, "Ah");
modifiedLyrics = modifiedLyrics.replace(/aa+/g, "ah");

modifiedLyrics = modifiedLyrics.trim();
return modifiedLyrics;
};
Binary file not shown.
Loading

0 comments on commit f941e3e

Please sign in to comment.