staff/tab index (0=top), staff/tab name, or staff group name.
Optionaloptions: NoteOptionsOptionaltieSpan: number | "stub" | "toMeasureEnd" | TieTypeOptionalnotAnchor: "auto" | "above" | "center" | "below" | "stemTip" | NoteAnchorOptionalslurSpan: numberOptionalnotAnchor: "auto" | "above" | "center" | "below" | "stemTip" | NoteAnchorOptionalnotAnchor: "auto" | "above" | "center" | "below" | "stemTip" | NoteAnchorExtension length example:
addExtension(ext => ext.notes("1n", 2)) // length is 2 whole notes
addExtension(ext => ext.measures(3).hide()) // length is 3 measures, hidden
addExtension(ext => ext.measures(1).notes("8n")) // length is 1 measure + 1 eigth note
addExtension(ext => ext.infinity()) // length is as long as possible
OptionalextensionBuilder: (ext: ExtensionBuilder) => voidstaff/tab index (0=top), staff/tab name, or staff group name.
staff/tab index (0=top), staff/tab name, or staff group name.
staff/tab index (0=top), staff/tab name, or staff group name.
staff/tab index (0=top), staff/tab name, or staff group name.
staff/tab index (0=top), staff/tab name, or staff group name.
Optionaloptions: NoteOptionsOptionaloptions: RestOptionsName of staff group.
staff/tab index (0=top), staff/tab name, or staff group name. Single value or array.
Vertical position, are elements added above, below or both.
Usage:
addTuplet(0, Theory.Tuplet.Triplet, notes => {
notes.addNote("G3", Theory.NoteLength.Eighth);
notes.addNote("B3", Theory.NoteLength.Eighth);
notes.addNote("D4", Theory.NoteLength.Eighth);
});
You can also use Theory.Tuplet presets (e.g. Theory.Tuplet.Triplet).
Optionaltitle: stringOptionalcomposer: stringOptionalarranger: string
staff/tab index (0=top), staff/tab name, or staff group name.