Struct Note
Represents a musical note, consisting of the note's letter and the octave.
Namespace: InsaneScatterbrain.RetroKit.Editor
Syntax
[Serializable]
public struct Note
Constructors
Note(NoteLetter, Int32)
Declaration
public Note(NoteLetter letter, int octave)
Parameters
Type | Name | Description |
---|---|---|
NoteLetter | letter | |
System.Int32 | octave |
Fields
letter
Declaration
public NoteLetter letter
Field Value
Type | Description |
---|---|
NoteLetter |
octave
Declaration
public int octave
Field Value
Type | Description |
---|---|
System.Int32 |
Methods
ToString()
Converts the note to a string notation. For example, a D on the second octave results in "D2".
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String representation of this note. |
Overrides
System.ValueType.ToString()