private void StartRootBeam(int?tuplet) { _currentBeam = new Beam(_beamNoteValue.Half(), _ownerVoice, true) { Tuplet = tuplet }; _rootBeats.Add(_currentBeam); _beamStack.Push(_currentBeam); while (_currentCapacity <= _duration) { _currentCapacity += _beamNoteValue.GetDuration(); } }
public double GetBeats(BaseNoteValue beatLength) { return(this.GetDuration() / beatLength.GetDuration()); }