-
Notifications
You must be signed in to change notification settings - Fork 0
Note(NotePitch,IDuration)
Chanan edited this page Aug 18, 2020
·
1 revision
Note(NotePitch,IDuration) Constructor
Namespace: CW.Soloist.CompositionService.MusicTheory
Assembly: CW.Soloist.CompositionService.dll
Constructs a new note instance based on a given pitch and duration.
public Note(NotePitch pitch, IDuration duration)
{
Pitch = pitch;
Name = GetNoteNameByNotePitch(pitch);
Duration = new Duration(duration.Numerator, duration.Denominator);
}
Name | Type | Description |
---|---|---|
pitch | NotePitch | MIDI absolute pitch value. |
duration | IDuration | Duration of new note. |
© 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)