Split Notes, Lines and Voices into separate files/classes
This commit is contained in:
1 parent
84fc0fcb91
commit
44c78fad19
32 files changed
+889
-926
No files matched your search
@@ -0,0 +1,18 @@
|
||||
using System.Linq;
|
||||
|
||||
namespace VocaluxeLib.Songs
|
||||
{
|
||||
public class CSungLine : CLineBase<CSungNote>
|
||||
{
|
||||
// for drawing perfect line effect
|
||||
public bool PerfectLine { get; set; }
|
||||
|
||||
public bool IsPerfect(CSongLine compareLine)
|
||||
{
|
||||
PerfectLine = _Notes.Count > 0;
|
||||
PerfectLine &= _Notes.Count == compareLine.NoteCount;
|
||||
PerfectLine &= _Notes.All(note => note.Perfect);
|
||||
return PerfectLine;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user