Staccato(isStaccatissimo)

Class representing a Staccato modification.

A Staccato modification causes a note to be played with a rapid attack for one-half of the printed duration, such that there is silence for the second half of the duration. If a staccatissimo modification is requested, the note will only sound for one-quarter of the printed duration.

new Staccato(isStaccatissimo)

Constructs a new Staccato modification object.

Parameters:
Name Type Description
isStaccatissimo boolean

Whether this modification represents a staccatissimo duration shortening

Extends

Classes

Staccato

Members

key :Key

Overrides:

tempo :Tempo

Overrides:

unmodifiedDetails :NoteDetails

Overrides:

Methods

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

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

Parameters:
Name Type Attributes Description
details Object | null <optional>

Optional details used to refine the requested modification

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