Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 2.97 KB

Bravura.Tonality.Interval.md

File metadata and controls

35 lines (27 loc) · 2.97 KB

Interval Record

Namespace: Bravura.Tonality

Represents the distance between two pitches.

public record Interval : ITonality

Inheritance: Object -> Interval Implements: ITonality

Constructors

Constructor Description
Interval(Int32, Accidental, Int32, String, String) Initializes a new instance of the Interval record. *

Fields

Field Type Description
Semitones Int32 The size of the interval in semitones.
Accidental Accidental
Degree Int32 The count of note indices that the interval spans.
Name String The name for this instance.
Symbol String The symbol for this instance.

Methods

Method Return Type Description
EffectivelyEquals(Interval) Boolean Determines whether the specified interval has the same semitones as the current interval.
ToString() String Returns the string representation of the interval.
TryParse(String, out Interval) Boolean Converts the string representation of an interval to an instance of an Interval. A return value indicates whether the conversion succeeded.

* See the static class Intervals for all instances.