musicxml-io 0.3.4 → 0.3.5
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/dist/{chunk-TIFUKSTH.js → chunk-24XBPMRJ.js} +9 -9
- package/dist/{chunk-EFP2DAOK.mjs → chunk-AWYTZMJB.mjs} +25 -11
- package/dist/{chunk-CANSNTYK.js → chunk-LLFU3JZA.js} +47 -33
- package/dist/{chunk-ZDAN74FN.mjs → chunk-LYSKKBKA.mjs} +9 -9
- package/dist/{index-C1gu_fLF.d.ts → index-BWaC45uP.d.ts} +14 -14
- package/dist/{index-Dy4LmZRQ.d.mts → index-DFwIbWZu.d.mts} +14 -14
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +43 -43
- package/dist/index.mjs +8 -8
- package/dist/operations/index.d.mts +2 -2
- package/dist/operations/index.d.ts +2 -2
- package/dist/operations/index.js +3 -3
- package/dist/operations/index.mjs +2 -2
- package/dist/query/index.d.mts +7 -7
- package/dist/query/index.d.ts +7 -7
- package/dist/query/index.js +2 -2
- package/dist/query/index.mjs +1 -1
- package/dist/{types-D0G3_ykl.d.mts → types-BFmNsRNw.d.mts} +9 -9
- package/dist/{types-D0G3_ykl.d.ts → types-BFmNsRNw.d.ts} +9 -9
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -127,7 +127,7 @@ import {
|
|
|
127
127
|
validateTiesAcrossMeasures,
|
|
128
128
|
validateTuplets,
|
|
129
129
|
validateVoiceStaff
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-AWYTZMJB.mjs";
|
|
131
131
|
import {
|
|
132
132
|
STEPS,
|
|
133
133
|
STEP_SEMITONES,
|
|
@@ -210,7 +210,7 @@ import {
|
|
|
210
210
|
pitchToSemitone,
|
|
211
211
|
scoresEqual,
|
|
212
212
|
withAbsolutePositions
|
|
213
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-LYSKKBKA.mjs";
|
|
214
214
|
|
|
215
215
|
// src/importers/musicxml.ts
|
|
216
216
|
import { XMLParser } from "fast-xml-parser";
|
|
@@ -1015,8 +1015,8 @@ function parseNote(elements, attrs) {
|
|
|
1015
1015
|
type: "note",
|
|
1016
1016
|
duration: getElementTextAsInt(elements, "duration", 0)
|
|
1017
1017
|
};
|
|
1018
|
-
const voiceValue =
|
|
1019
|
-
if (voiceValue !== void 0) {
|
|
1018
|
+
const voiceValue = getElementText(elements, "voice");
|
|
1019
|
+
if (voiceValue !== void 0 && voiceValue !== "") {
|
|
1020
1020
|
note.voice = voiceValue;
|
|
1021
1021
|
}
|
|
1022
1022
|
if (attrs["default-x"]) note.defaultX = parseFloat(attrs["default-x"]);
|
|
@@ -1727,7 +1727,7 @@ function parseForward(elements) {
|
|
|
1727
1727
|
duration: parseInt(getElementText(elements, "duration") || "0", 10)
|
|
1728
1728
|
};
|
|
1729
1729
|
const voice = getElementText(elements, "voice");
|
|
1730
|
-
if (voice) forward.voice =
|
|
1730
|
+
if (voice) forward.voice = voice;
|
|
1731
1731
|
const staff = getElementText(elements, "staff");
|
|
1732
1732
|
if (staff) forward.staff = parseInt(staff, 10);
|
|
1733
1733
|
return forward;
|
|
@@ -1750,7 +1750,7 @@ function parseDirection(elements, attrs) {
|
|
|
1750
1750
|
const staff = getElementText(elements, "staff");
|
|
1751
1751
|
if (staff) direction.staff = parseInt(staff, 10);
|
|
1752
1752
|
const voice = getElementText(elements, "voice");
|
|
1753
|
-
if (voice) direction.voice =
|
|
1753
|
+
if (voice) direction.voice = voice;
|
|
1754
1754
|
parseFirstElement(elements, "offset", (c, a) => {
|
|
1755
1755
|
const text = extractText(c);
|
|
1756
1756
|
if (text) direction.offset = parseInt(text, 10);
|
|
@@ -4210,7 +4210,7 @@ function createNoteEntry(token, unitNote, _hasTieStop, isGrace, tupletState) {
|
|
|
4210
4210
|
type: "note",
|
|
4211
4211
|
pitch: token.pitch,
|
|
4212
4212
|
duration,
|
|
4213
|
-
voice: 1,
|
|
4213
|
+
voice: "1",
|
|
4214
4214
|
noteType,
|
|
4215
4215
|
dots: dots > 0 ? dots : void 0
|
|
4216
4216
|
};
|
|
@@ -4264,7 +4264,7 @@ function createRestEntry(token, unitNote, tupletState, measureDuration) {
|
|
|
4264
4264
|
type: "note",
|
|
4265
4265
|
rest: isWholeMeasure ? { measure: true } : {},
|
|
4266
4266
|
duration,
|
|
4267
|
-
voice: 1,
|
|
4267
|
+
voice: "1",
|
|
4268
4268
|
noteType,
|
|
4269
4269
|
dots: dots > 0 ? dots : void 0
|
|
4270
4270
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '../types-
|
|
2
|
-
export { ba as AddArticulationOptions, bj as AddBeamOptions, c8 as AddBowingOptions, ch as AddBreathMarkOptions, ck as AddCaesuraOptions, aW as AddChordOptions, c2 as AddChordSymbolOptions, bS as AddCodaOptions, bc as AddDynamicsOptions, bM as AddEndingOptions, bz as AddFermataOptions, c5 as AddFingeringOptions, bU as AddGraceNoteOptions, b$ as AddHarmonyOptions, bX as AddLyricOptions, bT as AddNavigationOptions, cd as AddOctaveShiftOptions, bB as AddOrnamentOptions, b2 as AddPartOptions, bD as AddPedalOptions, bH as AddRehearsalMarkOptions, bI as AddRepeatBarlineOptions, bK as AddRepeatOptions, bR as AddSegnoOptions, b8 as AddSlurOptions, ca as AddStringNumberOptions, bu as AddTempoOptions, bF as AddTextDirectionOptions, bG as AddTextOptions, b6 as AddTieOptions, b1 as AddVoiceOptions, bx as AddWedgeOptions, bl as AutoBeamOptions, bQ as BarStyle, c7 as BowingType, cg as BreathMarkValue, cj as CaesuraValue, bO as ChangeBarlineOptions, bg as ChangeClefOptions, aX as ChangeNoteDurationOptions, bW as ConvertToGraceOptions, br as CopyNotesMultiMeasureOptions, bo as CopyNotesOptions, bh as CreateTupletOptions, bq as CutNotesOptions, b3 as DuplicatePartOptions, b_ as HarmonyKind, bf as InsertClefChangeOptions, aU as InsertNoteOptions, b0 as LowerAccidentalOptions, be as ModifyDynamicsOptions, bw as ModifyTempoOptions, b5 as MoveNoteToStaffOptions, bs as MultiMeasureSelection, bn as NoteSelection, cc as OctaveShiftType, aT as OperationErrorCode, aS as OperationResult, bt as PasteNotesMultiMeasureOptions, bp as PasteNotesOptions, a$ as RaiseAccidentalOptions, bb as RemoveArticulationOptions, bk as RemoveBeamOptions, c9 as RemoveBowingOptions, ci as RemoveBreathMarkOptions, cl as RemoveCaesuraOptions, c3 as RemoveChordSymbolOptions, bd as RemoveDynamicsOptions, bN as RemoveEndingOptions, bA as RemoveFermataOptions, c6 as RemoveFingeringOptions, bV as RemoveGraceNoteOptions, c0 as RemoveHarmonyOptions, bY as RemoveLyricOptions, aV as RemoveNoteOptions, cf as RemoveOctaveShiftOptions, bC as RemoveOrnamentOptions, bE as RemovePedalOptions, bJ as RemoveRepeatBarlineOptions, bL as RemoveRepeatOptions, b9 as RemoveSlurOptions, cb as RemoveStringNumberOptions, bv as RemoveTempoOptions, b7 as RemoveTieOptions, bi as RemoveTupletOptions, by as RemoveWedgeOptions, bP as SetBarlineOptions, bm as SetBeamingOptions, aZ as SetNotePitchBySemitoneOptions, aY as SetNotePitchOptions, b4 as SetStavesOptions, a_ as ShiftNotePitchOptions, ce as StopOctaveShiftOptions, c4 as UpdateChordSymbolOptions, c1 as UpdateHarmonyOptions, bZ as UpdateLyricOptions, cH as ValidationError, K as addArticulation, T as addBeam, aH as addBowing, aO as addBreathMark, aQ as addCaesura, b as addChord, j as addChordNote, p as addChordNoteChecked, aC as addChordSymbol, ao as addCoda, ap as addDaCapo, aq as addDalSegno, M as addDynamics, aj as addEnding, a6 as addFermata, ar as addFine, aF as addFingering, at as addGraceNote, az as addHarmony, aw as addLyric, g as addNote, n as addNoteChecked, aL as addOctaveShift, a8 as addOrnament, x as addPart, aa as addPedal, ae as addRehearsalMark, ah as addRepeat, af as addRepeatBarline, an as addSegno, I as addSlur, aJ as addStringNumber, a1 as addTempo, ad as addText, ac as addTextDirection, G as addTie, as as addToCoda, w as addVoice, a4 as addWedge, W as autoBeam, al as changeBarline, Q as changeClef, C as changeKey, e as changeNoteDuration, D as changeTime, av as convertToGrace, Y as copyNotes, $ as copyNotesMultiMeasure, R as createTuplet, _ as cutNotes, F as deleteMeasure, h as deleteNote, o as deleteNoteChecked, z as duplicatePart, P as insertClefChange, E as insertMeasure, i as insertNote, l as lowerAccidental, O as modifyDynamics, k as modifyNoteDuration, u as modifyNoteDurationChecked, m as modifyNotePitch, q as modifyNotePitchChecked, a3 as modifyTempo, B as moveNoteToStaff, Z as pasteNotes, a0 as pasteNotesMultiMeasure, f as raiseAccidental, L as removeArticulation, U as removeBeam, aI as removeBowing, aP as removeBreathMark, aR as removeCaesura, aD as removeChordSymbol, N as removeDynamics, ak as removeEnding, a7 as removeFermata, aG as removeFingering, au as removeGraceNote, aA as removeHarmony, ax as removeLyric, r as removeNote, aN as removeOctaveShift, a9 as removeOrnament, y as removePart, ab as removePedal, ai as removeRepeat, ag as removeRepeatBarline, J as removeSlur, aK as removeStringNumber, a2 as removeTempo, H as removeTie, S as removeTuplet, a5 as removeWedge, am as setBarline, X as setBeaming, s as setNotePitch, c as setNotePitchBySemitone, A as setStaves, d as shiftNotePitch, aM as stopOctaveShift, t as transpose, v as transposeChecked, aE as updateChordSymbol, aB as updateHarmony, ay as updateLyric } from '../index-
|
|
1
|
+
import '../types-BFmNsRNw.mjs';
|
|
2
|
+
export { ba as AddArticulationOptions, bj as AddBeamOptions, c8 as AddBowingOptions, ch as AddBreathMarkOptions, ck as AddCaesuraOptions, aW as AddChordOptions, c2 as AddChordSymbolOptions, bS as AddCodaOptions, bc as AddDynamicsOptions, bM as AddEndingOptions, bz as AddFermataOptions, c5 as AddFingeringOptions, bU as AddGraceNoteOptions, b$ as AddHarmonyOptions, bX as AddLyricOptions, bT as AddNavigationOptions, cd as AddOctaveShiftOptions, bB as AddOrnamentOptions, b2 as AddPartOptions, bD as AddPedalOptions, bH as AddRehearsalMarkOptions, bI as AddRepeatBarlineOptions, bK as AddRepeatOptions, bR as AddSegnoOptions, b8 as AddSlurOptions, ca as AddStringNumberOptions, bu as AddTempoOptions, bF as AddTextDirectionOptions, bG as AddTextOptions, b6 as AddTieOptions, b1 as AddVoiceOptions, bx as AddWedgeOptions, bl as AutoBeamOptions, bQ as BarStyle, c7 as BowingType, cg as BreathMarkValue, cj as CaesuraValue, bO as ChangeBarlineOptions, bg as ChangeClefOptions, aX as ChangeNoteDurationOptions, bW as ConvertToGraceOptions, br as CopyNotesMultiMeasureOptions, bo as CopyNotesOptions, bh as CreateTupletOptions, bq as CutNotesOptions, b3 as DuplicatePartOptions, b_ as HarmonyKind, bf as InsertClefChangeOptions, aU as InsertNoteOptions, b0 as LowerAccidentalOptions, be as ModifyDynamicsOptions, bw as ModifyTempoOptions, b5 as MoveNoteToStaffOptions, bs as MultiMeasureSelection, bn as NoteSelection, cc as OctaveShiftType, aT as OperationErrorCode, aS as OperationResult, bt as PasteNotesMultiMeasureOptions, bp as PasteNotesOptions, a$ as RaiseAccidentalOptions, bb as RemoveArticulationOptions, bk as RemoveBeamOptions, c9 as RemoveBowingOptions, ci as RemoveBreathMarkOptions, cl as RemoveCaesuraOptions, c3 as RemoveChordSymbolOptions, bd as RemoveDynamicsOptions, bN as RemoveEndingOptions, bA as RemoveFermataOptions, c6 as RemoveFingeringOptions, bV as RemoveGraceNoteOptions, c0 as RemoveHarmonyOptions, bY as RemoveLyricOptions, aV as RemoveNoteOptions, cf as RemoveOctaveShiftOptions, bC as RemoveOrnamentOptions, bE as RemovePedalOptions, bJ as RemoveRepeatBarlineOptions, bL as RemoveRepeatOptions, b9 as RemoveSlurOptions, cb as RemoveStringNumberOptions, bv as RemoveTempoOptions, b7 as RemoveTieOptions, bi as RemoveTupletOptions, by as RemoveWedgeOptions, bP as SetBarlineOptions, bm as SetBeamingOptions, aZ as SetNotePitchBySemitoneOptions, aY as SetNotePitchOptions, b4 as SetStavesOptions, a_ as ShiftNotePitchOptions, ce as StopOctaveShiftOptions, c4 as UpdateChordSymbolOptions, c1 as UpdateHarmonyOptions, bZ as UpdateLyricOptions, cH as ValidationError, K as addArticulation, T as addBeam, aH as addBowing, aO as addBreathMark, aQ as addCaesura, b as addChord, j as addChordNote, p as addChordNoteChecked, aC as addChordSymbol, ao as addCoda, ap as addDaCapo, aq as addDalSegno, M as addDynamics, aj as addEnding, a6 as addFermata, ar as addFine, aF as addFingering, at as addGraceNote, az as addHarmony, aw as addLyric, g as addNote, n as addNoteChecked, aL as addOctaveShift, a8 as addOrnament, x as addPart, aa as addPedal, ae as addRehearsalMark, ah as addRepeat, af as addRepeatBarline, an as addSegno, I as addSlur, aJ as addStringNumber, a1 as addTempo, ad as addText, ac as addTextDirection, G as addTie, as as addToCoda, w as addVoice, a4 as addWedge, W as autoBeam, al as changeBarline, Q as changeClef, C as changeKey, e as changeNoteDuration, D as changeTime, av as convertToGrace, Y as copyNotes, $ as copyNotesMultiMeasure, R as createTuplet, _ as cutNotes, F as deleteMeasure, h as deleteNote, o as deleteNoteChecked, z as duplicatePart, P as insertClefChange, E as insertMeasure, i as insertNote, l as lowerAccidental, O as modifyDynamics, k as modifyNoteDuration, u as modifyNoteDurationChecked, m as modifyNotePitch, q as modifyNotePitchChecked, a3 as modifyTempo, B as moveNoteToStaff, Z as pasteNotes, a0 as pasteNotesMultiMeasure, f as raiseAccidental, L as removeArticulation, U as removeBeam, aI as removeBowing, aP as removeBreathMark, aR as removeCaesura, aD as removeChordSymbol, N as removeDynamics, ak as removeEnding, a7 as removeFermata, aG as removeFingering, au as removeGraceNote, aA as removeHarmony, ax as removeLyric, r as removeNote, aN as removeOctaveShift, a9 as removeOrnament, y as removePart, ab as removePedal, ai as removeRepeat, ag as removeRepeatBarline, J as removeSlur, aK as removeStringNumber, a2 as removeTempo, H as removeTie, S as removeTuplet, a5 as removeWedge, am as setBarline, X as setBeaming, s as setNotePitch, c as setNotePitchBySemitone, A as setStaves, d as shiftNotePitch, aM as stopOctaveShift, t as transpose, v as transposeChecked, aE as updateChordSymbol, aB as updateHarmony, ay as updateLyric } from '../index-DFwIbWZu.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import '../types-
|
|
2
|
-
export { ba as AddArticulationOptions, bj as AddBeamOptions, c8 as AddBowingOptions, ch as AddBreathMarkOptions, ck as AddCaesuraOptions, aW as AddChordOptions, c2 as AddChordSymbolOptions, bS as AddCodaOptions, bc as AddDynamicsOptions, bM as AddEndingOptions, bz as AddFermataOptions, c5 as AddFingeringOptions, bU as AddGraceNoteOptions, b$ as AddHarmonyOptions, bX as AddLyricOptions, bT as AddNavigationOptions, cd as AddOctaveShiftOptions, bB as AddOrnamentOptions, b2 as AddPartOptions, bD as AddPedalOptions, bH as AddRehearsalMarkOptions, bI as AddRepeatBarlineOptions, bK as AddRepeatOptions, bR as AddSegnoOptions, b8 as AddSlurOptions, ca as AddStringNumberOptions, bu as AddTempoOptions, bF as AddTextDirectionOptions, bG as AddTextOptions, b6 as AddTieOptions, b1 as AddVoiceOptions, bx as AddWedgeOptions, bl as AutoBeamOptions, bQ as BarStyle, c7 as BowingType, cg as BreathMarkValue, cj as CaesuraValue, bO as ChangeBarlineOptions, bg as ChangeClefOptions, aX as ChangeNoteDurationOptions, bW as ConvertToGraceOptions, br as CopyNotesMultiMeasureOptions, bo as CopyNotesOptions, bh as CreateTupletOptions, bq as CutNotesOptions, b3 as DuplicatePartOptions, b_ as HarmonyKind, bf as InsertClefChangeOptions, aU as InsertNoteOptions, b0 as LowerAccidentalOptions, be as ModifyDynamicsOptions, bw as ModifyTempoOptions, b5 as MoveNoteToStaffOptions, bs as MultiMeasureSelection, bn as NoteSelection, cc as OctaveShiftType, aT as OperationErrorCode, aS as OperationResult, bt as PasteNotesMultiMeasureOptions, bp as PasteNotesOptions, a$ as RaiseAccidentalOptions, bb as RemoveArticulationOptions, bk as RemoveBeamOptions, c9 as RemoveBowingOptions, ci as RemoveBreathMarkOptions, cl as RemoveCaesuraOptions, c3 as RemoveChordSymbolOptions, bd as RemoveDynamicsOptions, bN as RemoveEndingOptions, bA as RemoveFermataOptions, c6 as RemoveFingeringOptions, bV as RemoveGraceNoteOptions, c0 as RemoveHarmonyOptions, bY as RemoveLyricOptions, aV as RemoveNoteOptions, cf as RemoveOctaveShiftOptions, bC as RemoveOrnamentOptions, bE as RemovePedalOptions, bJ as RemoveRepeatBarlineOptions, bL as RemoveRepeatOptions, b9 as RemoveSlurOptions, cb as RemoveStringNumberOptions, bv as RemoveTempoOptions, b7 as RemoveTieOptions, bi as RemoveTupletOptions, by as RemoveWedgeOptions, bP as SetBarlineOptions, bm as SetBeamingOptions, aZ as SetNotePitchBySemitoneOptions, aY as SetNotePitchOptions, b4 as SetStavesOptions, a_ as ShiftNotePitchOptions, ce as StopOctaveShiftOptions, c4 as UpdateChordSymbolOptions, c1 as UpdateHarmonyOptions, bZ as UpdateLyricOptions, cH as ValidationError, K as addArticulation, T as addBeam, aH as addBowing, aO as addBreathMark, aQ as addCaesura, b as addChord, j as addChordNote, p as addChordNoteChecked, aC as addChordSymbol, ao as addCoda, ap as addDaCapo, aq as addDalSegno, M as addDynamics, aj as addEnding, a6 as addFermata, ar as addFine, aF as addFingering, at as addGraceNote, az as addHarmony, aw as addLyric, g as addNote, n as addNoteChecked, aL as addOctaveShift, a8 as addOrnament, x as addPart, aa as addPedal, ae as addRehearsalMark, ah as addRepeat, af as addRepeatBarline, an as addSegno, I as addSlur, aJ as addStringNumber, a1 as addTempo, ad as addText, ac as addTextDirection, G as addTie, as as addToCoda, w as addVoice, a4 as addWedge, W as autoBeam, al as changeBarline, Q as changeClef, C as changeKey, e as changeNoteDuration, D as changeTime, av as convertToGrace, Y as copyNotes, $ as copyNotesMultiMeasure, R as createTuplet, _ as cutNotes, F as deleteMeasure, h as deleteNote, o as deleteNoteChecked, z as duplicatePart, P as insertClefChange, E as insertMeasure, i as insertNote, l as lowerAccidental, O as modifyDynamics, k as modifyNoteDuration, u as modifyNoteDurationChecked, m as modifyNotePitch, q as modifyNotePitchChecked, a3 as modifyTempo, B as moveNoteToStaff, Z as pasteNotes, a0 as pasteNotesMultiMeasure, f as raiseAccidental, L as removeArticulation, U as removeBeam, aI as removeBowing, aP as removeBreathMark, aR as removeCaesura, aD as removeChordSymbol, N as removeDynamics, ak as removeEnding, a7 as removeFermata, aG as removeFingering, au as removeGraceNote, aA as removeHarmony, ax as removeLyric, r as removeNote, aN as removeOctaveShift, a9 as removeOrnament, y as removePart, ab as removePedal, ai as removeRepeat, ag as removeRepeatBarline, J as removeSlur, aK as removeStringNumber, a2 as removeTempo, H as removeTie, S as removeTuplet, a5 as removeWedge, am as setBarline, X as setBeaming, s as setNotePitch, c as setNotePitchBySemitone, A as setStaves, d as shiftNotePitch, aM as stopOctaveShift, t as transpose, v as transposeChecked, aE as updateChordSymbol, aB as updateHarmony, ay as updateLyric } from '../index-
|
|
1
|
+
import '../types-BFmNsRNw.js';
|
|
2
|
+
export { ba as AddArticulationOptions, bj as AddBeamOptions, c8 as AddBowingOptions, ch as AddBreathMarkOptions, ck as AddCaesuraOptions, aW as AddChordOptions, c2 as AddChordSymbolOptions, bS as AddCodaOptions, bc as AddDynamicsOptions, bM as AddEndingOptions, bz as AddFermataOptions, c5 as AddFingeringOptions, bU as AddGraceNoteOptions, b$ as AddHarmonyOptions, bX as AddLyricOptions, bT as AddNavigationOptions, cd as AddOctaveShiftOptions, bB as AddOrnamentOptions, b2 as AddPartOptions, bD as AddPedalOptions, bH as AddRehearsalMarkOptions, bI as AddRepeatBarlineOptions, bK as AddRepeatOptions, bR as AddSegnoOptions, b8 as AddSlurOptions, ca as AddStringNumberOptions, bu as AddTempoOptions, bF as AddTextDirectionOptions, bG as AddTextOptions, b6 as AddTieOptions, b1 as AddVoiceOptions, bx as AddWedgeOptions, bl as AutoBeamOptions, bQ as BarStyle, c7 as BowingType, cg as BreathMarkValue, cj as CaesuraValue, bO as ChangeBarlineOptions, bg as ChangeClefOptions, aX as ChangeNoteDurationOptions, bW as ConvertToGraceOptions, br as CopyNotesMultiMeasureOptions, bo as CopyNotesOptions, bh as CreateTupletOptions, bq as CutNotesOptions, b3 as DuplicatePartOptions, b_ as HarmonyKind, bf as InsertClefChangeOptions, aU as InsertNoteOptions, b0 as LowerAccidentalOptions, be as ModifyDynamicsOptions, bw as ModifyTempoOptions, b5 as MoveNoteToStaffOptions, bs as MultiMeasureSelection, bn as NoteSelection, cc as OctaveShiftType, aT as OperationErrorCode, aS as OperationResult, bt as PasteNotesMultiMeasureOptions, bp as PasteNotesOptions, a$ as RaiseAccidentalOptions, bb as RemoveArticulationOptions, bk as RemoveBeamOptions, c9 as RemoveBowingOptions, ci as RemoveBreathMarkOptions, cl as RemoveCaesuraOptions, c3 as RemoveChordSymbolOptions, bd as RemoveDynamicsOptions, bN as RemoveEndingOptions, bA as RemoveFermataOptions, c6 as RemoveFingeringOptions, bV as RemoveGraceNoteOptions, c0 as RemoveHarmonyOptions, bY as RemoveLyricOptions, aV as RemoveNoteOptions, cf as RemoveOctaveShiftOptions, bC as RemoveOrnamentOptions, bE as RemovePedalOptions, bJ as RemoveRepeatBarlineOptions, bL as RemoveRepeatOptions, b9 as RemoveSlurOptions, cb as RemoveStringNumberOptions, bv as RemoveTempoOptions, b7 as RemoveTieOptions, bi as RemoveTupletOptions, by as RemoveWedgeOptions, bP as SetBarlineOptions, bm as SetBeamingOptions, aZ as SetNotePitchBySemitoneOptions, aY as SetNotePitchOptions, b4 as SetStavesOptions, a_ as ShiftNotePitchOptions, ce as StopOctaveShiftOptions, c4 as UpdateChordSymbolOptions, c1 as UpdateHarmonyOptions, bZ as UpdateLyricOptions, cH as ValidationError, K as addArticulation, T as addBeam, aH as addBowing, aO as addBreathMark, aQ as addCaesura, b as addChord, j as addChordNote, p as addChordNoteChecked, aC as addChordSymbol, ao as addCoda, ap as addDaCapo, aq as addDalSegno, M as addDynamics, aj as addEnding, a6 as addFermata, ar as addFine, aF as addFingering, at as addGraceNote, az as addHarmony, aw as addLyric, g as addNote, n as addNoteChecked, aL as addOctaveShift, a8 as addOrnament, x as addPart, aa as addPedal, ae as addRehearsalMark, ah as addRepeat, af as addRepeatBarline, an as addSegno, I as addSlur, aJ as addStringNumber, a1 as addTempo, ad as addText, ac as addTextDirection, G as addTie, as as addToCoda, w as addVoice, a4 as addWedge, W as autoBeam, al as changeBarline, Q as changeClef, C as changeKey, e as changeNoteDuration, D as changeTime, av as convertToGrace, Y as copyNotes, $ as copyNotesMultiMeasure, R as createTuplet, _ as cutNotes, F as deleteMeasure, h as deleteNote, o as deleteNoteChecked, z as duplicatePart, P as insertClefChange, E as insertMeasure, i as insertNote, l as lowerAccidental, O as modifyDynamics, k as modifyNoteDuration, u as modifyNoteDurationChecked, m as modifyNotePitch, q as modifyNotePitchChecked, a3 as modifyTempo, B as moveNoteToStaff, Z as pasteNotes, a0 as pasteNotesMultiMeasure, f as raiseAccidental, L as removeArticulation, U as removeBeam, aI as removeBowing, aP as removeBreathMark, aR as removeCaesura, aD as removeChordSymbol, N as removeDynamics, ak as removeEnding, a7 as removeFermata, aG as removeFingering, au as removeGraceNote, aA as removeHarmony, ax as removeLyric, r as removeNote, aN as removeOctaveShift, a9 as removeOrnament, y as removePart, ab as removePedal, ai as removeRepeat, ag as removeRepeatBarline, J as removeSlur, aK as removeStringNumber, a2 as removeTempo, H as removeTie, S as removeTuplet, a5 as removeWedge, am as setBarline, X as setBeaming, s as setNotePitch, c as setNotePitchBySemitone, A as setStaves, d as shiftNotePitch, aM as stopOctaveShift, t as transpose, v as transposeChecked, aE as updateChordSymbol, aB as updateHarmony, ay as updateLyric } from '../index-BWaC45uP.js';
|
package/dist/operations/index.js
CHANGED
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
var
|
|
109
|
-
require('../chunk-
|
|
108
|
+
var _chunkLLFU3JZAjs = require('../chunk-LLFU3JZA.js');
|
|
109
|
+
require('../chunk-24XBPMRJ.js');
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
@@ -214,4 +214,4 @@ require('../chunk-TIFUKSTH.js');
|
|
|
214
214
|
|
|
215
215
|
|
|
216
216
|
|
|
217
|
-
exports.addArticulation =
|
|
217
|
+
exports.addArticulation = _chunkLLFU3JZAjs.addArticulation; exports.addBeam = _chunkLLFU3JZAjs.addBeam; exports.addBowing = _chunkLLFU3JZAjs.addBowing; exports.addBreathMark = _chunkLLFU3JZAjs.addBreathMark; exports.addCaesura = _chunkLLFU3JZAjs.addCaesura; exports.addChord = _chunkLLFU3JZAjs.addChord; exports.addChordNote = _chunkLLFU3JZAjs.addChordNote; exports.addChordNoteChecked = _chunkLLFU3JZAjs.addChordNoteChecked; exports.addChordSymbol = _chunkLLFU3JZAjs.addChordSymbol; exports.addCoda = _chunkLLFU3JZAjs.addCoda; exports.addDaCapo = _chunkLLFU3JZAjs.addDaCapo; exports.addDalSegno = _chunkLLFU3JZAjs.addDalSegno; exports.addDynamics = _chunkLLFU3JZAjs.addDynamics; exports.addEnding = _chunkLLFU3JZAjs.addEnding; exports.addFermata = _chunkLLFU3JZAjs.addFermata; exports.addFine = _chunkLLFU3JZAjs.addFine; exports.addFingering = _chunkLLFU3JZAjs.addFingering; exports.addGraceNote = _chunkLLFU3JZAjs.addGraceNote; exports.addHarmony = _chunkLLFU3JZAjs.addHarmony; exports.addLyric = _chunkLLFU3JZAjs.addLyric; exports.addNote = _chunkLLFU3JZAjs.addNote; exports.addNoteChecked = _chunkLLFU3JZAjs.addNoteChecked; exports.addOctaveShift = _chunkLLFU3JZAjs.addOctaveShift; exports.addOrnament = _chunkLLFU3JZAjs.addOrnament; exports.addPart = _chunkLLFU3JZAjs.addPart; exports.addPedal = _chunkLLFU3JZAjs.addPedal; exports.addRehearsalMark = _chunkLLFU3JZAjs.addRehearsalMark; exports.addRepeat = _chunkLLFU3JZAjs.addRepeat; exports.addRepeatBarline = _chunkLLFU3JZAjs.addRepeatBarline; exports.addSegno = _chunkLLFU3JZAjs.addSegno; exports.addSlur = _chunkLLFU3JZAjs.addSlur; exports.addStringNumber = _chunkLLFU3JZAjs.addStringNumber; exports.addTempo = _chunkLLFU3JZAjs.addTempo; exports.addText = _chunkLLFU3JZAjs.addText; exports.addTextDirection = _chunkLLFU3JZAjs.addTextDirection; exports.addTie = _chunkLLFU3JZAjs.addTie; exports.addToCoda = _chunkLLFU3JZAjs.addToCoda; exports.addVoice = _chunkLLFU3JZAjs.addVoice; exports.addWedge = _chunkLLFU3JZAjs.addWedge; exports.autoBeam = _chunkLLFU3JZAjs.autoBeam; exports.changeBarline = _chunkLLFU3JZAjs.changeBarline; exports.changeClef = _chunkLLFU3JZAjs.changeClef; exports.changeKey = _chunkLLFU3JZAjs.changeKey; exports.changeNoteDuration = _chunkLLFU3JZAjs.changeNoteDuration; exports.changeTime = _chunkLLFU3JZAjs.changeTime; exports.convertToGrace = _chunkLLFU3JZAjs.convertToGrace; exports.copyNotes = _chunkLLFU3JZAjs.copyNotes; exports.copyNotesMultiMeasure = _chunkLLFU3JZAjs.copyNotesMultiMeasure; exports.createTuplet = _chunkLLFU3JZAjs.createTuplet; exports.cutNotes = _chunkLLFU3JZAjs.cutNotes; exports.deleteMeasure = _chunkLLFU3JZAjs.deleteMeasure; exports.deleteNote = _chunkLLFU3JZAjs.deleteNote; exports.deleteNoteChecked = _chunkLLFU3JZAjs.deleteNoteChecked; exports.duplicatePart = _chunkLLFU3JZAjs.duplicatePart; exports.insertClefChange = _chunkLLFU3JZAjs.insertClefChange; exports.insertMeasure = _chunkLLFU3JZAjs.insertMeasure; exports.insertNote = _chunkLLFU3JZAjs.insertNote; exports.lowerAccidental = _chunkLLFU3JZAjs.lowerAccidental; exports.modifyDynamics = _chunkLLFU3JZAjs.modifyDynamics; exports.modifyNoteDuration = _chunkLLFU3JZAjs.modifyNoteDuration; exports.modifyNoteDurationChecked = _chunkLLFU3JZAjs.modifyNoteDurationChecked; exports.modifyNotePitch = _chunkLLFU3JZAjs.modifyNotePitch; exports.modifyNotePitchChecked = _chunkLLFU3JZAjs.modifyNotePitchChecked; exports.modifyTempo = _chunkLLFU3JZAjs.modifyTempo; exports.moveNoteToStaff = _chunkLLFU3JZAjs.moveNoteToStaff; exports.pasteNotes = _chunkLLFU3JZAjs.pasteNotes; exports.pasteNotesMultiMeasure = _chunkLLFU3JZAjs.pasteNotesMultiMeasure; exports.raiseAccidental = _chunkLLFU3JZAjs.raiseAccidental; exports.removeArticulation = _chunkLLFU3JZAjs.removeArticulation; exports.removeBeam = _chunkLLFU3JZAjs.removeBeam; exports.removeBowing = _chunkLLFU3JZAjs.removeBowing; exports.removeBreathMark = _chunkLLFU3JZAjs.removeBreathMark; exports.removeCaesura = _chunkLLFU3JZAjs.removeCaesura; exports.removeChordSymbol = _chunkLLFU3JZAjs.removeChordSymbol; exports.removeDynamics = _chunkLLFU3JZAjs.removeDynamics; exports.removeEnding = _chunkLLFU3JZAjs.removeEnding; exports.removeFermata = _chunkLLFU3JZAjs.removeFermata; exports.removeFingering = _chunkLLFU3JZAjs.removeFingering; exports.removeGraceNote = _chunkLLFU3JZAjs.removeGraceNote; exports.removeHarmony = _chunkLLFU3JZAjs.removeHarmony; exports.removeLyric = _chunkLLFU3JZAjs.removeLyric; exports.removeNote = _chunkLLFU3JZAjs.removeNote; exports.removeOctaveShift = _chunkLLFU3JZAjs.removeOctaveShift; exports.removeOrnament = _chunkLLFU3JZAjs.removeOrnament; exports.removePart = _chunkLLFU3JZAjs.removePart; exports.removePedal = _chunkLLFU3JZAjs.removePedal; exports.removeRepeat = _chunkLLFU3JZAjs.removeRepeat; exports.removeRepeatBarline = _chunkLLFU3JZAjs.removeRepeatBarline; exports.removeSlur = _chunkLLFU3JZAjs.removeSlur; exports.removeStringNumber = _chunkLLFU3JZAjs.removeStringNumber; exports.removeTempo = _chunkLLFU3JZAjs.removeTempo; exports.removeTie = _chunkLLFU3JZAjs.removeTie; exports.removeTuplet = _chunkLLFU3JZAjs.removeTuplet; exports.removeWedge = _chunkLLFU3JZAjs.removeWedge; exports.setBarline = _chunkLLFU3JZAjs.setBarline; exports.setBeaming = _chunkLLFU3JZAjs.setBeaming; exports.setNotePitch = _chunkLLFU3JZAjs.setNotePitch; exports.setNotePitchBySemitone = _chunkLLFU3JZAjs.setNotePitchBySemitone; exports.setStaves = _chunkLLFU3JZAjs.setStaves; exports.shiftNotePitch = _chunkLLFU3JZAjs.shiftNotePitch; exports.stopOctaveShift = _chunkLLFU3JZAjs.stopOctaveShift; exports.transpose = _chunkLLFU3JZAjs.transpose; exports.transposeChecked = _chunkLLFU3JZAjs.transposeChecked; exports.updateChordSymbol = _chunkLLFU3JZAjs.updateChordSymbol; exports.updateHarmony = _chunkLLFU3JZAjs.updateHarmony; exports.updateLyric = _chunkLLFU3JZAjs.updateLyric;
|
|
@@ -105,8 +105,8 @@ import {
|
|
|
105
105
|
updateChordSymbol,
|
|
106
106
|
updateHarmony,
|
|
107
107
|
updateLyric
|
|
108
|
-
} from "../chunk-
|
|
109
|
-
import "../chunk-
|
|
108
|
+
} from "../chunk-AWYTZMJB.mjs";
|
|
109
|
+
import "../chunk-LYSKKBKA.mjs";
|
|
110
110
|
export {
|
|
111
111
|
addArticulation,
|
|
112
112
|
addBeam,
|
package/dist/query/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { M as Measure, N as NoteEntry, V as VoiceGroup, q as StaffGroup, r as NoteWithPosition, s as Chord, S as Score, t as NoteIteratorItem, h as MeasureEntry, x as VoiceToStaffMap, f as Part, C as Clef, G as StaffRange, H as PositionQueryOptions, I as VerticalSlice, J as VoiceLine, E as EntryWithContext, y as NoteWithContext, O as AdjacentNotes, z as DirectionWithContext, a as DirectionEntry, Q as DirectionKind, R as DynamicWithContext, U as TempoWithContext, W as PedalWithContext, X as WedgeWithContext, Y as OctaveShiftWithContext, Z as TiedNoteGroup, _ as SlurSpan, $ as TupletGroup, a0 as BeamGroup, a1 as NotationType, a2 as HarmonyWithContext, ae as HarmonyEntry, a3 as LyricWithContext, a4 as AssembledLyrics, a6 as RepeatInfo, a5 as BarlineWithContext, a7 as EndingInfo, a8 as KeyChangeInfo, a9 as TimeChangeInfo, aa as ClefChangeInfo, ab as StructuralChanges, g as MeasureAttributes, P as Pitch } from '../types-
|
|
1
|
+
import { M as Measure, N as NoteEntry, V as VoiceGroup, q as StaffGroup, r as NoteWithPosition, s as Chord, S as Score, t as NoteIteratorItem, h as MeasureEntry, x as VoiceToStaffMap, f as Part, C as Clef, G as StaffRange, H as PositionQueryOptions, I as VerticalSlice, J as VoiceLine, E as EntryWithContext, y as NoteWithContext, O as AdjacentNotes, z as DirectionWithContext, a as DirectionEntry, Q as DirectionKind, R as DynamicWithContext, U as TempoWithContext, W as PedalWithContext, X as WedgeWithContext, Y as OctaveShiftWithContext, Z as TiedNoteGroup, _ as SlurSpan, $ as TupletGroup, a0 as BeamGroup, a1 as NotationType, a2 as HarmonyWithContext, ae as HarmonyEntry, a3 as LyricWithContext, a4 as AssembledLyrics, a6 as RepeatInfo, a5 as BarlineWithContext, a7 as EndingInfo, a8 as KeyChangeInfo, a9 as TimeChangeInfo, aa as ClefChangeInfo, ab as StructuralChanges, g as MeasureAttributes, P as Pitch } from '../types-BFmNsRNw.mjs';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Filter options for voice/staff selection
|
|
5
5
|
*/
|
|
6
6
|
interface VoiceFilter {
|
|
7
|
-
voice?:
|
|
7
|
+
voice?: string;
|
|
8
8
|
staff?: number;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -49,7 +49,7 @@ declare function getAllNotes(score: Score): NoteIteratorItem[];
|
|
|
49
49
|
/**
|
|
50
50
|
* Get unique voices used in a measure
|
|
51
51
|
*/
|
|
52
|
-
declare function getVoices(measure: Measure):
|
|
52
|
+
declare function getVoices(measure: Measure): string[];
|
|
53
53
|
/**
|
|
54
54
|
* Get unique staves used in a measure
|
|
55
55
|
*/
|
|
@@ -112,7 +112,7 @@ declare function getClefForStaff(score: Score, options: {
|
|
|
112
112
|
/**
|
|
113
113
|
* Get all voices used within a specific staff
|
|
114
114
|
*/
|
|
115
|
-
declare function getVoicesForStaff(measure: Measure, staff: number):
|
|
115
|
+
declare function getVoicesForStaff(measure: Measure, staff: number): string[];
|
|
116
116
|
/**
|
|
117
117
|
* Get the range of staff numbers used in a part
|
|
118
118
|
*/
|
|
@@ -151,7 +151,7 @@ declare function getVerticalSlice(score: Score, options: {
|
|
|
151
151
|
*/
|
|
152
152
|
declare function getVoiceLine(score: Score, options: {
|
|
153
153
|
partIndex: number;
|
|
154
|
-
voice:
|
|
154
|
+
voice: string;
|
|
155
155
|
staff?: number;
|
|
156
156
|
}): VoiceLine;
|
|
157
157
|
/**
|
|
@@ -159,7 +159,7 @@ declare function getVoiceLine(score: Score, options: {
|
|
|
159
159
|
*/
|
|
160
160
|
declare function getVoiceLineInRange(score: Score, options: {
|
|
161
161
|
partIndex: number;
|
|
162
|
-
voice:
|
|
162
|
+
voice: string;
|
|
163
163
|
startMeasure: number;
|
|
164
164
|
endMeasure: number;
|
|
165
165
|
staff?: number;
|
|
@@ -402,7 +402,7 @@ interface PitchRange {
|
|
|
402
402
|
*/
|
|
403
403
|
interface FindNotesFilter {
|
|
404
404
|
pitchRange?: PitchRange;
|
|
405
|
-
voice?:
|
|
405
|
+
voice?: string;
|
|
406
406
|
staff?: number;
|
|
407
407
|
noteType?: string;
|
|
408
408
|
hasTie?: boolean;
|
package/dist/query/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { M as Measure, N as NoteEntry, V as VoiceGroup, q as StaffGroup, r as NoteWithPosition, s as Chord, S as Score, t as NoteIteratorItem, h as MeasureEntry, x as VoiceToStaffMap, f as Part, C as Clef, G as StaffRange, H as PositionQueryOptions, I as VerticalSlice, J as VoiceLine, E as EntryWithContext, y as NoteWithContext, O as AdjacentNotes, z as DirectionWithContext, a as DirectionEntry, Q as DirectionKind, R as DynamicWithContext, U as TempoWithContext, W as PedalWithContext, X as WedgeWithContext, Y as OctaveShiftWithContext, Z as TiedNoteGroup, _ as SlurSpan, $ as TupletGroup, a0 as BeamGroup, a1 as NotationType, a2 as HarmonyWithContext, ae as HarmonyEntry, a3 as LyricWithContext, a4 as AssembledLyrics, a6 as RepeatInfo, a5 as BarlineWithContext, a7 as EndingInfo, a8 as KeyChangeInfo, a9 as TimeChangeInfo, aa as ClefChangeInfo, ab as StructuralChanges, g as MeasureAttributes, P as Pitch } from '../types-
|
|
1
|
+
import { M as Measure, N as NoteEntry, V as VoiceGroup, q as StaffGroup, r as NoteWithPosition, s as Chord, S as Score, t as NoteIteratorItem, h as MeasureEntry, x as VoiceToStaffMap, f as Part, C as Clef, G as StaffRange, H as PositionQueryOptions, I as VerticalSlice, J as VoiceLine, E as EntryWithContext, y as NoteWithContext, O as AdjacentNotes, z as DirectionWithContext, a as DirectionEntry, Q as DirectionKind, R as DynamicWithContext, U as TempoWithContext, W as PedalWithContext, X as WedgeWithContext, Y as OctaveShiftWithContext, Z as TiedNoteGroup, _ as SlurSpan, $ as TupletGroup, a0 as BeamGroup, a1 as NotationType, a2 as HarmonyWithContext, ae as HarmonyEntry, a3 as LyricWithContext, a4 as AssembledLyrics, a6 as RepeatInfo, a5 as BarlineWithContext, a7 as EndingInfo, a8 as KeyChangeInfo, a9 as TimeChangeInfo, aa as ClefChangeInfo, ab as StructuralChanges, g as MeasureAttributes, P as Pitch } from '../types-BFmNsRNw.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Filter options for voice/staff selection
|
|
5
5
|
*/
|
|
6
6
|
interface VoiceFilter {
|
|
7
|
-
voice?:
|
|
7
|
+
voice?: string;
|
|
8
8
|
staff?: number;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
@@ -49,7 +49,7 @@ declare function getAllNotes(score: Score): NoteIteratorItem[];
|
|
|
49
49
|
/**
|
|
50
50
|
* Get unique voices used in a measure
|
|
51
51
|
*/
|
|
52
|
-
declare function getVoices(measure: Measure):
|
|
52
|
+
declare function getVoices(measure: Measure): string[];
|
|
53
53
|
/**
|
|
54
54
|
* Get unique staves used in a measure
|
|
55
55
|
*/
|
|
@@ -112,7 +112,7 @@ declare function getClefForStaff(score: Score, options: {
|
|
|
112
112
|
/**
|
|
113
113
|
* Get all voices used within a specific staff
|
|
114
114
|
*/
|
|
115
|
-
declare function getVoicesForStaff(measure: Measure, staff: number):
|
|
115
|
+
declare function getVoicesForStaff(measure: Measure, staff: number): string[];
|
|
116
116
|
/**
|
|
117
117
|
* Get the range of staff numbers used in a part
|
|
118
118
|
*/
|
|
@@ -151,7 +151,7 @@ declare function getVerticalSlice(score: Score, options: {
|
|
|
151
151
|
*/
|
|
152
152
|
declare function getVoiceLine(score: Score, options: {
|
|
153
153
|
partIndex: number;
|
|
154
|
-
voice:
|
|
154
|
+
voice: string;
|
|
155
155
|
staff?: number;
|
|
156
156
|
}): VoiceLine;
|
|
157
157
|
/**
|
|
@@ -159,7 +159,7 @@ declare function getVoiceLine(score: Score, options: {
|
|
|
159
159
|
*/
|
|
160
160
|
declare function getVoiceLineInRange(score: Score, options: {
|
|
161
161
|
partIndex: number;
|
|
162
|
-
voice:
|
|
162
|
+
voice: string;
|
|
163
163
|
startMeasure: number;
|
|
164
164
|
endMeasure: number;
|
|
165
165
|
staff?: number;
|
|
@@ -402,7 +402,7 @@ interface PitchRange {
|
|
|
402
402
|
*/
|
|
403
403
|
interface FindNotesFilter {
|
|
404
404
|
pitchRange?: PitchRange;
|
|
405
|
-
voice?:
|
|
405
|
+
voice?: string;
|
|
406
406
|
staff?: number;
|
|
407
407
|
noteType?: string;
|
|
408
408
|
hasTie?: boolean;
|
package/dist/query/index.js
CHANGED
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
|
|
78
78
|
|
|
79
|
-
var
|
|
79
|
+
var _chunk24XBPMRJjs = require('../chunk-24XBPMRJ.js');
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
|
|
@@ -155,4 +155,4 @@ var _chunkTIFUKSTHjs = require('../chunk-TIFUKSTH.js');
|
|
|
155
155
|
|
|
156
156
|
|
|
157
157
|
|
|
158
|
-
exports.buildVoiceToStaffMap =
|
|
158
|
+
exports.buildVoiceToStaffMap = _chunk24XBPMRJjs.buildVoiceToStaffMap; exports.buildVoiceToStaffMapForPart = _chunk24XBPMRJjs.buildVoiceToStaffMapForPart; exports.countNotes = _chunk24XBPMRJjs.countNotes; exports.findBarlines = _chunk24XBPMRJjs.findBarlines; exports.findDirectionsByType = _chunk24XBPMRJjs.findDirectionsByType; exports.findNotes = _chunk24XBPMRJjs.findNotes; exports.findNotesWithNotation = _chunk24XBPMRJjs.findNotesWithNotation; exports.getAbsolutePosition = _chunk24XBPMRJjs.getAbsolutePosition; exports.getAdjacentNotes = _chunk24XBPMRJjs.getAdjacentNotes; exports.getAllNotes = _chunk24XBPMRJjs.getAllNotes; exports.getAttributesAtMeasure = _chunk24XBPMRJjs.getAttributesAtMeasure; exports.getBeamGroups = _chunk24XBPMRJjs.getBeamGroups; exports.getChordProgression = _chunk24XBPMRJjs.getChordProgression; exports.getChords = _chunk24XBPMRJjs.getChords; exports.getClefChanges = _chunk24XBPMRJjs.getClefChanges; exports.getClefForStaff = _chunk24XBPMRJjs.getClefForStaff; exports.getDirections = _chunk24XBPMRJjs.getDirections; exports.getDirectionsAtPosition = _chunk24XBPMRJjs.getDirectionsAtPosition; exports.getDivisions = _chunk24XBPMRJjs.getDivisions; exports.getDuration = _chunk24XBPMRJjs.getDuration; exports.getDynamics = _chunk24XBPMRJjs.getDynamics; exports.getEffectiveStaff = _chunk24XBPMRJjs.getEffectiveStaff; exports.getEndings = _chunk24XBPMRJjs.getEndings; exports.getEntriesAtPosition = _chunk24XBPMRJjs.getEntriesAtPosition; exports.getEntriesForStaff = _chunk24XBPMRJjs.getEntriesForStaff; exports.getEntriesInRange = _chunk24XBPMRJjs.getEntriesInRange; exports.getHarmonies = _chunk24XBPMRJjs.getHarmonies; exports.getHarmonyAtPosition = _chunk24XBPMRJjs.getHarmonyAtPosition; exports.getKeyChanges = _chunk24XBPMRJjs.getKeyChanges; exports.getLyricText = _chunk24XBPMRJjs.getLyricText; exports.getLyrics = _chunk24XBPMRJjs.getLyrics; exports.getMeasure = _chunk24XBPMRJjs.getMeasure; exports.getMeasureByIndex = _chunk24XBPMRJjs.getMeasureByIndex; exports.getMeasureCount = _chunk24XBPMRJjs.getMeasureCount; exports.getNextNote = _chunk24XBPMRJjs.getNextNote; exports.getNormalizedDuration = _chunk24XBPMRJjs.getNormalizedDuration; exports.getNormalizedPosition = _chunk24XBPMRJjs.getNormalizedPosition; exports.getNotesAtPosition = _chunk24XBPMRJjs.getNotesAtPosition; exports.getNotesForStaff = _chunk24XBPMRJjs.getNotesForStaff; exports.getNotesForVoice = _chunk24XBPMRJjs.getNotesForVoice; exports.getNotesInRange = _chunk24XBPMRJjs.getNotesInRange; exports.getOctaveShifts = _chunk24XBPMRJjs.getOctaveShifts; exports.getPartById = _chunk24XBPMRJjs.getPartById; exports.getPartByIndex = _chunk24XBPMRJjs.getPartByIndex; exports.getPartCount = _chunk24XBPMRJjs.getPartCount; exports.getPartIds = _chunk24XBPMRJjs.getPartIds; exports.getPartIndex = _chunk24XBPMRJjs.getPartIndex; exports.getPedalMarkings = _chunk24XBPMRJjs.getPedalMarkings; exports.getPrevNote = _chunk24XBPMRJjs.getPrevNote; exports.getRepeatStructure = _chunk24XBPMRJjs.getRepeatStructure; exports.getSlurSpans = _chunk24XBPMRJjs.getSlurSpans; exports.getStaffRange = _chunk24XBPMRJjs.getStaffRange; exports.getStaveCount = _chunk24XBPMRJjs.getStaveCount; exports.getStaves = _chunk24XBPMRJjs.getStaves; exports.getStructuralChanges = _chunk24XBPMRJjs.getStructuralChanges; exports.getTempoMarkings = _chunk24XBPMRJjs.getTempoMarkings; exports.getTiedNoteGroups = _chunk24XBPMRJjs.getTiedNoteGroups; exports.getTimeChanges = _chunk24XBPMRJjs.getTimeChanges; exports.getTupletGroups = _chunk24XBPMRJjs.getTupletGroups; exports.getVerseCount = _chunk24XBPMRJjs.getVerseCount; exports.getVerticalSlice = _chunk24XBPMRJjs.getVerticalSlice; exports.getVoiceLine = _chunk24XBPMRJjs.getVoiceLine; exports.getVoiceLineInRange = _chunk24XBPMRJjs.getVoiceLineInRange; exports.getVoices = _chunk24XBPMRJjs.getVoices; exports.getVoicesForStaff = _chunk24XBPMRJjs.getVoicesForStaff; exports.getWedges = _chunk24XBPMRJjs.getWedges; exports.groupByStaff = _chunk24XBPMRJjs.groupByStaff; exports.groupByVoice = _chunk24XBPMRJjs.groupByVoice; exports.hasMultipleStaves = _chunk24XBPMRJjs.hasMultipleStaves; exports.hasNotes = _chunk24XBPMRJjs.hasNotes; exports.inferStaff = _chunk24XBPMRJjs.inferStaff; exports.isRestMeasure = _chunk24XBPMRJjs.isRestMeasure; exports.iterateEntries = _chunk24XBPMRJjs.iterateEntries; exports.iterateNotes = _chunk24XBPMRJjs.iterateNotes; exports.measureRoundtrip = _chunk24XBPMRJjs.measureRoundtrip; exports.scoresEqual = _chunk24XBPMRJjs.scoresEqual; exports.withAbsolutePositions = _chunk24XBPMRJjs.withAbsolutePositions;
|
package/dist/query/index.mjs
CHANGED
|
@@ -356,7 +356,7 @@ interface NoteEntry {
|
|
|
356
356
|
displayOctave?: number;
|
|
357
357
|
};
|
|
358
358
|
duration: number;
|
|
359
|
-
voice?:
|
|
359
|
+
voice?: string;
|
|
360
360
|
staff?: number;
|
|
361
361
|
chord?: boolean;
|
|
362
362
|
cue?: boolean;
|
|
@@ -402,7 +402,7 @@ interface ForwardEntry {
|
|
|
402
402
|
_id: string;
|
|
403
403
|
type: 'forward';
|
|
404
404
|
duration: number;
|
|
405
|
-
voice?:
|
|
405
|
+
voice?: string;
|
|
406
406
|
staff?: number;
|
|
407
407
|
}
|
|
408
408
|
interface DirectionSound {
|
|
@@ -426,7 +426,7 @@ interface DirectionEntry {
|
|
|
426
426
|
placement?: 'above' | 'below';
|
|
427
427
|
directive?: boolean;
|
|
428
428
|
staff?: number;
|
|
429
|
-
voice?:
|
|
429
|
+
voice?: string;
|
|
430
430
|
offset?: number;
|
|
431
431
|
offsetSound?: boolean;
|
|
432
432
|
sound?: DirectionSound;
|
|
@@ -853,7 +853,7 @@ interface Lyric {
|
|
|
853
853
|
}
|
|
854
854
|
interface VoiceGroup {
|
|
855
855
|
staff: number;
|
|
856
|
-
voice:
|
|
856
|
+
voice: string;
|
|
857
857
|
notes: NoteEntry[];
|
|
858
858
|
}
|
|
859
859
|
interface StaffGroup {
|
|
@@ -878,9 +878,9 @@ interface NoteIteratorItem {
|
|
|
878
878
|
* Voice to Staff mapping for inferring staff when not explicitly specified
|
|
879
879
|
*/
|
|
880
880
|
interface VoiceToStaffMap {
|
|
881
|
-
get(voice:
|
|
882
|
-
has(voice:
|
|
883
|
-
entries(): IterableIterator<[
|
|
881
|
+
get(voice: string): number | undefined;
|
|
882
|
+
has(voice: string): boolean;
|
|
883
|
+
entries(): IterableIterator<[string, number]>;
|
|
884
884
|
size: number;
|
|
885
885
|
}
|
|
886
886
|
/**
|
|
@@ -928,7 +928,7 @@ interface StaffRange {
|
|
|
928
928
|
*/
|
|
929
929
|
interface PositionQueryOptions {
|
|
930
930
|
staff?: number;
|
|
931
|
-
voice?:
|
|
931
|
+
voice?: string;
|
|
932
932
|
includeChordNotes?: boolean;
|
|
933
933
|
}
|
|
934
934
|
/**
|
|
@@ -944,7 +944,7 @@ interface VerticalSlice {
|
|
|
944
944
|
*/
|
|
945
945
|
interface VoiceLine {
|
|
946
946
|
partIndex: number;
|
|
947
|
-
voice:
|
|
947
|
+
voice: string;
|
|
948
948
|
staff?: number;
|
|
949
949
|
notes: NoteWithContext[];
|
|
950
950
|
}
|
|
@@ -356,7 +356,7 @@ interface NoteEntry {
|
|
|
356
356
|
displayOctave?: number;
|
|
357
357
|
};
|
|
358
358
|
duration: number;
|
|
359
|
-
voice?:
|
|
359
|
+
voice?: string;
|
|
360
360
|
staff?: number;
|
|
361
361
|
chord?: boolean;
|
|
362
362
|
cue?: boolean;
|
|
@@ -402,7 +402,7 @@ interface ForwardEntry {
|
|
|
402
402
|
_id: string;
|
|
403
403
|
type: 'forward';
|
|
404
404
|
duration: number;
|
|
405
|
-
voice?:
|
|
405
|
+
voice?: string;
|
|
406
406
|
staff?: number;
|
|
407
407
|
}
|
|
408
408
|
interface DirectionSound {
|
|
@@ -426,7 +426,7 @@ interface DirectionEntry {
|
|
|
426
426
|
placement?: 'above' | 'below';
|
|
427
427
|
directive?: boolean;
|
|
428
428
|
staff?: number;
|
|
429
|
-
voice?:
|
|
429
|
+
voice?: string;
|
|
430
430
|
offset?: number;
|
|
431
431
|
offsetSound?: boolean;
|
|
432
432
|
sound?: DirectionSound;
|
|
@@ -853,7 +853,7 @@ interface Lyric {
|
|
|
853
853
|
}
|
|
854
854
|
interface VoiceGroup {
|
|
855
855
|
staff: number;
|
|
856
|
-
voice:
|
|
856
|
+
voice: string;
|
|
857
857
|
notes: NoteEntry[];
|
|
858
858
|
}
|
|
859
859
|
interface StaffGroup {
|
|
@@ -878,9 +878,9 @@ interface NoteIteratorItem {
|
|
|
878
878
|
* Voice to Staff mapping for inferring staff when not explicitly specified
|
|
879
879
|
*/
|
|
880
880
|
interface VoiceToStaffMap {
|
|
881
|
-
get(voice:
|
|
882
|
-
has(voice:
|
|
883
|
-
entries(): IterableIterator<[
|
|
881
|
+
get(voice: string): number | undefined;
|
|
882
|
+
has(voice: string): boolean;
|
|
883
|
+
entries(): IterableIterator<[string, number]>;
|
|
884
884
|
size: number;
|
|
885
885
|
}
|
|
886
886
|
/**
|
|
@@ -928,7 +928,7 @@ interface StaffRange {
|
|
|
928
928
|
*/
|
|
929
929
|
interface PositionQueryOptions {
|
|
930
930
|
staff?: number;
|
|
931
|
-
voice?:
|
|
931
|
+
voice?: string;
|
|
932
932
|
includeChordNotes?: boolean;
|
|
933
933
|
}
|
|
934
934
|
/**
|
|
@@ -944,7 +944,7 @@ interface VerticalSlice {
|
|
|
944
944
|
*/
|
|
945
945
|
interface VoiceLine {
|
|
946
946
|
partIndex: number;
|
|
947
|
-
voice:
|
|
947
|
+
voice: string;
|
|
948
948
|
staff?: number;
|
|
949
949
|
notes: NoteWithContext[];
|
|
950
950
|
}
|