From deb8a625e621c796f6e6dcf19d64714d143cf5f3 Mon Sep 17 00:00:00 2001
From: oxygen-dioxide <54425948+oxygen-dioxide@users.noreply.github.com>
Date: Wed, 3 Jul 2024 13:51:06 +0800
Subject: [PATCH] turn scale degree on when the user changes the key, add hover
tooltip to music key menu and snap div menu
---
OpenUtau/Strings/Strings.axaml | 4 +++-
OpenUtau/ViewModels/NotesViewModel.cs | 5 +++++
OpenUtau/Views/PianoRollWindow.axaml | 6 ++++--
3 files changed, 12 insertions(+), 3 deletions(-)
diff --git a/OpenUtau/Strings/Strings.axaml b/OpenUtau/Strings/Strings.axaml
index 5e1841906..0b58d45fe 100644
--- a/OpenUtau/Strings/Strings.axaml
+++ b/OpenUtau/Strings/Strings.axaml
@@ -264,7 +264,8 @@ Warning: this option removes custom presets.
Phonetic Assistant
Copy
-
+
+ Key (for scale degree display)
Batch Edits
Lyrics
Replace "-" with "+"
@@ -312,6 +313,7 @@ Warning: this option removes custom presets.
Close
Next
Prev
+ Snap Division
View Final Pitch to Render (R)
View Note Parameters (\)
View Phonemes (O)
diff --git a/OpenUtau/ViewModels/NotesViewModel.cs b/OpenUtau/ViewModels/NotesViewModel.cs
index 5bc2917fb..2b76f0571 100644
--- a/OpenUtau/ViewModels/NotesViewModel.cs
+++ b/OpenUtau/ViewModels/NotesViewModel.cs
@@ -117,6 +117,11 @@ public NotesViewModel() {
Keys = new List();
SetKeyCommand = ReactiveCommand.Create(key => {
+ //Turn on scale degree display if it is off
+ if(Preferences.Default.DegreeStyle == 0){
+ Preferences.Default.DegreeStyle = 1;
+ Preferences.Save();
+ }
DocManager.Inst.StartUndoGroup();
DocManager.Inst.ExecuteCmd(new KeyCommand(Project, key));
DocManager.Inst.EndUndoGroup();
diff --git a/OpenUtau/Views/PianoRollWindow.axaml b/OpenUtau/Views/PianoRollWindow.axaml
index 0959512da..8563c108a 100644
--- a/OpenUtau/Views/PianoRollWindow.axaml
+++ b/OpenUtau/Views/PianoRollWindow.axaml
@@ -514,7 +514,8 @@
-