Skip to content

Duration.Add

Chanan edited this page Aug 15, 2020 · 2 revisions

Duration.Add Method

Namespace: CW.Soloist.CompositionService.MusicTheory
Assembly: CW.Soloist.CompositionService.dll


Summary

Adds the given duration to this duration instance,
and returns the sum length of them as a new duration.


Parameters

Name Type Description
duration IDuration The duration to add to this one

Returns

The new duration with a length which is the sum of the addition.


Source Code

public IDuration Add(IDuration duration)
{
    return MusicTheoryServices.DurationAritmetic(MusicTheoryServices.AritmeticOperation.Add, this, duration)
        .ReduceFractionToLowestTerms();
}
  • Home
  • Getting Started
  • Design
    • Business Logical Layer (CW.Soloist.CompositionService)
    • Data Access Layer
    • Presentation Layer
Clone this wiki locally