Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions OpenUtau.Plugin.Builtin/ChineseCVVPlusPhonemizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,8 @@ public override Result Process(Note[] notes, Note? prev, Note? next, Note? prevN
}

// If the note is an End Breath note
if (Config.SupportedTailBreath.Contains(phoneme) && prev != null) {
phoneme = GetOtoAlias(singer, $"{GetLyricVowel(prev?.lyric)} {phoneme}", notes[0]);
if (Config.SupportedTailBreath.Contains(phoneme) && prevNeighbour != null) {
phoneme = GetOtoAlias(singer, $"{GetLyricVowel(prevNeighbour?.lyric)} {phoneme}", notes[0]);

return new Result {
// Output in the form "Basic vowel shape + End Breath written with lyrics"
Expand All @@ -309,7 +309,7 @@ public override Result Process(Note[] notes, Note? prev, Note? next, Note? prevN
}

// If retan is set to True in zhcvvplus.yaml, there is no previous note, and the "- lyrics" alias exists in oto.ini
if (Config.UseRetan && prev == null && isExistPhonemeInOto(singer, $"- {phoneme}", notes[0])) {
if (Config.UseRetan && prevNeighbour == null && isExistPhonemeInOto(singer, $"- {phoneme}", notes[0])) {
// 가사를 "- 가사"로 변경
phoneme = $"- {phoneme}";
phoneme = GetOtoAlias(singer, phoneme, notes[0]);
Expand Down
Loading