A class that represents a musical note, but does not carry any audio data.
This class only makes sense when used in the context of a collection, as the only functionality it provides serves to facilitate identification.
Property Summary
Public Properties | |
---|---|
public |
|
public |
|
public |
|
public |
|
public |
: Number
|
public |
|
Public Properties
addon/mixins/musical-identity.js:44
public accidental: String
For note
Ab5
, this would be b
.addon/mixins/musical-identity.js:35
public letter: String
For note
Ab5
, this would be A
.addon/mixins/musical-identity.js:62
public name: String
Computed property. Value is
${letter}
or ${letter}${accidental}
if
accidental exists.addon/mixins/musical-identity.js:53
public octave: String
For note
Ab5
, this would be 5
.Computed property. The frequency of the note in hertz. Calculated by
comparing western musical standards (a standard piano) and the note
identifier (i.e.
Ab1
). If this property is set directly, all other
properties are updated to reflect the provided frequency.addon/mixins/musical-identity.js:110
public identifier: String
Computed property. Value is
${letter}${octave}
or
${letter}${accidental}${octave}
if accidental exists. If this property
is set directly, all other properties are updated to reflect the provided
identifier.