VexFlowInstrumentBrace.ts 573 B

1234567891011121314
  1. import Vex from "vexflow";
  2. import { VexFlowInstrumentBracket } from "./VexFlowInstrumentBracket";
  3. import { VexFlowStaffLine } from "./VexFlowStaffLine";
  4. /**
  5. * Class that defines a instrument bracket at the beginning of a line.
  6. */
  7. export class VexFlowInstrumentBrace extends VexFlowInstrumentBracket {
  8. constructor(firstVexFlowStaffLine: VexFlowStaffLine, lastVexFlowStaffLine: VexFlowStaffLine, depth: number = 0) {
  9. super(firstVexFlowStaffLine, lastVexFlowStaffLine, depth);
  10. this.vexflowConnector.setType(Vex.Flow.StaveConnector.type.BRACE);
  11. }
  12. }