|
@@ -47,7 +47,7 @@ export class PedalMarking extends Element {
|
|
|
TEXT: 1,
|
|
|
BRACKET: 2,
|
|
|
MIXED: 3,
|
|
|
- MIXED_OPEN_END: 4,
|
|
|
+ MIXED_OPEN_END: 4, // VexFlowPatch: additions from here on
|
|
|
BRACKET_OPEN_BEGIN: 5,
|
|
|
BRACKET_OPEN_END: 6,
|
|
|
BRACKET_OPEN_BOTH: 7
|
|
@@ -93,7 +93,7 @@ export class PedalMarking extends Element {
|
|
|
constructor(notes) {
|
|
|
super();
|
|
|
this.setAttribute('type', 'PedalMarking');
|
|
|
- this.EndsStave = false;
|
|
|
+ this.EndsStave = false; // VexFlowPatch
|
|
|
this.ChangeBegin = false;
|
|
|
this.ChangeEnd = false;
|
|
|
this.notes = notes;
|
|
@@ -119,7 +119,7 @@ export class PedalMarking extends Element {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
- setEndStave(stave) {
|
|
|
+ setEndStave(stave) { // VexFlowPatch addition
|
|
|
this.endStave = stave;
|
|
|
this.endStaveAddedWidth = 0;
|
|
|
this.startMargin = 0;
|
|
@@ -167,7 +167,7 @@ export class PedalMarking extends Element {
|
|
|
// Each note triggers the opposite pedal action
|
|
|
is_pedal_depressed = !is_pedal_depressed;
|
|
|
// Get the initial coordinates for the note
|
|
|
- let x = 0;
|
|
|
+ let x = 0; // VexFlowPatch (further smaller diffs below)
|
|
|
if (note) {
|
|
|
//default to note head begin
|
|
|
x = note.getNoteHeadBeginX();
|