Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 3 additions & 7 deletions OpenUtau.Core/DiffSinger/DiffSingerRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -533,24 +533,20 @@ public RenderPitchResult LoadRenderedPitch(RenderPhrase phrase, double? pitchSte
}

public RenderPitchResult LoadRenderedPitch(RenderPhrase phrase, HashSet<int> selectedNotePositions) {
return LoadRenderedPitch(phrase, selectedNotePositions, pitchSteps: null, fastRealtime: false, forceLocalRetake: false);
return LoadRenderedPitch(phrase, selectedNotePositions, pitchSteps: null, fastRealtime: false);
}

/// <summary>Live pitch: partial retake for changed notes with fast sampling settings.</summary>
internal RenderPitchResult LoadRenderedPitchLive(
RenderPhrase phrase, HashSet<int> selectedNotePositions, double pitchSteps, bool fastRealtime) {
return LoadRenderedPitch(phrase, selectedNotePositions, pitchSteps, fastRealtime, forceLocalRetake: true);
return LoadRenderedPitch(phrase, selectedNotePositions, pitchSteps, fastRealtime);
}

RenderPitchResult LoadRenderedPitch(
RenderPhrase phrase,
HashSet<int> selectedNotePositions,
double? pitchSteps,
bool fastRealtime,
bool forceLocalRetake) {
if (!forceLocalRetake && !Preferences.Default.DiffSingerLocalRetaking) {
return LoadRenderedPitch(phrase, pitchSteps, fastRealtime);
}
bool fastRealtime) {
DiffSingerSinger singer = (DiffSingerSinger) phrase.singer;
if (!singer.HasPitchPredictor) {
throw new Exception("This singer has no pitch predictor.");
Expand Down
1 change: 0 additions & 1 deletion OpenUtau.Core/Util/Preferences.cs
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,6 @@ public class SerializablePreferences {
public bool DiffSingerTensorCache = true;
public bool DiffSingerVarianceLocalPitchPatch = false;
public bool DiffSingerLangCodeHide = false;
public bool DiffSingerLocalRetaking = false;
public bool Metronome = false;
public bool SkipRenderingMutedTracks = false;
public string Language = string.Empty;
Expand Down
1 change: 0 additions & 1 deletion OpenUtau/Strings/Strings.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,6 @@ Warning: this option removes custom presets.</system:String>
<system:String x:Key="prefs.rendering">Rendering</system:String>
<system:String x:Key="prefs.rendering.defaultrenderer">Default renderer (for classic voicebanks)</system:String>
<system:String x:Key="prefs.rendering.diffsingerdepth">DiffSinger Render Depth</system:String>
<system:String x:Key="prefs.rendering.diffsingerpitchlocalretaking">DiffSinger Pitch Local Retaking</system:String>
<system:String x:Key="prefs.rendering.diffsingersteps">DiffSinger Render Steps for Acoustic</system:String>
<system:String x:Key="prefs.rendering.diffsingerstepspitch">DiffSinger Render Steps for Pitch</system:String>
<system:String x:Key="prefs.rendering.diffsingerstepsvariance">DiffSinger Render Steps for Variance</system:String>
Expand Down
4 changes: 0 additions & 4 deletions OpenUtau/ViewModels/PreferencesViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ public int SafeMaxThreadCount {
[Reactive] public partial bool DiffSingerTensorCache { get; set; }
[Reactive] public partial bool DiffSingerVarianceLocalPitchPatch { get; set; }
[Reactive] public partial bool DiffSingerLangCodeHide { get; set; }
[Reactive] public partial bool DiffSingerLocalRetaking { get; set; }

// Advanced
[Reactive] public partial bool RememberMid { get; set; }
Expand Down Expand Up @@ -222,7 +221,6 @@ public PreferencesViewModel() {
DiffSingerTensorCache = Preferences.Default.DiffSingerTensorCache;
DiffSingerVarianceLocalPitchPatch = Preferences.Default.DiffSingerVarianceLocalPitchPatch;
DiffSingerLangCodeHide = Preferences.Default.DiffSingerLangCodeHide;
DiffSingerLocalRetaking = Preferences.Default.DiffSingerLocalRetaking;
SkipRenderingMutedTracks = Preferences.Default.SkipRenderingMutedTracks;
ThemeName = Preferences.Default.ThemeName;
DegreeStyle = Preferences.Default.DegreeStyle;
Expand Down Expand Up @@ -447,8 +445,6 @@ public PreferencesViewModel() {
value => Preferences.Default.DiffSingerVarianceLocalPitchPatch = value);
PersistOn(this.WhenAnyValue(vm => vm.DiffSingerLangCodeHide),
value => Preferences.Default.DiffSingerLangCodeHide = value);
PersistOn(this.WhenAnyValue(vm => vm.DiffSingerLocalRetaking),
value => Preferences.Default.DiffSingerLocalRetaking = value);
PersistOn(this.WhenAnyValue(vm => vm.SkipRenderingMutedTracks),
skipRenderingMutedTracks => Preferences.Default.SkipRenderingMutedTracks = skipRenderingMutedTracks);
}
Expand Down
4 changes: 0 additions & 4 deletions OpenUtau/Views/PreferencesDialog.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -391,10 +391,6 @@
<TextBlock Text="{DynamicResource prefs.appearance.diffsingerlangcodehide}" HorizontalAlignment="Left" />
<ToggleSwitch IsChecked="{Binding DiffSingerLangCodeHide}" />
</Grid>
<Grid Margin="0,5,0,0">
<TextBlock Text="{DynamicResource prefs.rendering.diffsingerpitchlocalretaking}" HorizontalAlignment="Left" />
<ToggleSwitch IsChecked="{Binding DiffSingerLocalRetaking}" />
</Grid>
</StackPanel>

<!-- Advanced -->
Expand Down
Loading