Skip to content

Note.ToString

Chanan edited this page Aug 18, 2020 · 1 revision

Note.ToString Method

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


Summary

Returns a string representation of the given note instance state.


Returns

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}}}'.


Source Code

public override string ToString()
{
    string name = Name?.GetDisplayName() ?? "NIL";
    string pitch = Pitch.GetDisplayName() ?? Pitch.ToString();
    return $"{{Name={name}; Pitch={pitch}; Duration={Duration}}}";
}
  • Home
  • Getting Started
  • Design
    • Business Logical Layer (CW.Soloist.CompositionService)
    • Data Access Layer
    • Presentation Layer
Clone this wiki locally