Note
public struct Note : CustomStringConvertible, Codable
extension Note: Comparable
Definition of a MIDI note.
-
Undocumented
Declaration
Swift
static let sharpTag: String -
Undocumented
Declaration
Swift
static let noteLabels: [String] -
Undocumented
Declaration
Swift
static let solfegeLabels: [String] -
The MIDI value to emit to generate this note
Declaration
Swift
public let midiNoteValue: Int -
True if this note is accented (sharp or flat)
Declaration
Swift
public let accented: Bool -
Obtain a textual representation of the note
Declaration
Swift
public var label: String { get } -
Obtain the solfege representation for this note
Declaration
Swift
public var solfege: String { get } -
Obtain the octave this note is a part of
Declaration
Swift
public var octave: Int { get } -
Custom string representation for a Note instance
Declaration
Swift
public var description: String { get } -
Create new Note instance.
Declaration
Swift
public init(midiNoteValue: Int)Parameters
midiNoteValueMIDI note value for this instance
-
Undocumented
Declaration
Swift
public init?(_ tag: String) -
Allow for ordering of Note instances
Declaration
Swift
public static func < (lhs: Note, rhs: Note) -> BoolParameters
lhsfirst argument to compare
rhssecond argument to compare
Return Value
true if first comes before the second
-
Allow for equality comparisons between Note instances
Declaration
Swift
public static func == (lhs: Note, rhs: Note) -> BoolParameters
lhsfirst argument to compare
rhssecond argument to compare
Return Value
true if the same
View on GitHub
Note Structure Reference