MusicalScale

Wrapper around a musical scale.

Constructors

this
this(MusicalScaleName scale, MusicalNote note, MusicalScaleType type)

Creates a new musical scale.

Members

Functions

getNaturalNotes
MusicalNote[] getNaturalNotes()

Gets a set of natural notes within the scale.

getNotes
MusicalScaleNote[] getNotes()

Gets a set of notes within the scale.

toJson
string toJson()

Converts the scale to json.

toString
string toString()

Converts the scale to a string. This will call toJson().

toXml
string toXml()

Converts the scale to xml.

Properties

note
MusicalNote note [@property getter]

Gets the name.

scale
MusicalScaleName scale [@property getter]

Gets the scale name.

type
MusicalScaleType type [@property getter]

Gets the type.

Meta