Skip to content

Commit

Permalink
Fixed BaseKoreanPhonemizer to use voice color
Browse files Browse the repository at this point in the history
  • Loading branch information
2xxbin committed Oct 18, 2024
1 parent e09c498 commit 538d91c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion OpenUtau.Plugin.Builtin/BaseKoreanPhonemizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ protected virtual bool additionalTest(string lyric) {
// nullIfNotFound가 true이면 음소가 찾아지지 않을 때 음소가 아닌 null을 리턴한다.
// nullIfNotFound가 false면 음소가 찾아지지 않을 때 그대로 음소를 반환
string phonemeToReturn;
string color = string.Empty;
var attr = note.phonemeAttributes?.FirstOrDefault(attr => attr.index == 0) ?? default;
string color = attr.voiceColor ?? string.Empty;
int toneShift = 0;
int? alt = null;
if (phoneme.Equals("")) {return phoneme;}
Expand Down

0 comments on commit 538d91c

Please sign in to comment.