Skip to content

Duration.Subtract

Chanan edited this page Aug 15, 2020 · 2 revisions

Duration.Subtract Method

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


Summary

Subtracts the given duration from this duration instance,
and returns the difference length between them as a new duration.


Remarks

The argument's length must be equal or shorter than this duration's length.


Parameters

Name Type Description
duration IDuration The duration to subtract from this duration.

Returns

The new duration which is the result of the subtraction.


Source Code

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