Make CSingNotes also implement Draw()
Also a bit refactoring
This commit is contained in:
1 parent
6bf8a5d64c
commit
2f99cd2560
17 files changed
+489
-697
No files matched your search
@@ -80,10 +80,15 @@ namespace VocaluxeLib.Songs
|
||||
get { return _Voices.Count; }
|
||||
}
|
||||
|
||||
public CVoice GetVoice(int index)
|
||||
public CVoice GetVoice(int index, bool add = false)
|
||||
{
|
||||
while (index >= _Voices.Count)
|
||||
_Voices.Add(new CVoice());
|
||||
if (add)
|
||||
{
|
||||
while (index >= _Voices.Count)
|
||||
_Voices.Add(new CVoice());
|
||||
}
|
||||
else if (index >= _Voices.Count)
|
||||
return null;
|
||||
|
||||
return _Voices[index];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user