SongChordEntry

Wrapper around a song chord entry.

Constructors

this
this(size_t length, size_t bar)

Creates a new chord entry.

this
this(size_t length, size_t bar, SongChord parentChord)

Creates a new chord entry.

this
this(size_t length, size_t bar, SongNote[] notes)

Creates a new chord entry.

this
this(size_t length, size_t bar, SongNote[] notes, SongChord parentChord)

Creates a new chord entry.

Members

Functions

addNote
void addNote(SongNote note)

Adds a note to the chord entry.

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 chord entry to json.

toString
string toString()

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

toXml
string toXml()

Converts the chord entry to xml.

Properties

bar
size_t bar [@property getter]

Gets the bar of the chord entry.

bar
size_t bar [@property setter]

Sets the bar of the chord entry.

length
size_t length [@property setter]

Sets the length of the chord entry.

length
size_t length [@property getter]

Gets the length of the chord entry.

notes
InternalCollection!SongNote notes [@property getter]

Gets the notes of the chord entry.

parentChord
SongChord parentChord [@property getter]

Gets the parent chord.

parentChord
SongChord parentChord [@property setter]

Sets the parent chord.

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

Gets the scales of the chord entry.

scalesInternal
MusicalScale[] scalesInternal [@property getter]

Gets an array of the musical scales internally in the project. Used to escape const.

Meta