Mordent(isUpper)

Class representing a Mordent modification.

A Mordent modification causes an implicit set of notes to be played after the primary printed note. In the case of an upper mordent, the notes to be played are the principle note, the note above it, then the principle note again. In the case of a lower mordent, the notes to be played are the principle note, the note below it, and the principle note again. The total cumulative duration of all notes in the mordent is the same as the printed duration of the principle note.

new Mordent(isUpper)

Constructs a new Mordent modification object.

Parameters:
Name Type Description
isUpper boolean

Whether this modification represents an upper mordent

Extends

Classes

Mordent

Members

key :Key

Overrides:

tempo :Tempo

Overrides:

unmodifiedDetails :NoteDetails

Overrides:

Methods

getModifiedNoteDetails(details) → {Array.<NoteDetails>}

Returns a list of all modified notes, durations, and velocities as generated by the corresponding modification class.

The details variable may contain the following optional key:

offset: Integer offset of the mordent from the primary note

Parameters:
Name Type Description
details Object.<string, number>

Information about the note value of the mordent

Returns:
Array.<NoteDetails> -

List of NoteDetails to replace the original note

Overrides:

static canModifySequence() → {boolean}

Returns whether this modification can be used to modify a sequence of notes.

Returns:
boolean -

Whether this modification can be used to modify a sequence of notes

static getParameters() → {Object.<string, Object.<string, Array.<string>>>}

Returns a list of all parameters available for use in this modification, including whether the parameter is required or optional when playing back either a "sequence" or just a single "note".

Returns:
Object.<string, Object.<string, Array.<string>>> -

List of modification-specific parameter keys and when they are required