From 538d91cac73b25f60fe62bc733d79ff7acaee50a Mon Sep 17 00:00:00 2001 From: 2xxbin <2xxbin1208@gmail.com> Date: Fri, 18 Oct 2024 22:19:01 +0900 Subject: [PATCH] Fixed BaseKoreanPhonemizer to use voice color --- OpenUtau.Plugin.Builtin/BaseKoreanPhonemizer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenUtau.Plugin.Builtin/BaseKoreanPhonemizer.cs b/OpenUtau.Plugin.Builtin/BaseKoreanPhonemizer.cs index b07d35516..1fd84b16d 100644 --- a/OpenUtau.Plugin.Builtin/BaseKoreanPhonemizer.cs +++ b/OpenUtau.Plugin.Builtin/BaseKoreanPhonemizer.cs @@ -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;}