Added basic support for rap notes and golden rap notes
This commit is contained in:
1 parent
fda7d4acb3
commit
efead3615c
5 files changed
+21
-4
No files matched your search
@@ -364,7 +364,9 @@ namespace VocaluxeLib
|
||||
{
|
||||
Normal,
|
||||
Golden,
|
||||
Freestyle
|
||||
Freestyle,
|
||||
Rap,
|
||||
RapGolden
|
||||
}
|
||||
|
||||
public enum EMusicType
|
||||
|
||||
@@ -616,6 +616,10 @@ namespace VocaluxeLib.Songs
|
||||
noteType = ENoteType.Golden;
|
||||
else if (tag.Equals('F'))
|
||||
noteType = ENoteType.Freestyle;
|
||||
else if (tag.Equals('R'))
|
||||
noteType = ENoteType.Rap;
|
||||
else if (tag.Equals('G'))
|
||||
noteType = ENoteType.RapGolden;
|
||||
else
|
||||
noteType = ENoteType.Normal;
|
||||
|
||||
|
||||
@@ -49,8 +49,10 @@ namespace VocaluxeLib.Songs
|
||||
switch (Type)
|
||||
{
|
||||
case ENoteType.Normal:
|
||||
case ENoteType.Rap:
|
||||
return 1;
|
||||
case ENoteType.Golden:
|
||||
case ENoteType.RapGolden:
|
||||
return 2;
|
||||
case ENoteType.Freestyle:
|
||||
return 0;
|
||||
|
||||
@@ -187,6 +187,12 @@ namespace VocaluxeLib.Songs
|
||||
case ENoteType.Freestyle:
|
||||
tag = "F";
|
||||
break;
|
||||
case ENoteType.Rap:
|
||||
tag = "R";
|
||||
break;
|
||||
case ENoteType.RapGolden:
|
||||
tag = "G";
|
||||
break;
|
||||
default:
|
||||
throw new NotImplementedException("Note type " + note.Type);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user