Skip to content

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

Summary

Constructs a new note instance based on a given pitch and duration.

Source Code

public Note(NotePitch pitch, IDuration duration)
{
    Pitch = pitch;
    Name = GetNoteNameByNotePitch(pitch);
    Duration = new Duration(duration.Numerator, duration.Denominator);
}

Parameters

Name Type Description
pitch NotePitch MIDI absolute pitch value.
duration IDuration Duration of new note.
  • Home
  • Getting Started
  • Design
    • Business Logical Layer (CW.Soloist.CompositionService)
    • Data Access Layer
    • Presentation Layer
Clone this wiki locally