Default tone for Rap notes (#771)

This commit is contained in:
Edi316 authored and GitHub committed 2025-04-21 07:36:31 +02:00
1 parent ea1c684ef9
commit b971e3ba7e
1 file changed
+8 -2
+8 -2
View File
@@ -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
}
}
}