|
@@ -169,12 +169,14 @@ export class EngravingRules {
|
|
private octaveShiftVerticalLineLength: number;
|
|
private octaveShiftVerticalLineLength: number;
|
|
private graceLineWidth: number;
|
|
private graceLineWidth: number;
|
|
private minimumStaffLineDistance: number;
|
|
private minimumStaffLineDistance: number;
|
|
|
|
+ private minimumSkyBottomLineDistance: number;
|
|
private minimumCrossedBeamDifferenceMargin: number;
|
|
private minimumCrossedBeamDifferenceMargin: number;
|
|
private displacedNoteMargin: number;
|
|
private displacedNoteMargin: number;
|
|
private minNoteDistance: number;
|
|
private minNoteDistance: number;
|
|
private subMeasureXSpacingThreshold: number;
|
|
private subMeasureXSpacingThreshold: number;
|
|
private measureDynamicsMaxScalingFactor: number;
|
|
private measureDynamicsMaxScalingFactor: number;
|
|
private wholeRestXShiftVexflow: number;
|
|
private wholeRestXShiftVexflow: number;
|
|
|
|
+ private metronomeMarksDrawn: boolean;
|
|
private metronomeMarkXShift: number;
|
|
private metronomeMarkXShift: number;
|
|
private metronomeMarkYShift: number;
|
|
private metronomeMarkYShift: number;
|
|
private maxInstructionsConstValue: number;
|
|
private maxInstructionsConstValue: number;
|
|
@@ -409,7 +411,8 @@ export class EngravingRules {
|
|
this.graceLineWidth = this.staffLineWidth * this.GraceNoteScalingFactor;
|
|
this.graceLineWidth = this.staffLineWidth * this.GraceNoteScalingFactor;
|
|
|
|
|
|
// Line Widths
|
|
// Line Widths
|
|
- this.minimumStaffLineDistance = 1.0;
|
|
|
|
|
|
+ this.minimumStaffLineDistance = 4.0;
|
|
|
|
+ this.minimumSkyBottomLineDistance = 2.0; // default. 1.0 for compacttight mode (1.0 can cause overlaps)
|
|
this.minimumCrossedBeamDifferenceMargin = 0.0001;
|
|
this.minimumCrossedBeamDifferenceMargin = 0.0001;
|
|
|
|
|
|
// xSpacing Variables
|
|
// xSpacing Variables
|
|
@@ -418,6 +421,7 @@ export class EngravingRules {
|
|
this.subMeasureXSpacingThreshold = 35;
|
|
this.subMeasureXSpacingThreshold = 35;
|
|
this.measureDynamicsMaxScalingFactor = 2.5;
|
|
this.measureDynamicsMaxScalingFactor = 2.5;
|
|
this.wholeRestXShiftVexflow = -2.5; // VexFlow draws rest notes too far to the right
|
|
this.wholeRestXShiftVexflow = -2.5; // VexFlow draws rest notes too far to the right
|
|
|
|
+ this.metronomeMarksDrawn = true;
|
|
this.metronomeMarkXShift = -6; // our unit, is taken * unitInPixels
|
|
this.metronomeMarkXShift = -6; // our unit, is taken * unitInPixels
|
|
this.metronomeMarkYShift = -0.5;
|
|
this.metronomeMarkYShift = -0.5;
|
|
|
|
|
|
@@ -1334,6 +1338,12 @@ export class EngravingRules {
|
|
public set MinimumStaffLineDistance(value: number) {
|
|
public set MinimumStaffLineDistance(value: number) {
|
|
this.minimumStaffLineDistance = value;
|
|
this.minimumStaffLineDistance = value;
|
|
}
|
|
}
|
|
|
|
+ public get MinimumSkyBottomLineDistance(): number {
|
|
|
|
+ return this.minimumSkyBottomLineDistance;
|
|
|
|
+ }
|
|
|
|
+ public set MinimumSkyBottomLineDistance(value: number) {
|
|
|
|
+ this.minimumSkyBottomLineDistance = value;
|
|
|
|
+ }
|
|
public get MinimumCrossedBeamDifferenceMargin(): number {
|
|
public get MinimumCrossedBeamDifferenceMargin(): number {
|
|
return this.minimumCrossedBeamDifferenceMargin;
|
|
return this.minimumCrossedBeamDifferenceMargin;
|
|
}
|
|
}
|
|
@@ -1370,6 +1380,12 @@ export class EngravingRules {
|
|
public set WholeRestXShiftVexflow(value: number) {
|
|
public set WholeRestXShiftVexflow(value: number) {
|
|
this.wholeRestXShiftVexflow = value;
|
|
this.wholeRestXShiftVexflow = value;
|
|
}
|
|
}
|
|
|
|
+ public get MetronomeMarksDrawn(): boolean {
|
|
|
|
+ return this.metronomeMarksDrawn;
|
|
|
|
+ }
|
|
|
|
+ public set MetronomeMarksDrawn(value: boolean) {
|
|
|
|
+ this.metronomeMarksDrawn = value;
|
|
|
|
+ }
|
|
public get MetronomeMarkXShift(): number {
|
|
public get MetronomeMarkXShift(): number {
|
|
return this.metronomeMarkXShift;
|
|
return this.metronomeMarkXShift;
|
|
}
|
|
}
|