-
Notifications
You must be signed in to change notification settings - Fork 0
Duration.Subtract
Chanan edited this page Aug 15, 2020
·
2 revisions
Duration.Subtract Method
Namespace: CW.Soloist.CompositionService.MusicTheory
Assembly: CW.Soloist.CompositionService.dll
Subtracts the given duration from this duration instance,
and returns the difference length between them as a new duration.
The argument's length must be equal or shorter than this duration's length.
Name | Type | Description |
---|---|---|
duration | IDuration | The duration to subtract from this duration. |
The new duration which is the result of the subtraction.
public IDuration Subtract(IDuration duration)
{
return MusicTheoryServices.DurationAritmetic(MusicTheoryServices.AritmeticOperation.Subtract, this, duration)
.ReduceFractionToLowestTerms();
}
© Chanan Welt - Soloist
- Home
- Getting Started
- Design
- Business Logical Layer (CW.Soloist.CompositionService)
- Duration Representation
- IDuration
- Duration
- Duration Representation
- Data Access Layer
- Presentation Layer
- Business Logical Layer (CW.Soloist.CompositionService)