SongMelody

Wrapper around a song melody.

Constructors

this
this(SongNote[] notes)

Creates a new song melody.

this
this()

Creates a new song melody.

Members

Functions

appendNote
void appendNote(SongNote note)

Appends a note to the melody.

convertFromFlat
void convertFromFlat()

Converts the musical notes from flat notes to their relative notes.

convertToFlat
void convertToFlat()

Converts the musical notes to their relative flat notes.

toJson
string toJson()

Converts the melody to json.

toString
string toString()

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

toXml
string toXml()

Converts the melody to xml.

Properties

notes
NoteCollection notes [@property getter]

Gets the notes of the melody.

progression
MusicalProgression progression [@property getter]

Gets the progression of the melody.

scales
const(MusicalScale[]) scales [@property getter]

Gets the scales of the melody.

Meta