From b971e3ba7e62ea9d18cc36244b6e8dc56aa2257a Mon Sep 17 00:00:00 2001 From: Edi316 <61267443+Edi316@users.noreply.github.com> Date: Mon, 21 Apr 2025 07:36:31 +0200 Subject: [PATCH] Default tone for Rap notes (#771) --- VocaluxeLib/Songs/CBaseNote.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/VocaluxeLib/Songs/CBaseNote.cs b/VocaluxeLib/Songs/CBaseNote.cs index d28750c2..7fc2f281 100644 --- a/VocaluxeLib/Songs/CBaseNote.cs +++ b/VocaluxeLib/Songs/CBaseNote.cs @@ -68,7 +68,13 @@ namespace VocaluxeLib.Songs public int Tone { - get { return _Tone; } + get + { + // Always return 0 for Rap notes + if (IsRapNote) + return 0; + return _Tone; + } set { if ((value >= CBase.Settings.GetToneMin()) && (value <= CBase.Settings.GetToneMax())) @@ -98,4 +104,4 @@ namespace VocaluxeLib.Songs public abstract bool IsNoteType(params ENoteType[] noteTypes); #endregion Methods } -} \ No newline at end of file +}