UNPKG

vexflow

Version:

A JavaScript library for rendering music notation and guitar tablature.

20 lines (19 loc) 511 B
import { StaveTie } from './stavetie.js'; export class TabTie extends StaveTie { static get CATEGORY() { return "TabTie"; } static createHammeron(notes) { return new TabTie(notes, 'H'); } static createPulloff(notes) { return new TabTie(notes, 'P'); } constructor(notes, text) { super(notes, text); this.render_options.cp1 = 9; this.render_options.cp2 = 11; this.render_options.y_shift = 3; this.direction = -1; } }