Class NoteDescriptor
Represents an object that describes a note.
Inheritance
NoteDescriptor
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class NoteDescriptor
Constructors
NoteDescriptor(Note, SevenBitNumber, ITimeSpan)
Initializes a new instance of the
NoteDescriptor with the specified note,
velocity and length.
Declaration
public NoteDescriptor(Note note, SevenBitNumber velocity, ITimeSpan length)
Parameters
Exceptions
Properties
Length
Gets the length of the note.
Declaration
public ITimeSpan Length { get; }
Property Value
Note
Gets the note.
Declaration
public Note Note { get; }
Property Value
Velocity
Gets the velocity of the note.
Declaration
public SevenBitNumber Velocity { 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 |
bool |
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 |
int |
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
operator ==(NoteDescriptor, NoteDescriptor)
Declaration
public static bool operator ==(NoteDescriptor noteDescriptor1, NoteDescriptor noteDescriptor2)
Parameters
Returns
Type |
Description |
bool |
true if the descriptors are equal, false otherwise. |
operator !=(NoteDescriptor, NoteDescriptor)
Declaration
public static bool operator !=(NoteDescriptor noteDescriptor1, NoteDescriptor noteDescriptor2)
Parameters
Returns
Type |
Description |
bool |
false if the descriptors are equal, true otherwise. |