Skip to content

Commit

Permalink
テキストを置換する処理を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Oct 2, 2023
1 parent 79f9850 commit bf0dda5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/store/singing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -917,10 +917,13 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
throw new Error("Engine not ready.");
}

// TODO: 助詞や拗音の扱いはあとで考える
const text = score.notes
.map((value) => value.lyric)
.map((value) => value.replace("は", "ハ")) // TODO: 助詞の扱いはあとで考える
.map((value) => value.replace("へ", "ヘ")) // TODO: 助詞の扱いはあとで考える
.map((value) => value.replace("じょ", "ジョ"))
.map((value) => value.replace("うぉ", "ウォ"))
.map((value) => value.replace("は", "ハ"))
.map((value) => value.replace("へ", "ヘ"))
.join("");

let query = await dispatch("FETCH_AUDIO_QUERY", {
Expand Down

0 comments on commit bf0dda5

Please sign in to comment.