diff --git a/OpenUtau.Core/Commands/ExpCommands.cs b/OpenUtau.Core/Commands/ExpCommands.cs index 353a03b6c..55bf85e1b 100644 --- a/OpenUtau.Core/Commands/ExpCommands.cs +++ b/OpenUtau.Core/Commands/ExpCommands.cs @@ -193,6 +193,19 @@ public ResetPitchPointsCommand(UVoicePart part, UNote note) : base(part) { public override void Unexecute() => Note.pitch = oldPitch; } + public class SetPitchPointsCommand : PitchExpCommand { + UPitch oldPitch; + UPitch newPitch; + public SetPitchPointsCommand(UVoicePart part, UNote note, UPitch pitch) : base(part) { + Note = note; + oldPitch = note.pitch; + newPitch = pitch; + } + public override string ToString() => "Set pitch points"; + public override void Execute() => Note.pitch = newPitch; + public override void Unexecute() => Note.pitch = oldPitch; + } + public class SetCurveCommand : ExpCommand { readonly UProject project; readonly string abbr; diff --git a/OpenUtau/Controls/NotePropertiesControl.axaml b/OpenUtau/Controls/NotePropertiesControl.axaml new file mode 100644 index 000000000..7fb31c017 --- /dev/null +++ b/OpenUtau/Controls/NotePropertiesControl.axaml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + + + + + +