-
Notifications
You must be signed in to change notification settings - Fork 0
Note.ToString
Chanan edited this page Aug 18, 2020
·
1 revision
Note.ToString Method
Namespace: CW.Soloist.CompositionService.MusicTheory
Assembly: CW.Soloist.CompositionService.dll
Returns a string representation of the given note instance state.
a string representation of the given note in the following form,
where the curly brackets {} represent placeholders for the actual runtime values:
'{{Name={name}; Pitch={pitch}; Duration={Duration}}}'.
public override string ToString()
{
string name = Name?.GetDisplayName() ?? "NIL";
string pitch = Pitch.GetDisplayName() ?? Pitch.ToString();
return $"{{Name={name}; Pitch={pitch}; Duration={Duration}}}";
}
© 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)