SongNote

Wrapper around a song note.

Constructors

this
this(MusicalNote note, size_t length, size_t step, size_t octave, size_t bar)

Creates a new song note.

this
this(MusicalNote note, size_t step, size_t octave, SongChordEntry parentChordEntry)

Creates a new song note.

Members

Functions

convertFromFlat
void convertFromFlat()

Converts the musical note from a flat note to its relative note.

convertToFlat
void convertToFlat()

Converts the musical note to its relative flat note.

toJson
string toJson()

Converts the note to json.

toString
string toString()

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

toXml
string toXml()

Converts the note to xml.

Properties

bar
size_t bar [@property getter]

Gets the bar.

length
size_t length [@property getter]

Gets the length.

note
MusicalNote note [@property getter]

Gets the musical note.

octave
size_t octave [@property getter]

Gets the octave.

parentChordEntry
SongChordEntry parentChordEntry [@property getter]

Gets the parent chord entry.

parentChordEntry
SongChordEntry parentChordEntry [@property setter]

Sets the parent chord entry.

relativeStep
size_t relativeStep [@property getter]

Gets the relative step.

step
size_t step [@property getter]

Gets the step.

Meta