Skip to content

Commit

Permalink
VibShift slider minimum set to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
maiko3tattun committed Jun 20, 2023
1 parent fe9ed17 commit 5f59543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
2 changes: 1 addition & 1 deletion OpenUtau/Controls/NotePropertiesControl.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
<Grid ColumnDefinitions="130,20,50,20,*">
<Label Content="{DynamicResource notedefaults.vibrato.shift}"/>
<TextBox Grid.Column="2" Text="{Binding VibratoShift}" />
<Slider Grid.Column="4" Classes="fader" Value="{Binding VibratoShift}" Minimum="1" Maximum="100"
<Slider Grid.Column="4" Classes="fader" Value="{Binding VibratoShift}" Minimum="0" Maximum="100"
TickPlacement="BottomRight" TickFrequency="0.1" IsSnapToTickEnabled="true" />
</Grid>
<Grid ColumnDefinitions="123,20,*">
Expand Down
17 changes: 1 addition & 16 deletions OpenUtau/ViewModels/NotePropertiesViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -302,22 +302,7 @@ public void OnNext(UCommand cmd, bool isUndo) {
foreach (UNote note in selectedNotes) {
foreach (UPhoneme phoneme in notesViewModel.Part.phonemes) {
if (phoneme.Parent == note) {
if (expVM.isCurve) {
int start = (int)Math.Floor(phoneme.position - phoneme.preutter);
int end = (int)Math.Ceiling(phoneme.End - phoneme.tailIntrude + phoneme.tailOverlap);
int valueInt = (int)Math.Round(value);
DocManager.Inst.ExecuteCmd(new SetCurveCommand(notesViewModel.Project, notesViewModel.Part, expVM.abbr,
start, valueInt,
start, valueInt));
DocManager.Inst.ExecuteCmd(new SetCurveCommand(notesViewModel.Project, notesViewModel.Part, expVM.abbr,
end, valueInt,
end, valueInt));
DocManager.Inst.ExecuteCmd(new SetCurveCommand(notesViewModel.Project, notesViewModel.Part, expVM.abbr,
start, valueInt,
end, valueInt));
} else {
DocManager.Inst.ExecuteCmd(new SetPhonemeExpressionCommand(notesViewModel.Project, track, notesViewModel.Part, phoneme, expVM.abbr, value));
}
DocManager.Inst.ExecuteCmd(new SetPhonemeExpressionCommand(notesViewModel.Project, track, notesViewModel.Part, phoneme, expVM.abbr, value));
}
}
}
Expand Down

0 comments on commit 5f59543

Please sign in to comment.