瀏覽代碼

feat(Added missing files after tslint fixes): fixing the tslint stuff removed my files from the stag

Anyways, this is part of the Expressions feature and draws instantanious dynamics
Benjamin Giesinger 7 年之前
父節點
當前提交
1a386db4f5

+ 0 - 1
src/MusicalScore/Graphical/MusicSheetDrawer.ts

@@ -23,7 +23,6 @@ import {GraphicalMusicPage} from "./GraphicalMusicPage";
 import {Instrument} from "../Instrument";
 import {MusicSymbolDrawingStyle, PhonicScoreModes} from "./DrawingMode";
 import {GraphicalObject} from "./GraphicalObject";
-import { GraphicalInstantaniousDynamicExpression } from "./GraphicalInstantaniousDynamicExpression";
 
 /**
  * Draw a [[GraphicalMusicSheet]] (through the .drawSheet method)

+ 0 - 1
src/MusicalScore/Graphical/VexFlow/VexFlowInstantaniousDynamicExpression.ts

@@ -5,7 +5,6 @@ import { GraphicalLabel } from "../GraphicalLabel";
 import { Label } from "../../Label";
 import { TextAlignment } from "../../../Common/Enums/TextAlignment";
 import { EngravingRules } from "../EngravingRules";
-import { Fonts } from "../../../Common/Enums/Fonts";
 import { FontStyles } from "../../../Common/Enums/FontStyles";
 
 export class VexFlowInstantaniousDynamicExpression extends GraphicalInstantaniousDynamicExpression {

+ 1 - 5
src/MusicalScore/Graphical/VexFlow/VexFlowMeasure.ts

@@ -605,14 +605,10 @@ export class VexFlowMeasure extends StaffMeasure {
         }
         this.createArticulations();
         if (this.instantaniousDynamics.length > 0) {
-            this.createInstantDynamics();
+            // this.createInstantDynamics();
         }
     }
 
-    private createInstantDynamics(): void {
-
-    }
-
     private createArticulations(): void {
         for (let idx: number = 0, len: number = this.staffEntries.length; idx < len; ++idx) {
             const graphicalStaffEntry: VexFlowStaffEntry = (this.staffEntries[idx] as VexFlowStaffEntry);

+ 0 - 1
src/MusicalScore/Graphical/VexFlow/VexFlowMusicSheetCalculator.ts

@@ -268,7 +268,6 @@ export class VexFlowMusicSheetCalculator extends MusicSheetCalculator {
   protected calculateDynamicExpressionsForSingleMultiExpression(multiExpression: MultiExpression, measureIndex: number, staffIndex: number): void {
     if (multiExpression.InstantaniousDynamic) {
         const timeStamp: Fraction = multiExpression.Timestamp;
-        const staffLine: StaffLine = this.graphicalMusicSheet.MeasureList[measureIndex][staffIndex].ParentStaffLine;
         const measure: StaffMeasure = this.graphicalMusicSheet.MeasureList[measureIndex][staffIndex];
         const startStaffEntry: GraphicalStaffEntry = measure.findGraphicalStaffEntryFromTimestamp(timeStamp);
         const idx: VexFlowInstantaniousDynamicExpression = new VexFlowInstantaniousDynamicExpression(multiExpression.InstantaniousDynamic, startStaffEntry);

+ 0 - 3
src/MusicalScore/Graphical/VexFlow/VexFlowMusicSheetDrawer.ts

@@ -14,9 +14,7 @@ import { VexFlowInstrumentBracket } from "./VexFlowInstrumentBracket";
 import { VexFlowInstrumentBrace } from "./VexFlowInstrumentBrace";
 import { GraphicalLyricEntry } from "../GraphicalLyricEntry";
 import { StaffLine } from "../StaffLine";
-import { GraphicalOctaveShift } from "../GraphicalOctaveShift";
 import { VexFlowOctaveShift } from "./VexFlowOctaveShift";
-import { GraphicalInstantaniousDynamicExpression } from "../GraphicalInstantaniousDynamicExpression";
 import { VexFlowInstantaniousDynamicExpression } from "./VexFlowInstantaniousDynamicExpression";
 
 /**
@@ -140,7 +138,6 @@ export class VexFlowMusicSheetDrawer extends MusicSheetDrawer {
     protected drawInstantaniousDynamic(staffline: StaffLine): void {
         for (const m of staffline.Measures as VexFlowMeasure[]) {
             for (const idx of m.instantaniousDynamics as VexFlowInstantaniousDynamicExpression[]) {
-                const ctx: Vex.Flow.RenderContext = this.backend.getContext();
                 this.drawLabel(idx.Label, <number>GraphicalLayers.Notes);
             }
         }