vexflow-native 1.8.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +71 -403
- package/lib/module/base/FontManager.js +5 -5
- package/lib/module/base/FontManager.js.map +1 -1
- package/lib/module/base/VexflowCanvas.js +1 -1
- package/lib/module/base/VexflowCanvas.js.map +1 -1
- package/lib/module/base/VexflowRecordingContext.js +2 -0
- package/lib/module/base/VexflowRecordingContext.js.map +1 -1
- package/lib/module/base/VexflowRecordingReplay.js +1 -1
- package/lib/module/base/VexflowRecordingReplay.js.map +1 -1
- package/lib/module/base/index.js +1 -0
- package/lib/module/base/index.js.map +1 -1
- package/lib/module/musicxml/MusicXmlParser/MeasureParser.js +24 -7
- package/lib/module/musicxml/MusicXmlParser/MeasureParser.js.map +1 -1
- package/lib/module/musicxml/MusicXmlParser/MusicXmlDirections.js +11 -3
- package/lib/module/musicxml/MusicXmlParser/MusicXmlDirections.js.map +1 -1
- package/lib/module/musicxml/MusicXmlParser/Spanners.js +21 -5
- package/lib/module/musicxml/MusicXmlParser/Spanners.js.map +1 -1
- package/lib/module/musicxml/MusicXmlParser/mappers.js +1 -1
- package/lib/module/musicxml/MusicXmlParser/mappers.js.map +1 -1
- package/lib/module/{state/constants.js → percussion/index.js} +3 -3
- package/lib/module/percussion/index.js.map +1 -0
- package/lib/module/renderer/ScoreRenderer/ScoreOverlayPicture.js +4 -3
- package/lib/module/renderer/ScoreRenderer/ScoreOverlayPicture.js.map +1 -1
- package/lib/module/renderer/ScoreRenderer/ScorePlayhead.js +1 -1
- package/lib/module/renderer/ScoreRenderer/ScorePlayhead.js.map +1 -1
- package/lib/module/renderer/ScoreRenderer/ScoreRenderer.js +5 -1
- package/lib/module/renderer/ScoreRenderer/ScoreRenderer.js.map +1 -1
- package/lib/module/renderer/ScoreRenderer/utils.js +1 -1
- package/lib/module/renderer/ScoreRenderer/utils.js.map +1 -1
- package/lib/module/renderer/fixedNoteSpacing.js +56 -0
- package/lib/module/renderer/fixedNoteSpacing.js.map +1 -0
- package/lib/module/renderer/index.js +1 -0
- package/lib/module/renderer/index.js.map +1 -1
- package/lib/module/renderer/itemLayout.js +108 -0
- package/lib/module/renderer/itemLayout.js.map +1 -0
- package/lib/module/renderer/measure.js +30 -106
- package/lib/module/renderer/measure.js.map +1 -1
- package/lib/module/renderer/measureBounds.js +73 -0
- package/lib/module/renderer/measureBounds.js.map +1 -0
- package/lib/module/renderer/measureModifiers.js +99 -0
- package/lib/module/renderer/measureModifiers.js.map +1 -0
- package/lib/module/renderer/noteModifiers.js +212 -0
- package/lib/module/renderer/noteModifiers.js.map +1 -0
- package/lib/module/renderer/render.js +33 -116
- package/lib/module/renderer/render.js.map +1 -1
- package/lib/module/renderer/scale.js +16 -2
- package/lib/module/renderer/scale.js.map +1 -1
- package/lib/module/renderer/scoreParsing.js +37 -199
- package/lib/module/renderer/scoreParsing.js.map +1 -1
- package/lib/module/renderer/stave.js +19 -3
- package/lib/module/renderer/stave.js.map +1 -1
- package/lib/module/renderer/useScoreRecording.js +10 -3
- package/lib/module/renderer/useScoreRecording.js.map +1 -1
- package/lib/module/renderer/vfKeys.js +72 -0
- package/lib/module/renderer/vfKeys.js.map +1 -0
- package/lib/module/state/index.js +1 -1
- package/lib/module/state/index.js.map +1 -1
- package/lib/typescript/src/base/FontManager.d.ts +3 -2
- package/lib/typescript/src/base/FontManager.d.ts.map +1 -1
- package/lib/typescript/src/base/VexflowRecordingContext.d.ts +2 -1
- package/lib/typescript/src/base/VexflowRecordingContext.d.ts.map +1 -1
- package/lib/typescript/src/base/VexflowRecordingReplay.d.ts +1 -1
- package/lib/typescript/src/base/VexflowRecordingReplay.d.ts.map +1 -1
- package/lib/typescript/src/base/index.d.ts +1 -0
- package/lib/typescript/src/base/index.d.ts.map +1 -1
- package/lib/typescript/src/base/types.d.ts +1 -1
- package/lib/typescript/src/base/types.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/InternalTypes.d.ts +4 -2
- package/lib/typescript/src/musicxml/MusicXmlParser/InternalTypes.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/MeasureParser.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/MusicXmlDirections.d.ts +6 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/MusicXmlDirections.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/Spanners.d.ts +6 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/Spanners.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/MusicXmlParser/mappers.d.ts.map +1 -1
- package/lib/typescript/src/musicxml/index.d.ts +1 -0
- package/lib/typescript/src/musicxml/index.d.ts.map +1 -1
- package/lib/typescript/src/percussion/index.d.ts +4 -0
- package/lib/typescript/src/percussion/index.d.ts.map +1 -0
- package/lib/typescript/src/renderer/ScoreRenderer/ScoreOverlayPicture.d.ts +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/ScoreOverlayPicture.d.ts.map +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/ScorePlayhead.d.ts +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/ScorePlayhead.d.ts.map +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/ScoreRenderer.d.ts.map +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/types.d.ts +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/types.d.ts.map +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/utils.d.ts +1 -1
- package/lib/typescript/src/renderer/ScoreRenderer/utils.d.ts.map +1 -1
- package/lib/typescript/src/renderer/fixedNoteSpacing.d.ts +17 -0
- package/lib/typescript/src/renderer/fixedNoteSpacing.d.ts.map +1 -0
- package/lib/typescript/src/renderer/index.d.ts +2 -0
- package/lib/typescript/src/renderer/index.d.ts.map +1 -1
- package/lib/typescript/src/renderer/itemLayout.d.ts +23 -0
- package/lib/typescript/src/renderer/itemLayout.d.ts.map +1 -0
- package/lib/typescript/src/renderer/layout.d.ts +1 -1
- package/lib/typescript/src/renderer/layout.d.ts.map +1 -1
- package/lib/typescript/src/renderer/measure.d.ts +3 -6
- package/lib/typescript/src/renderer/measure.d.ts.map +1 -1
- package/lib/typescript/src/renderer/measureBounds.d.ts +13 -0
- package/lib/typescript/src/renderer/measureBounds.d.ts.map +1 -0
- package/lib/typescript/src/renderer/measureModifiers.d.ts +20 -0
- package/lib/typescript/src/renderer/measureModifiers.d.ts.map +1 -0
- package/lib/typescript/src/renderer/noteModifiers.d.ts +29 -0
- package/lib/typescript/src/renderer/noteModifiers.d.ts.map +1 -0
- package/lib/typescript/src/renderer/render.d.ts +2 -27
- package/lib/typescript/src/renderer/render.d.ts.map +1 -1
- package/lib/typescript/src/renderer/scale.d.ts.map +1 -1
- package/lib/typescript/src/renderer/scoreParsing.d.ts +14 -42
- package/lib/typescript/src/renderer/scoreParsing.d.ts.map +1 -1
- package/lib/typescript/src/renderer/stave.d.ts +2 -0
- package/lib/typescript/src/renderer/stave.d.ts.map +1 -1
- package/lib/typescript/src/renderer/types.d.ts +52 -3
- package/lib/typescript/src/renderer/types.d.ts.map +1 -1
- package/lib/typescript/src/renderer/useScoreRecording.d.ts +3 -3
- package/lib/typescript/src/renderer/useScoreRecording.d.ts.map +1 -1
- package/lib/typescript/src/renderer/vfKeys.d.ts +17 -0
- package/lib/typescript/src/renderer/vfKeys.d.ts.map +1 -0
- package/lib/typescript/src/state/index.d.ts +1 -1
- package/lib/typescript/src/state/index.d.ts.map +1 -1
- package/lib/typescript/src/state/types.d.ts +23 -5
- package/lib/typescript/src/state/types.d.ts.map +1 -1
- package/package.json +31 -17
- package/src/base/FontManager.ts +5 -11
- package/src/base/TextMeasureContext.ts +1 -1
- package/src/base/VexflowCanvas.tsx +1 -1
- package/src/base/VexflowRecordingContext.ts +2 -4
- package/src/base/VexflowRecordingReplay.ts +1 -1
- package/src/base/index.ts +1 -0
- package/src/base/types.ts +1 -1
- package/src/musicxml/MusicXmlParser/InternalTypes.ts +5 -2
- package/src/musicxml/MusicXmlParser/MeasureParser.ts +36 -7
- package/src/musicxml/MusicXmlParser/MusicXmlDirections.ts +25 -8
- package/src/musicxml/MusicXmlParser/Spanners.ts +27 -4
- package/src/musicxml/MusicXmlParser/mappers.ts +7 -0
- package/src/musicxml/index.ts +1 -0
- package/src/percussion/index.ts +7 -0
- package/src/renderer/Layout/VerticalSpacing.ts +1 -1
- package/src/renderer/ScoreRenderer/ScoreOverlayPicture.tsx +4 -7
- package/src/renderer/ScoreRenderer/ScorePlayhead.tsx +1 -1
- package/src/renderer/ScoreRenderer/ScoreRenderer.tsx +5 -7
- package/src/renderer/ScoreRenderer/types.ts +1 -4
- package/src/renderer/ScoreRenderer/utils.ts +1 -1
- package/src/renderer/fixedNoteSpacing.ts +78 -0
- package/src/renderer/index.ts +8 -0
- package/src/renderer/itemLayout.ts +137 -0
- package/src/renderer/layout.ts +1 -1
- package/src/renderer/measure.tsx +84 -186
- package/src/renderer/measureBounds.ts +109 -0
- package/src/renderer/measureModifiers.ts +133 -0
- package/src/renderer/noteModifiers.ts +298 -0
- package/src/renderer/render.tsx +59 -169
- package/src/renderer/scale.ts +21 -1
- package/src/renderer/scoreParsing.tsx +77 -288
- package/src/renderer/stave.ts +22 -3
- package/src/renderer/types.ts +66 -3
- package/src/renderer/useScoreRecording.ts +12 -4
- package/src/renderer/vfKeys.ts +88 -0
- package/src/state/index.ts +1 -1
- package/src/state/types.ts +30 -5
- package/lib/module/musicxml/testfiles/lg-8102429.xml +0 -79620
- package/lib/module/state/constants.js.map +0 -1
- package/lib/typescript/src/state/constants.d.ts +0 -4
- package/lib/typescript/src/state/constants.d.ts.map +0 -1
- package/src/musicxml/testfiles/lg-8102429.xml +0 -79620
- package/src/state/constants.ts +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SkFont, type SkTypefaceFontProvider } from '
|
|
1
|
+
import { type SkFont, type SkTypefaceFontProvider } from 'react-native-skia';
|
|
2
2
|
import { RenderContext as VexflowRenderContext } from 'vexflow';
|
|
3
3
|
import type { FontInfo } from 'vexflow';
|
|
4
4
|
import TextMeasureContext from './TextMeasureContext';
|
|
@@ -19,6 +19,7 @@ export default class VexflowRecordingContext implements VexflowRenderContext {
|
|
|
19
19
|
private colorScheme?;
|
|
20
20
|
constructor(fontProvider: SkTypefaceFontProvider, defaultFont: string, colorScheme?: VexflowColorScheme);
|
|
21
21
|
getCurrentSkFont(): SkFont;
|
|
22
|
+
/** @internal */
|
|
22
23
|
getMeasurementContext(): TextMeasureContext;
|
|
23
24
|
finish(): readonly VexflowRecordingCommand[];
|
|
24
25
|
clear(): this;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VexflowRecordingContext.d.ts","sourceRoot":"","sources":["../../../../src/base/VexflowRecordingContext.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"VexflowRecordingContext.d.ts","sourceRoot":"","sources":["../../../../src/base/VexflowRecordingContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAE7E,OAAO,EAAW,aAAa,IAAI,oBAAoB,EAAE,MAAM,SAAS,CAAC;AACzE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGxC,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,OAAO,EAEL,KAAK,kBAAkB,EACxB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EACV,uBAAuB,EAMxB,MAAM,yBAAyB,CAAC;AAgBjC,MAAM,CAAC,OAAO,OAAO,uBAAwB,YAAW,oBAAoB;IAC1E,cAAc,UAAQ;IAEtB,OAAO,CAAC,QAAQ,CAAiC;IACjD,OAAO,CAAC,YAAY,CAAC,CAAS;IAC9B,OAAO,CAAC,WAAW,CAAC,CAAgC;IACpD,OAAO,CAAC,SAAS,CAEf;IACF,OAAO,CAA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AAa,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM;IAK1D,aAAa;IAKb,GAAG,CAAC,MAAM,EAAE,OAAO;IAKnB,WAAW,CAAC,KAAK,EAAE,MAAM;;;;;;IAKzB,IAAI,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,EAEpC;IAED,IAAI,SAAS,IAJQ,MAAM,GAAG,OAAO,CAOpC;IAED,IAAI,WAAW,CAAC,KAAK,EAAE,MAAM,EAE5B;IAED,IAAI,WAAW,IAJQ,MAAM,CAO5B;IAED,OAAO,CACL,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,EACxB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EACxB,KAAK,CAAC,EAAE,MAAM;IAOhB,OAAO;IAKP,IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAErB;IAED,IAAI,IAAI,IAJQ,MAAM,CAOrB;IAED,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,WAAW;CAapB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SkCanvas, type SkTypefaceFontProvider } from '
|
|
1
|
+
import { type SkCanvas, type SkTypefaceFontProvider } from 'react-native-skia';
|
|
2
2
|
import FontManager from './FontManager';
|
|
3
3
|
import type { VexflowRecordingCommand, VexflowStyleOverride } from './VexflowRecordingTypes';
|
|
4
4
|
export declare function renderVexflowRecordingCommands(canvas: SkCanvas, commands: readonly VexflowRecordingCommand[], fontProvider: SkTypefaceFontProvider, defaultFont: string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VexflowRecordingReplay.d.ts","sourceRoot":"","sources":["../../../../src/base/VexflowRecordingReplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,QAAQ,EAIb,KAAK,sBAAsB,EAC5B,MAAM,
|
|
1
|
+
{"version":3,"file":"VexflowRecordingReplay.d.ts","sourceRoot":"","sources":["../../../../src/base/VexflowRecordingReplay.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,QAAQ,EAIb,KAAK,sBAAsB,EAC5B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EACV,uBAAuB,EAMvB,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AA8QjC,wBAAgB,8BAA8B,CAC5C,MAAM,EAAE,QAAQ,EAChB,QAAQ,EAAE,SAAS,uBAAuB,EAAE,EAC5C,YAAY,EAAE,sBAAsB,EACpC,WAAW,EAAE,MAAM;AACnB;;;;;;GAMG;AACH,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,oBAAoB,CAAC;AACrD;;;;GAIG;AACH,iBAAiB,CAAC,EAAE,WAAW,QAoGhC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { default as VexflowCanvas } from './VexflowCanvas';
|
|
2
|
+
export { default as FontManager } from './FontManager';
|
|
2
3
|
export { default as VexflowRecordingContext } from './VexflowRecordingContext';
|
|
3
4
|
export { renderVexflowRecordingCommands } from './VexflowRecordingReplay';
|
|
4
5
|
export { buildVexflowGroupIndex, type VexflowRecordingGroupIndex, } from './VexflowRecordingIndex';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EACL,sBAAsB,EACtB,KAAK,0BAA0B,GAChC,MAAM,yBAAyB,CAAC;AAEjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AAExB,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/base/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,OAAO,EAAE,8BAA8B,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,EACL,sBAAsB,EACtB,KAAK,0BAA0B,GAChC,MAAM,yBAAyB,CAAC;AAEjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,SAAS,CAAC;AAExB,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SkTypefaceFontProvider } from '
|
|
1
|
+
import type { SkTypefaceFontProvider } from 'react-native-skia';
|
|
2
2
|
import type VexflowRecordingContext from './VexflowRecordingContext';
|
|
3
3
|
export interface OnDrawParams {
|
|
4
4
|
ctx: VexflowRecordingContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/base/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/base/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,KAAK,uBAAuB,MAAM,2BAA2B,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,uBAAuB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC;IACvC,WAAW,EAAE,sBAAsB,CAAC;IACpC,WAAW,EAAE,MAAM,CAAC;CAIrB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DynamicAttachment, GraceNote, Measure, NoteAttachment, ScoreDefaults, Slur, Staff, Tie, TupletGroup } from '../../state';
|
|
2
2
|
export type PartInfo = {
|
|
3
3
|
id: string;
|
|
4
4
|
name?: string;
|
|
@@ -17,6 +17,7 @@ export type PendingGraceNotes = {
|
|
|
17
17
|
notes: GraceNote[];
|
|
18
18
|
slash: boolean;
|
|
19
19
|
};
|
|
20
|
+
export type PendingDynamic = Pick<DynamicAttachment, 'dynamic' | 'placement'>;
|
|
20
21
|
export type ParserState = {
|
|
21
22
|
scoreId: string;
|
|
22
23
|
divisions: number;
|
|
@@ -25,7 +26,8 @@ export type ParserState = {
|
|
|
25
26
|
ties: Tie[];
|
|
26
27
|
slurs: Slur[];
|
|
27
28
|
tuplets: TupletGroup[];
|
|
28
|
-
|
|
29
|
+
/** Keyed by MusicXML staff number; consumed by that staff's next note. */
|
|
30
|
+
pendingDynamics: Map<string, PendingDynamic[]>;
|
|
29
31
|
/** Keyed by MusicXML voice name; consumed by that voice's next note. */
|
|
30
32
|
pendingGraceNotes: Map<string, PendingGraceNotes>;
|
|
31
33
|
activeTies: Map<string, ActiveSpanner>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalTypes.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/InternalTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"InternalTypes.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/InternalTypes.ts"],"names":[],"mappings":"AAAA,OAAO,K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AAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACxC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;CACzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MeasureParser.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/MeasureParser.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAiB/D,OAAO,EAUL,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAQpB,wBAAgB,YAAY,CAC1B,OAAO,EAAE,UAAU,EACnB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,UAAU,EAAE,EACpB,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"MeasureParser.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/MeasureParser.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAiB/D,OAAO,EAUL,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAQpB,wBAAgB,YAAY,CAC1B,OAAO,EAAE,UAAU,EACnB,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,UAAU,EAAE,EACpB,KAAK,EAAE,WAAW,QAyFnB"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import type { Direction } from '../../state';
|
|
2
2
|
import type { ParserState } from './InternalTypes';
|
|
3
3
|
import { type XmlElement } from './XmlOrder';
|
|
4
|
-
export
|
|
4
|
+
export type ParsedDirection = {
|
|
5
|
+
/** 0-based; unvalidated, NaN for a non-numeric `<staff>`. */
|
|
6
|
+
staffIndex: number;
|
|
7
|
+
directions: Direction[];
|
|
8
|
+
};
|
|
9
|
+
export declare function parseDirection(direction: XmlElement, state: ParserState): ParsedDirection;
|
|
5
10
|
//# sourceMappingURL=MusicXmlDirections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MusicXmlDirections.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/MusicXmlDirections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"MusicXmlDirections.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/MusicXmlDirections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAS,MAAM,aAAa,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAkB,MAAM,iBAAiB,CAAC;AAEnE,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAEpB,MAAM,MAAM,eAAe,GAAG;IAC5B,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,SAAS,EAAE,CAAC;CACzB,CAAC;AAEF,wBAAgB,cAAc,CAC5B,SAAS,EAAE,UAAU,EACrB,KAAK,EAAE,WAAW,GACjB,eAAe,CA+DjB"}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type { ParserState } from './InternalTypes';
|
|
2
2
|
import { type XmlElement } from './XmlOrder';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* `pitchIndex` is the chord-tone position of `note` inside its owner chord
|
|
5
|
+
* (undefined for a standalone note): a chord tone's articulation joins the
|
|
6
|
+
* owner's existing same-articulation attachment instead of adding a glyph.
|
|
7
|
+
*/
|
|
8
|
+
export declare function applyNoteAttachments(note: XmlElement, itemId: string, staffNumber: string, voiceId: string, state: ParserState, pitchIndex?: number): void;
|
|
4
9
|
//# sourceMappingURL=Spanners.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spanners.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/Spanners.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAEpB,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,WAAW,
|
|
1
|
+
{"version":3,"file":"Spanners.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/Spanners.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGnD,OAAO,EAML,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAEpB;;;;GAIG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,UAAU,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,WAAW,EAClB,UAAU,CAAC,EAAE,MAAM,QA2DpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/mappers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACZ,OAAO,EACP,IAAI,EACJ,OAAO,EAEP,YAAY,EACZ,UAAU,EACV,KAAK,EAEN,MAAM,aAAa,CAAC;AAErB,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"mappers.d.ts","sourceRoot":"","sources":["../../../../../src/musicxml/MusicXmlParser/mappers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,YAAY,EACZ,OAAO,EACP,IAAI,EACJ,OAAO,EAEP,YAAY,EACZ,UAAU,EACV,KAAK,EAEN,MAAM,aAAa,CAAC;AAErB,OAAO,EAKL,KAAK,UAAU,EAChB,MAAM,YAAY,CAAC;AAyDpB,wBAAgB,OAAO,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAyB9C;AAED,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,SAAU,GAAG,YAAY,CAa5E;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAyBxD;AAED,wBAAgB,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAYtE;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,MAAM,6BAU9C;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,UAAU,GAC1C;IACE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC;IAC3B,KAAK,EAAE,OAAO,CAAC;CAChB,GACD,SAAS,CAgCZ;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,UAAU,GAAG,OAAO,EAAE,CAInE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAE1E;AAED,wBAAgB,0BAA0B,CACxC,SAAS,CAAC,EAAE,UAAU,GACrB,YAAY,EAAE,CAoBhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/musicxml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/musicxml/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,oBAAoB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/percussion/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEtC,wEAAwE;AACxE,eAAO,MAAM,oBAAoB,EAAE,QAAQ,CAAC,KAAK,CAG/C,CAAC"}
|
|
@@ -7,5 +7,5 @@ import type { ScoreOverlayPictureProps } from './types';
|
|
|
7
7
|
* opaque override color the result matches an in-place recolor up to a ≤1px
|
|
8
8
|
* anti-aliasing fringe of base ink at glyph edges.
|
|
9
9
|
*/
|
|
10
|
-
export default function ScoreOverlayPicture({ contentSize, defaultFont, fontManager, groupIndex, itemStyleOverrides, }: ScoreOverlayPictureProps): import("react
|
|
10
|
+
export default function ScoreOverlayPicture({ contentSize, defaultFont, fontManager, groupIndex, itemStyleOverrides, }: ScoreOverlayPictureProps): import("react").JSX.Element;
|
|
11
11
|
//# sourceMappingURL=ScoreOverlayPicture.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreOverlayPicture.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreOverlayPicture.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScoreOverlayPicture.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreOverlayPicture.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAIV,wBAAwB,EACzB,MAAM,SAAS,CAAC;AAWjB;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,WAAW,EACX,WAAW,EACX,WAAW,EACX,UAAU,EACV,kBAAkB,GACnB,EAAE,wBAAwB,+BA6E1B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type SkRRect } from '
|
|
2
|
+
import { type SkRRect } from 'react-native-skia';
|
|
3
3
|
import { type SharedValue } from 'react-native-reanimated';
|
|
4
4
|
import type { RendererSize, RendererType, ScorePlayheadState, ScorePlayheadStyle } from '../types';
|
|
5
5
|
export interface ResolvedPlayheadStyle {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScorePlayhead.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScorePlayhead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ScorePlayhead.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScorePlayhead.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAqB,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAmB,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE5E,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,UAAU,CAAC;AAGlB,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,kBAAkB,GAAG;IACxB,QAAQ,EAAE,WAAW,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC;IACjD,YAAY,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAClC,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACxC,WAAW,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACvC,KAAK,EAAE,qBAAqB,CAAC;CAC9B,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,kBAAkB,GAAG,SAAS,EACrC,UAAU,EAAE,MAAM,GACjB,qBAAqB,CASvB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,kBAAkB,GAAG,IAAI,EAChC,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,YAAY,EAC1B,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,YAAY,EACzB,KAAK,EAAE,MAAM,EACb,YAAY,EAAE,MAAM,GACnB,OAAO,CAwBT;AAED;8EAC8E;AAC9E,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAmC/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScoreRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ScoreRenderer.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/ScoreRenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,OAAO,KAAK,EAGV,kBAAkB,EACnB,MAAM,UAAU,CAAC;;AA+RlB,wBAAmC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SkPicture, SkTypefaceFontProvider } from '
|
|
1
|
+
import type { SkPicture, SkTypefaceFontProvider } from 'react-native-skia';
|
|
2
2
|
import type { GestureType } from 'react-native-gesture-handler';
|
|
3
3
|
import type { SharedValue } from 'react-native-reanimated';
|
|
4
4
|
import type { VexflowRecordingCommand } from '../../base';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;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C;IACvB,2DAA2D;IAC3D,OAAO,EAAE,SAAS,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,WAAW,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type SkPicture, type SkTypefaceFontProvider, type Transforms3d } from '
|
|
1
|
+
import { type SkPicture, type SkTypefaceFontProvider, type Transforms3d } from 'react-native-skia';
|
|
2
2
|
import type { SharedValue } from 'react-native-reanimated';
|
|
3
3
|
import FontManager from '../../base/FontManager';
|
|
4
4
|
import type { RendererSize, RendererType, ScoreOptions, ScoreRendererOptions, Viewport } from '../types';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAClB,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/renderer/ScoreRenderer/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,SAAS,EACd,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE3D,OAAO,WAAW,MAAM,wBAAwB,CAAC;AAIjD,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,oBAAoB,EACpB,QAAQ,EACT,MAAM,UAAU,CAAC;AAElB,OAAO,KAAK,EACV,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,SAAS,CAAC;AAKjB,w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re-positions every tick context at its time-proportional x inside the note
|
|
5
|
+
* area, overriding the formatter's duration-weighted spacing. Runs after
|
|
6
|
+
* `formatToStave` (the same post-format `setX` mechanism the formatter's own
|
|
7
|
+
* tuning uses), so beams, tuplets and modifiers pick the final positions up
|
|
8
|
+
* at draw time. The lattice follows VexFlow's own convention for its first
|
|
9
|
+
* tick: it starts at that context's left-modifier width (`totalLeftPx`), so a
|
|
10
|
+
* grace group or accidental on beat 1 hangs inside the note area instead of
|
|
11
|
+
* over the clef. The proportional span is clamped only by that inset and the
|
|
12
|
+
* LAST context's width — with a spacer voice on the lattice the latter is
|
|
13
|
+
* constant, so the mapping stays a pure function of time and of what hangs
|
|
14
|
+
* left of beat 1.
|
|
15
|
+
*/
|
|
16
|
+
export declare function applyFixedNoteSpacing(formatter: Formatter, voices: VFVoice[], stave: Stave): void;
|
|
17
|
+
//# sourceMappingURL=fixedNoteSpacing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fixedNoteSpacing.d.ts","sourceRoot":"","sources":["../../../../src/renderer/fixedNoteSpacing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,IAAI,OAAO,EAAE,MAAM,SAAS,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,OAAO,EAAE,EACjB,KAAK,EAAE,KAAK,QA0Db"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export { default as ScoreRenderer } from './ScoreRenderer';
|
|
2
2
|
export * from './colorScheme';
|
|
3
3
|
export * from './types';
|
|
4
|
+
export { Annotation, Articulation, Modifier, Ornament, StaveNote, } from 'vexflow';
|
|
5
|
+
export type { RenderContext } from 'vexflow';
|
|
4
6
|
export { isVexflowNativeDebugEnabled, setVexflowNativeDebugEnabled, } from '../shared/debug';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/renderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/renderer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,OAAO,EACL,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,SAAS,GACV,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EACL,2BAA2B,EAC3B,4BAA4B,GAC7B,MAAM,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { VFVoiceNote } from './scoreParsing';
|
|
2
|
+
import type { ScoreItemBounds, ScoreItemLayout } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* Union box of a drawn note's modifiers; must run after `draw()` because
|
|
5
|
+
* modifiers take their position from it. undefined without modifiers or when
|
|
6
|
+
* none could be measured.
|
|
7
|
+
*/
|
|
8
|
+
export declare function computeModifierBounds(note: VFVoiceNote): ScoreItemBounds | undefined;
|
|
9
|
+
/**
|
|
10
|
+
* Center of a formatted note's visual notehead span. When the getters are
|
|
11
|
+
* missing (GhostNotes) the fallback is the center of a NOTIONAL notehead at
|
|
12
|
+
* the block's left edge, capped by the block width — so a `spacer` rest
|
|
13
|
+
* anchors where a real note's head would sit on the same tick, and external
|
|
14
|
+
* UI aligned to it does not hop when the note appears. Zero-width `hidden`
|
|
15
|
+
* rests keep anchoring at their tick x.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resolveItemHeadCenterX(note: VFVoiceNote, x: number, width: number): number;
|
|
18
|
+
/**
|
|
19
|
+
* Geometry of a drawn item; must run after `draw()` because modifiers only
|
|
20
|
+
* take their position there.
|
|
21
|
+
*/
|
|
22
|
+
export declare function itemLayoutOf(note: VFVoiceNote, measureIndex: number): ScoreItemLayout;
|
|
23
|
+
//# sourceMappingURL=itemLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"itemLayout.d.ts","sourceRoot":"","sources":["../../../../src/renderer/itemLayout.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AA4BhE;;;;GAIG;AACH,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,WAAW,GAChB,eAAe,GAAG,SAAS,CAc7B;AAiCD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,WAAW,EACjB,CAAC,EAAE,MAAM,EACT,KAAK,EAAE,MAAM,GACZ,MAAM,CAgBR;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,WAAW,EACjB,YAAY,EAAE,MAAM,GACnB,eAAe,CAYjB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Score, Staff, StaffGroup } from '../state';
|
|
2
2
|
import { type ResolvedMeasureState } from './scoreParsing';
|
|
3
3
|
import type { MeasuredScore } from './measure';
|
|
4
|
-
import type { StaffVerticalBounds } from './
|
|
4
|
+
import type { StaffVerticalBounds } from './measureBounds';
|
|
5
5
|
import type { RendererRect, RendererSize, RendererType, ScoreOptions } from './types';
|
|
6
6
|
export interface MeasuredGroupMeasure {
|
|
7
7
|
groupId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/renderer/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAYzD,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/renderer/layout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAYzD,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,WAAW,EAAE,mBAAmB,EAAE,CAAC;CACpC;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,qBAAqB,EAAE,oBAAoB,EAAE,EAAE,CAAC;IAChD,QAAQ,EAAE,oBAAoB,EAAE,CAAC;CAClC;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,YAAY,EAAE,YAAY,CAAC;IAC3B,WAAW,EAAE,YAAY,CAAC;IAC1B,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAC;IAC9B,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAC9B;AAED,wBAAgB,WAAW,CACzB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,OAAO,EAAE,YAAY,EACrB,YAAY,EAAE,YAAY,EAC1B,QAAQ,EAAE,YAAY,GACrB,eAAe,CAwDjB"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { Score } from '../state';
|
|
2
|
-
import type { ScoreOptions } from './types';
|
|
3
|
-
|
|
4
|
-
top: number;
|
|
5
|
-
bottom: number;
|
|
6
|
-
}
|
|
2
|
+
import type { ScoreItemHooks, ScoreOptions } from './types';
|
|
3
|
+
import type { StaffVerticalBounds } from './measureBounds';
|
|
7
4
|
export interface MeasuredMeasure {
|
|
8
5
|
groupId: string;
|
|
9
6
|
measureIndex: number;
|
|
@@ -19,5 +16,5 @@ export interface MeasuredScore {
|
|
|
19
16
|
/**
|
|
20
17
|
* Measures each staff group by building VexFlow voices and estimating note width.
|
|
21
18
|
*/
|
|
22
|
-
export declare function measureScore(score: Score, options: ScoreOptions): MeasuredScore;
|
|
19
|
+
export declare function measureScore(score: Score, options: ScoreOptions, { decorateItem }?: Pick<ScoreItemHooks, 'decorateItem'>): MeasuredScore;
|
|
23
20
|
//# sourceMappingURL=measure.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../src/renderer/measure.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"measure.d.ts","sourceRoot":"","sources":["../../../../src/renderer/measure.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAS,MAAM,UAAU,CAAC;AAc7C,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAQ3D,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,EAAE,mBAAmB,EAAE,CAAC;IACnC,kBAAkB,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,eAAe,EAAE,CAAC;IAC5B,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAYD;;GAEG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,YAAY,EACrB,EAAE,YAAY,EAAE,GAAE,IAAI,CAAC,cAAc,EAAE,cAAc,CAAM,GAC1D,aAAa,CAqHf"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { VFVoiceNote } from './scoreParsing';
|
|
2
|
+
export interface StaffVerticalBounds {
|
|
3
|
+
top: number;
|
|
4
|
+
bottom: number;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Mutates the note (draws it against a no-op context and anchors unplaced
|
|
8
|
+
* modifiers); safe only because measurement voices are discarded and
|
|
9
|
+
* rendering builds fresh ones.
|
|
10
|
+
*/
|
|
11
|
+
export declare function mergeNoteBounds(bounds: StaffVerticalBounds | undefined, note: VFVoiceNote): void;
|
|
12
|
+
export declare function mergeY(bounds: StaffVerticalBounds | undefined, y: number): void;
|
|
13
|
+
//# sourceMappingURL=measureBounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measureBounds.d.ts","sourceRoot":"","sources":["../../../../src/renderer/measureBounds.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AA8BD;;;;GAIG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,IAAI,EAAE,WAAW,QA4ClB;AAOD,wBAAgB,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,SAAS,EAAE,CAAC,EAAE,MAAM,QAOxE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Stave } from 'vexflow';
|
|
2
|
+
import type { Barline, KeySignature, Measure } from '../state';
|
|
3
|
+
import type { ResolvedMeasureState } from './scoreParsing';
|
|
4
|
+
export interface ResolvedMeasureModifiers {
|
|
5
|
+
showClef: boolean;
|
|
6
|
+
showMeter: boolean;
|
|
7
|
+
showKeySignature: boolean;
|
|
8
|
+
startBarline: Barline;
|
|
9
|
+
endBarline: Barline;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Resolves the tri-state measure modifiers: `true` shows, `false` hides,
|
|
13
|
+
* `undefined` falls back to the default (clef on the first measure only,
|
|
14
|
+
* meter and key signature hidden, single barlines).
|
|
15
|
+
*/
|
|
16
|
+
export declare function resolveMeasureModifiers(measure: Pick<Measure, 'leftModifiers' | 'rightModifiers'>, measureIndex: number): ResolvedMeasureModifiers;
|
|
17
|
+
export declare function applyMeasureModifiers(stave: Stave, modifiers: ResolvedMeasureModifiers, resolvedState: ResolvedMeasureState): Stave;
|
|
18
|
+
/** Major-key VexFlow spec for the key's accidentals, respelt enharmonically beyond 7 sharps/flats. */
|
|
19
|
+
export declare function keySignatureToVFSpec(keySignature: KeySignature): string;
|
|
20
|
+
//# sourceMappingURL=measureModifiers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"measureModifiers.d.ts","sourceRoot":"","sources":["../../../../src/renderer/measureModifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,KAAK,EAAyB,MAAM,SAAS,CAAC;AAEzE,OAAO,KAAK,EAAE,OAAO,EAAW,YAAY,EAAE,OAAO,EAAQ,MAAM,UAAU,CAAC;AAC9E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;CACrB;AAwDD;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,eAAe,GAAG,gBAAgB,CAAC,EAC1D,YAAY,EAAE,MAAM,GACnB,wBAAwB,CAU1B;AAED,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,wBAAwB,EACnC,aAAa,EAAE,oBAAoB,GAClC,KAAK,CA+BP;AAED,sGAAsG;AACtG,wBAAgB,oBAAoB,CAAC,YAAY,EAAE,YAAY,GAAG,MAAM,CAOvE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { StaveNote } from 'vexflow';
|
|
2
|
+
import type { StemmableNote } from 'vexflow';
|
|
3
|
+
import type { Articulation, Clef, Direction, DurationValue, NoteAttachment, Pitch } from '../state';
|
|
4
|
+
/**
|
|
5
|
+
* Maps library articulation names to VexFlow articulation codes.
|
|
6
|
+
*/
|
|
7
|
+
export declare const ARTICULATION_TO_VF_CODE: Record<Articulation, string>;
|
|
8
|
+
/** `GhostNote`s have no glyphs, so their element box is the origin. */
|
|
9
|
+
export declare function hasNoteHeads(note: StemmableNote): note is StaveNote;
|
|
10
|
+
/**
|
|
11
|
+
* Applies the requested number of augmentation dots to a note.
|
|
12
|
+
*/
|
|
13
|
+
export declare function applyDots(note: StaveNote, dots?: 0 | 1 | 2 | 3): void;
|
|
14
|
+
export declare function decorateStaveNote(note: StaveNote, pitches: readonly Pitch[], duration: DurationValue): void;
|
|
15
|
+
/** Every attachment a rest can carry: grace notes need a pitched owner. */
|
|
16
|
+
export declare function restAttachments(attachments: NoteAttachment[] | undefined): NoteAttachment[] | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Attaches the owner's marks to a VexFlow note in a fixed order regardless of
|
|
19
|
+
* the attachments' order: articulations, annotations, dynamics, lyrics (by
|
|
20
|
+
* verse), grace notes. Same-side marks stack outward in that order.
|
|
21
|
+
*/
|
|
22
|
+
export declare function applyNoteModifiers(note: StaveNote, clef: Clef, attachments: NoteAttachment[] | undefined): void;
|
|
23
|
+
/**
|
|
24
|
+
* Draws each text direction of a measure on the voice's first drawn item,
|
|
25
|
+
* after that item's own marks; a voice of spacers draws none. Tempo
|
|
26
|
+
* directions are not drawn.
|
|
27
|
+
*/
|
|
28
|
+
export declare function applyMeasureDirections(notes: readonly StemmableNote[], directions: readonly Direction[] | undefined): void;
|
|
29
|
+
//# sourceMappingURL=noteModifiers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noteModifiers.d.ts","sourceRoot":"","sources":["../../../../src/renderer/noteModifiers.ts"],"names":[],"mappings":"AAAA,OAAO,EAUL,SAAS,EAEV,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EACV,YAAY,EACZ,IAAI,EACJ,SAAS,EACT,aAAa,EAIb,cAAc,EACd,KAAK,EACN,MAAM,UAAU,CAAC;AAGlB;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,YAAY,EAAE,MAAM,CAShE,CAAC;AA0CF,uEAAuE;AACvE,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,IAAI,SAAS,CAEnE;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,QAI9D;AAoCD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,SAAS,KAAK,EAAE,EACzB,QAAQ,EAAE,aAAa,QAKxB;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAC7B,WAAW,EAAE,cAAc,EAAE,GAAG,SAAS,GACxC,cAAc,EAAE,GAAG,SAAS,CAE9B;AAYD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,SAAS,EACf,IAAI,EAAE,IAAI,EACV,WAAW,EAAE,cAAc,EAAE,GAAG,SAAS,QA8D1C;AAsCD;;;;GAIG;AACH,wBAAgB,sBAAsB,CACpC,KAAK,EAAE,SAAS,aAAa,EAAE,EAC/B,UAAU,EAAE,SAAS,SAAS,EAAE,GAAG,SAAS,QAyB7C"}
|
|
@@ -1,35 +1,10 @@
|
|
|
1
|
-
import { Formatter, Stave, Voice as VFVoice } from 'vexflow';
|
|
2
1
|
import type { VexflowRecordingContext } from '../base';
|
|
3
2
|
import type { Score } from '../state';
|
|
4
3
|
import type { ScoreLayoutPlan } from './layout';
|
|
5
|
-
import type { ScoreItemsLayout, ScoreOptions } from './types';
|
|
6
|
-
import type { VFVoiceNote } from './scoreParsing';
|
|
4
|
+
import type { ScoreItemHooks, ScoreItemsLayout, ScoreOptions } from './types';
|
|
7
5
|
/**
|
|
8
6
|
* Renders the score from a precomputed layout plan and returns the formatted
|
|
9
7
|
* geometry of every rendered item and measure.
|
|
10
8
|
*/
|
|
11
|
-
export declare function renderScore(ctx: VexflowRecordingContext, score: Score, layoutPlan: ScoreLayoutPlan, options: ScoreOptions): ScoreItemsLayout;
|
|
12
|
-
/**
|
|
13
|
-
* Re-positions every tick context at its time-proportional x inside the note
|
|
14
|
-
* area, overriding the formatter's duration-weighted spacing. Runs after
|
|
15
|
-
* `formatToStave` (the same post-format `setX` mechanism the formatter's own
|
|
16
|
-
* tuning uses), so beams, tuplets and modifiers pick the final positions up
|
|
17
|
-
* at draw time. The lattice follows VexFlow's own convention for its first
|
|
18
|
-
* tick: it starts at that context's left-modifier width (`totalLeftPx`), so a
|
|
19
|
-
* grace group or accidental on beat 1 hangs inside the note area instead of
|
|
20
|
-
* over the clef. The proportional span is clamped only by that inset and the
|
|
21
|
-
* LAST context's width — with a spacer voice on the lattice the latter is
|
|
22
|
-
* constant, so the mapping stays a pure function of time and of what hangs
|
|
23
|
-
* left of beat 1.
|
|
24
|
-
*/
|
|
25
|
-
export declare function applyFixedNoteSpacing(formatter: Formatter, voices: VFVoice[], stave: Stave): void;
|
|
26
|
-
/**
|
|
27
|
-
* Center of a formatted note's visual notehead span. When the getters are
|
|
28
|
-
* missing (GhostNotes) the fallback is the center of a NOTIONAL notehead at
|
|
29
|
-
* the block's left edge, capped by the block width — so a `spacer` rest
|
|
30
|
-
* anchors where a real note's head would sit on the same tick, and external
|
|
31
|
-
* UI aligned to it does not hop when the note appears. Zero-width `hidden`
|
|
32
|
-
* rests keep anchoring at their tick x.
|
|
33
|
-
*/
|
|
34
|
-
export declare function resolveItemHeadCenterX(note: VFVoiceNote, x: number, width: number): number;
|
|
9
|
+
export declare function renderScore(ctx: VexflowRecordingContext, score: Score, layoutPlan: ScoreLayoutPlan, options: ScoreOptions, hooks?: ScoreItemHooks): ScoreItemsLayout;
|
|
35
10
|
//# sourceMappingURL=render.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../src/renderer/render.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../../src/renderer/render.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,KAAK,EAEV,KAAK,EAGN,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAGV,eAAe,EAChB,MAAM,UAAU,CAAC;AAUlB,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG9E;;;GAGG;AACH,wBAAgB,WAAW,CACzB,GAAG,EAAE,uBAAuB,EAC5B,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,eAAe,EAC3B,OAAO,EAAE,YAAY,EACrB,KAAK,GAAE,cAAmB,GACzB,gBAAgB,CA4ClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../../src/renderer/scale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"scale.d.ts","sourceRoot":"","sources":["../../../../src/renderer/scale.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,YAAY,EAEZ,gBAAgB,EACjB,MAAM,SAAS,CAAC;AAEjB;;;;;;GAMG;AAEH;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,CAAC,EAAE;IACvC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;CAC7B,GAAG,MAAM,CAMT;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,MAAM,GACZ,YAAY,CAWd;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,GAAG,YAAY,CAS1E;AAED;;;;GAIG;AACH,wBAAgB,2BAA2B,CACzC,WAAW,EAAE,gBAAgB,EAC7B,KAAK,EAAE,MAAM,GACZ,gBAAgB,CAqClB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Beam, Fraction as VFFraction, StaveNote, Tuplet, Voice as VFVoice } from 'vexflow';
|
|
2
2
|
import type { StemmableNote } from 'vexflow';
|
|
3
|
-
import type {
|
|
3
|
+
import type { Clef, Direction, KeySignature, Meter, NoteAttachment, Score, Staff, StaffGroup, StemDirection, Tempo, TupletGroup, Voice, VoiceItem, VoiceTimingMode } from '../state';
|
|
4
|
+
import type { DecorateItem } from './types';
|
|
4
5
|
export type StaffGroupLookup = {
|
|
5
6
|
groupId: string;
|
|
6
7
|
staffGroup?: StaffGroup;
|
|
@@ -20,51 +21,21 @@ export interface MakeVFVoiceOptions {
|
|
|
20
21
|
* rebuilding it on every call.
|
|
21
22
|
*/
|
|
22
23
|
attachmentsByOwner?: Map<string, NoteAttachment[]>;
|
|
23
|
-
/**
|
|
24
|
-
|
|
24
|
+
/** Owning staff; on a one-line staff auto stems point up. */
|
|
25
|
+
staff?: Staff;
|
|
26
|
+
/** Measure directions drawn on this voice's first drawn item. */
|
|
27
|
+
directions?: Direction[];
|
|
28
|
+
itemContext?: {
|
|
29
|
+
decorateItem: DecorateItem;
|
|
30
|
+
staff: Staff;
|
|
31
|
+
measureIndex: number;
|
|
32
|
+
};
|
|
25
33
|
}
|
|
26
|
-
|
|
27
|
-
* Maps library notehead names to VexFlow key glyph codes.
|
|
28
|
-
*/
|
|
29
|
-
export declare const NOTEHEAD_TO_VF_CODE: Record<Notehead, string>;
|
|
30
|
-
/**
|
|
31
|
-
* Maps library articulation names to VexFlow articulation codes.
|
|
32
|
-
*/
|
|
33
|
-
export declare const ARTICULATION_TO_VF_CODE: Record<Articulation, string>;
|
|
34
|
+
type ItemDecorator = (item: VoiceItem, note: StaveNote, attachments: readonly NoteAttachment[]) => void;
|
|
34
35
|
/**
|
|
35
36
|
* Maps the library stem direction to the numeric VexFlow value.
|
|
36
37
|
*/
|
|
37
38
|
export declare function toVFStemDirection(dir?: StemDirection): number | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* Converts an internal pitch into the VexFlow key string format.
|
|
40
|
-
*/
|
|
41
|
-
export declare function pitchToVFKey(pitch: Pitch): string;
|
|
42
|
-
/**
|
|
43
|
-
* Converts a duration into the VexFlow duration token, including rests.
|
|
44
|
-
*/
|
|
45
|
-
export declare function durationToVF(duration: DurationValue, isRest?: boolean): string;
|
|
46
|
-
/**
|
|
47
|
-
* Applies the requested number of augmentation dots to a note.
|
|
48
|
-
*/
|
|
49
|
-
export declare function applyDots(note: StaveNote, dots?: 0 | 1 | 2 | 3): void;
|
|
50
|
-
/**
|
|
51
|
-
* Adds pitch accidentals to the matching keys in a VexFlow note.
|
|
52
|
-
*/
|
|
53
|
-
export declare function addPitchAccidentals(note: StaveNote, pitches: readonly Pitch[]): void;
|
|
54
|
-
/**
|
|
55
|
-
* Wraps each ghost pitch of a note in parentheses.
|
|
56
|
-
*/
|
|
57
|
-
export declare function applyGhostParentheses(note: StaveNote, pitches: readonly Pitch[]): void;
|
|
58
|
-
/**
|
|
59
|
-
* Draws one accent above a note whose pitches carry the `accent` flag, unless
|
|
60
|
-
* the owner already has an accent attachment.
|
|
61
|
-
*/
|
|
62
|
-
export declare function applyPitchAccent(note: StaveNote, pitches: readonly Pitch[], attachments?: NoteAttachment[]): void;
|
|
63
|
-
/**
|
|
64
|
-
* Attaches the owner's articulation, annotation and grace-note modifiers to
|
|
65
|
-
* a VexFlow note; dynamics and lyrics are drawn elsewhere.
|
|
66
|
-
*/
|
|
67
|
-
export declare function applyNoteModifiers(note: StaveNote, clef: Clef, attachments: NoteAttachment[] | undefined): void;
|
|
68
39
|
export declare function indexAttachmentsByOwner(score: Score): Map<string, NoteAttachment[]>;
|
|
69
40
|
/**
|
|
70
41
|
* Width a `spacer` rest reserves on its tick: an up-stem flagged note
|
|
@@ -80,7 +51,7 @@ export declare function noteheadWidth(): number;
|
|
|
80
51
|
/**
|
|
81
52
|
* Builds a VexFlow stave note from a score voice item and clef.
|
|
82
53
|
*/
|
|
83
|
-
export declare function voiceItemToStaveNote(item: VoiceItem, clef: Clef, attachments?: NoteAttachment[]): VFVoiceNote;
|
|
54
|
+
export declare function voiceItemToStaveNote(item: VoiceItem, clef: Clef, attachments?: NoteAttachment[], decorate?: ItemDecorator): VFVoiceNote;
|
|
84
55
|
/**
|
|
85
56
|
* Beam groups for a meter: its explicit `beamGroups`, otherwise VexFlow's
|
|
86
57
|
* conventional grouping for the time signature (quarters in x/4, dotted
|
|
@@ -116,4 +87,5 @@ export declare function buildMeasurementGroups(score: Score): StaffGroupLookup[]
|
|
|
116
87
|
* Resolves a staff group lookup into the existing ordered score staves.
|
|
117
88
|
*/
|
|
118
89
|
export declare function resolveGroupStaves(score: Score, group: StaffGroupLookup): Staff[];
|
|
90
|
+
export {};
|
|
119
91
|
//# sourceMappingURL=scoreParsing.d.ts.map
|