diff --git a/OpenUtau.Core/Classic/Ust.cs b/OpenUtau.Core/Classic/Ust.cs index 8e4600a01..76961c59e 100644 --- a/OpenUtau.Core/Classic/Ust.cs +++ b/OpenUtau.Core/Classic/Ust.cs @@ -459,5 +459,27 @@ public static (List, List) ParsePlugin( .ToList(); return (toRemove, toAdd); } + + public static void WriteForSetParam(UProject project, string filePath, List otos) { + using (var writer = new StreamWriter(filePath, false, Encoding.GetEncoding("shift_jis"))) { + writer.WriteLine("[#SETTING]"); + writer.WriteLine($"Tempo=120"); + writer.WriteLine("Tracks=1"); + if (project.Saved) { + writer.WriteLine($"Project={project.FilePath.Replace(".ustx", ".ust")}"); + } + writer.WriteLine($"VoiceDir={Path.GetDirectoryName(otos[0].File)}"); + writer.WriteLine($"CacheDir={PathManager.Inst.CachePath}"); + writer.WriteLine("Mode2=True"); + + for (int i = 0; i < otos.Count; i++) { + UOto oto = otos[i]; + writer.WriteLine($"[#{i:D4}]"); + writer.WriteLine($"Length=480"); + writer.WriteLine($"Lyric={oto.Alias}"); + writer.WriteLine($"NoteNum=60"); + } + } + } } } diff --git a/OpenUtau.Core/Util/Preferences.cs b/OpenUtau.Core/Util/Preferences.cs index 6a4c949aa..c239016fc 100644 --- a/OpenUtau.Core/Util/Preferences.cs +++ b/OpenUtau.Core/Util/Preferences.cs @@ -180,6 +180,7 @@ public class SerializablePreferences { public bool LyricsHelperBrackets = false; public int OtoEditor = 0; public string VLabelerPath = string.Empty; + public string SetParamPath = string.Empty; public bool Beta = false; public bool RememberMid = false; public bool RememberUst = true; diff --git a/OpenUtau/Strings/Strings.axaml b/OpenUtau/Strings/Strings.axaml index 6bb5efdf6..684bc87a3 100644 --- a/OpenUtau/Strings/Strings.axaml +++ b/OpenUtau/Strings/Strings.axaml @@ -381,6 +381,7 @@ Warning: this option removes custom presets. On Oto Editor Default Oto Editor + setParam Path Paths Additional Singer Path Install to Additional Singer Path @@ -433,6 +434,7 @@ Warning: this option removes custom presets. Waiting Rendering Singers + Edit In setParam Edit In vLabeler Goto Source File Regenerate FRQ @@ -440,6 +442,7 @@ Warning: this option removes custom presets. Reset Otos Save Otos Search Alias + Download setParam (v4.0b or higher) from http://nwp8861.blog92.fc2.com/ and set setParam path in Preferences first! Download vLabeler (1.0.0-beta1 or higher) from https://github.com/sdercolin/vlabeler and set vLabeler path in Preferences first! Generate Singer Error Report Location diff --git a/OpenUtau/Strings/Strings.ja-JP.axaml b/OpenUtau/Strings/Strings.ja-JP.axaml index 95c6a10c1..f973efbeb 100644 --- a/OpenUtau/Strings/Strings.ja-JP.axaml +++ b/OpenUtau/Strings/Strings.ja-JP.axaml @@ -379,6 +379,7 @@ オン 原音設定 デフォルトの原音設定エディタ + setParamの場所 ファイルの場所 シンガーの場所(追加) シンガーの場所(追加)にインストール @@ -431,6 +432,7 @@ レンダリング中 シンガー + setParamで編集 vLabelerで編集 原音の場所を開く 周波数表を再生成 @@ -438,7 +440,8 @@ 原音設定をリセット 原音設定を保存 エイリアス検索 - + 先にsetParam(v4.0b以降)をダウンロードし、環境設定でパスを設定してください! http://nwp8861.blog92.fc2.com/ + 先にvLabeler(1.0.0-beta1以降)をダウンロードし、環境設定でパスを設定してください! https://github.com/sdercolin/vlabeler シンガーのError Reportを出力 ファイルの場所 左へ移動 diff --git a/OpenUtau/ViewModels/PreferencesViewModel.cs b/OpenUtau/ViewModels/PreferencesViewModel.cs index 6a344b186..6fb623fc5 100644 --- a/OpenUtau/ViewModels/PreferencesViewModel.cs +++ b/OpenUtau/ViewModels/PreferencesViewModel.cs @@ -54,6 +54,7 @@ public AudioOutputDevice? AudioOutputDevice { [Reactive] public bool ShowGhostNotes { get; set; } [Reactive] public int OtoEditor { get; set; } public string VLabelerPath => Preferences.Default.VLabelerPath; + public string SetParamPath => Preferences.Default.SetParamPath; [Reactive] public bool ClearCacheOnQuit { get; set; } public int LogicalCoreCount { get => Environment.ProcessorCount; @@ -374,5 +375,11 @@ public void SetVLabelerPath(string path) { Preferences.Save(); this.RaisePropertyChanged(nameof(VLabelerPath)); } + + public void SetSetParamPath(string path) { + Preferences.Default.SetParamPath = path; + Preferences.Save(); + this.RaisePropertyChanged(nameof(SetParamPath)); + } } } diff --git a/OpenUtau/Views/PreferencesDialog.axaml b/OpenUtau/Views/PreferencesDialog.axaml index 7144c742b..69040dd1b 100644 --- a/OpenUtau/Views/PreferencesDialog.axaml +++ b/OpenUtau/Views/PreferencesDialog.axaml @@ -214,6 +214,7 @@ + + + + +