Class IntervalDefinition
Definition of a musical interval which is number and quality.
Inheritance
IntervalDefinition
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class IntervalDefinition
Constructors
IntervalDefinition(Int32, IntervalQuality)
Initializes a new instance of the
IntervalDefinition with the specified
interval number and quality.
Declaration
public IntervalDefinition(int number, IntervalQuality quality)
Parameters
Exceptions
Properties
Number
Gets the interval number.
Declaration
public int Number { get; }
Property Value
Quality
Gets the interval quality.
Declaration
public IntervalQuality Quality { get; }
Property Value
Methods
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
The object to compare with the current object. |
Returns
Type |
Description |
Boolean |
true if the specified object is equal to the current object; otherwise, false . |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
Type |
Description |
Int32 |
A hash code for the current object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type |
Description |
String |
A string that represents the current object. |
Overrides
Operators
Equality(IntervalDefinition, IntervalDefinition)
Declaration
public static bool operator ==(IntervalDefinition intervalDefinition1, IntervalDefinition intervalDefinition2)
Parameters
Returns
Type |
Description |
Boolean |
true if the interval definitions are equal, false otherwise. |
Inequality(IntervalDefinition, IntervalDefinition)
Declaration
public static bool operator !=(IntervalDefinition intervalDefinition1, IntervalDefinition intervalDefinition2)
Parameters
Returns
Type |
Description |
Boolean |
false if the interval definitions are equal, true otherwise. |