public static Beat GetLastBeat(this IBeatElementContainer container) { while (container.Elements != null && container.Elements.Count > 0) { var lastElement = container.Elements[container.Elements.Count - 1]; var firstBeat = lastElement as Beat; if (firstBeat != null) { return(firstBeat); } container = (IBeatElementContainer)lastElement; } return(null); }
void IInternalBeatElement.SetOwner(IBeatElementContainer owner) { this.BeatElementOwner = owner; }
internal Beam(Beam owner, BaseNoteValue beatNoteValue, Voice ownerVoice) : this(beatNoteValue, ownerVoice, false) { this.BeatElementOwner = owner; }