Namespace: Bravura.Tonality
public record Interval : ITonality
Inheritance: Object -> Interval Implements: ITonality
Constructor | Description |
---|---|
Interval(Int32, Accidental, Int32, String, String) | Initializes a new instance of the Interval record. * |
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. |
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.