This mixin allows an object to have an awareness of it's "musical identity" or "note value" based on western musical standards (a standard piano). If any of the following are provided, all of the remaining properties will be calculated:

  1. frequency
  2. identifier (i.e. "Ab1")
  3. letter, octave, and (optionally) accidental

This mixin only makes sense when the consuming object is part of a collection, as the only functionality it provides serves to facilitate identification.

Property Summary

Public Properties
public

For note Ab5, this would be b.

public

For note Ab5, this would be A.

public

Computed property. Value is ${letter} or ${letter}${accidental} if accidental exists.

public

For note Ab5, this would be 5.

public
: Number

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.

public

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.

Public Properties

For note Ab5, this would be b.

For note Ab5, this would be A.

Computed property. Value is ${letter} or ${letter}${accidental} if accidental exists.

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.

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.