SongChord

Wrapper around a song chord.

Constructors

this
this(size_t bar, size_t positiveHarmonics, size_t negativeHarmonics)

Creates a new song chord.

this
this(SongChordEntry[] entries, size_t bar, size_t positiveHarmonics, size_t negativeHarmonics)

Creates a new song chord.

Members

Functions

addChordEntry
void addChordEntry(SongChordEntry entry)

Adds a entries to the chord entry.

toJson
string toJson()

Converts the chord to json.

toString
string toString()

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

toXml
string toXml()

Converts the chord to xml.

Properties

bar
size_t bar [@property getter]

Gets the bar of the chord.

entries
ChordEntryCollection entries [@property getter]

Gets the entries of the chord.

negativeHarmonics
size_t negativeHarmonics [@property getter]

Gets the negative harmonics of the chord.

negativeHarmonics
size_t negativeHarmonics [@property setter]

Sets the negative harmonics of the chord.

positiveHarmonics
size_t positiveHarmonics [@property getter]

Gets the positive harmonics of the chord.

positiveHarmonics
size_t positiveHarmonics [@property setter]

Sets the positive harmonics of the chord.

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

Gets the scales of the chord.

Meta