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/index.mjs CHANGED
@@ -127,7 +127,7 @@ import {
127
127
  validateTiesAcrossMeasures,
128
128
  validateTuplets,
129
129
  validateVoiceStaff
130
- } from "./chunk-EFP2DAOK.mjs";
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-ZDAN74FN.mjs";
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 = getElementTextAsInt(elements, "voice");
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 = parseInt(voice, 10);
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 = parseInt(voice, 10);
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-D0G3_ykl.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-Dy4LmZRQ.mjs';
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-D0G3_ykl.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-C1gu_fLF.js';
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';
@@ -105,8 +105,8 @@
105
105
 
106
106
 
107
107
 
108
- var _chunkCANSNTYKjs = require('../chunk-CANSNTYK.js');
109
- require('../chunk-TIFUKSTH.js');
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 = _chunkCANSNTYKjs.addArticulation; exports.addBeam = _chunkCANSNTYKjs.addBeam; exports.addBowing = _chunkCANSNTYKjs.addBowing; exports.addBreathMark = _chunkCANSNTYKjs.addBreathMark; exports.addCaesura = _chunkCANSNTYKjs.addCaesura; exports.addChord = _chunkCANSNTYKjs.addChord; exports.addChordNote = _chunkCANSNTYKjs.addChordNote; exports.addChordNoteChecked = _chunkCANSNTYKjs.addChordNoteChecked; exports.addChordSymbol = _chunkCANSNTYKjs.addChordSymbol; exports.addCoda = _chunkCANSNTYKjs.addCoda; exports.addDaCapo = _chunkCANSNTYKjs.addDaCapo; exports.addDalSegno = _chunkCANSNTYKjs.addDalSegno; exports.addDynamics = _chunkCANSNTYKjs.addDynamics; exports.addEnding = _chunkCANSNTYKjs.addEnding; exports.addFermata = _chunkCANSNTYKjs.addFermata; exports.addFine = _chunkCANSNTYKjs.addFine; exports.addFingering = _chunkCANSNTYKjs.addFingering; exports.addGraceNote = _chunkCANSNTYKjs.addGraceNote; exports.addHarmony = _chunkCANSNTYKjs.addHarmony; exports.addLyric = _chunkCANSNTYKjs.addLyric; exports.addNote = _chunkCANSNTYKjs.addNote; exports.addNoteChecked = _chunkCANSNTYKjs.addNoteChecked; exports.addOctaveShift = _chunkCANSNTYKjs.addOctaveShift; exports.addOrnament = _chunkCANSNTYKjs.addOrnament; exports.addPart = _chunkCANSNTYKjs.addPart; exports.addPedal = _chunkCANSNTYKjs.addPedal; exports.addRehearsalMark = _chunkCANSNTYKjs.addRehearsalMark; exports.addRepeat = _chunkCANSNTYKjs.addRepeat; exports.addRepeatBarline = _chunkCANSNTYKjs.addRepeatBarline; exports.addSegno = _chunkCANSNTYKjs.addSegno; exports.addSlur = _chunkCANSNTYKjs.addSlur; exports.addStringNumber = _chunkCANSNTYKjs.addStringNumber; exports.addTempo = _chunkCANSNTYKjs.addTempo; exports.addText = _chunkCANSNTYKjs.addText; exports.addTextDirection = _chunkCANSNTYKjs.addTextDirection; exports.addTie = _chunkCANSNTYKjs.addTie; exports.addToCoda = _chunkCANSNTYKjs.addToCoda; exports.addVoice = _chunkCANSNTYKjs.addVoice; exports.addWedge = _chunkCANSNTYKjs.addWedge; exports.autoBeam = _chunkCANSNTYKjs.autoBeam; exports.changeBarline = _chunkCANSNTYKjs.changeBarline; exports.changeClef = _chunkCANSNTYKjs.changeClef; exports.changeKey = _chunkCANSNTYKjs.changeKey; exports.changeNoteDuration = _chunkCANSNTYKjs.changeNoteDuration; exports.changeTime = _chunkCANSNTYKjs.changeTime; exports.convertToGrace = _chunkCANSNTYKjs.convertToGrace; exports.copyNotes = _chunkCANSNTYKjs.copyNotes; exports.copyNotesMultiMeasure = _chunkCANSNTYKjs.copyNotesMultiMeasure; exports.createTuplet = _chunkCANSNTYKjs.createTuplet; exports.cutNotes = _chunkCANSNTYKjs.cutNotes; exports.deleteMeasure = _chunkCANSNTYKjs.deleteMeasure; exports.deleteNote = _chunkCANSNTYKjs.deleteNote; exports.deleteNoteChecked = _chunkCANSNTYKjs.deleteNoteChecked; exports.duplicatePart = _chunkCANSNTYKjs.duplicatePart; exports.insertClefChange = _chunkCANSNTYKjs.insertClefChange; exports.insertMeasure = _chunkCANSNTYKjs.insertMeasure; exports.insertNote = _chunkCANSNTYKjs.insertNote; exports.lowerAccidental = _chunkCANSNTYKjs.lowerAccidental; exports.modifyDynamics = _chunkCANSNTYKjs.modifyDynamics; exports.modifyNoteDuration = _chunkCANSNTYKjs.modifyNoteDuration; exports.modifyNoteDurationChecked = _chunkCANSNTYKjs.modifyNoteDurationChecked; exports.modifyNotePitch = _chunkCANSNTYKjs.modifyNotePitch; exports.modifyNotePitchChecked = _chunkCANSNTYKjs.modifyNotePitchChecked; exports.modifyTempo = _chunkCANSNTYKjs.modifyTempo; exports.moveNoteToStaff = _chunkCANSNTYKjs.moveNoteToStaff; exports.pasteNotes = _chunkCANSNTYKjs.pasteNotes; exports.pasteNotesMultiMeasure = _chunkCANSNTYKjs.pasteNotesMultiMeasure; exports.raiseAccidental = _chunkCANSNTYKjs.raiseAccidental; exports.removeArticulation = _chunkCANSNTYKjs.removeArticulation; exports.removeBeam = _chunkCANSNTYKjs.removeBeam; exports.removeBowing = _chunkCANSNTYKjs.removeBowing; exports.removeBreathMark = _chunkCANSNTYKjs.removeBreathMark; exports.removeCaesura = _chunkCANSNTYKjs.removeCaesura; exports.removeChordSymbol = _chunkCANSNTYKjs.removeChordSymbol; exports.removeDynamics = _chunkCANSNTYKjs.removeDynamics; exports.removeEnding = _chunkCANSNTYKjs.removeEnding; exports.removeFermata = _chunkCANSNTYKjs.removeFermata; exports.removeFingering = _chunkCANSNTYKjs.removeFingering; exports.removeGraceNote = _chunkCANSNTYKjs.removeGraceNote; exports.removeHarmony = _chunkCANSNTYKjs.removeHarmony; exports.removeLyric = _chunkCANSNTYKjs.removeLyric; exports.removeNote = _chunkCANSNTYKjs.removeNote; exports.removeOctaveShift = _chunkCANSNTYKjs.removeOctaveShift; exports.removeOrnament = _chunkCANSNTYKjs.removeOrnament; exports.removePart = _chunkCANSNTYKjs.removePart; exports.removePedal = _chunkCANSNTYKjs.removePedal; exports.removeRepeat = _chunkCANSNTYKjs.removeRepeat; exports.removeRepeatBarline = _chunkCANSNTYKjs.removeRepeatBarline; exports.removeSlur = _chunkCANSNTYKjs.removeSlur; exports.removeStringNumber = _chunkCANSNTYKjs.removeStringNumber; exports.removeTempo = _chunkCANSNTYKjs.removeTempo; exports.removeTie = _chunkCANSNTYKjs.removeTie; exports.removeTuplet = _chunkCANSNTYKjs.removeTuplet; exports.removeWedge = _chunkCANSNTYKjs.removeWedge; exports.setBarline = _chunkCANSNTYKjs.setBarline; exports.setBeaming = _chunkCANSNTYKjs.setBeaming; exports.setNotePitch = _chunkCANSNTYKjs.setNotePitch; exports.setNotePitchBySemitone = _chunkCANSNTYKjs.setNotePitchBySemitone; exports.setStaves = _chunkCANSNTYKjs.setStaves; exports.shiftNotePitch = _chunkCANSNTYKjs.shiftNotePitch; exports.stopOctaveShift = _chunkCANSNTYKjs.stopOctaveShift; exports.transpose = _chunkCANSNTYKjs.transpose; exports.transposeChecked = _chunkCANSNTYKjs.transposeChecked; exports.updateChordSymbol = _chunkCANSNTYKjs.updateChordSymbol; exports.updateHarmony = _chunkCANSNTYKjs.updateHarmony; exports.updateLyric = _chunkCANSNTYKjs.updateLyric;
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-EFP2DAOK.mjs";
109
- import "../chunk-ZDAN74FN.mjs";
108
+ } from "../chunk-AWYTZMJB.mjs";
109
+ import "../chunk-LYSKKBKA.mjs";
110
110
  export {
111
111
  addArticulation,
112
112
  addBeam,
@@ -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-D0G3_ykl.mjs';
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?: number;
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): number[];
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): 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: number;
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: number;
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?: number;
405
+ voice?: string;
406
406
  staff?: number;
407
407
  noteType?: string;
408
408
  hasTie?: boolean;
@@ -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-D0G3_ykl.js';
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?: number;
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): number[];
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): 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: number;
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: number;
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?: number;
405
+ voice?: string;
406
406
  staff?: number;
407
407
  noteType?: string;
408
408
  hasTie?: boolean;
@@ -76,7 +76,7 @@
76
76
 
77
77
 
78
78
 
79
- var _chunkTIFUKSTHjs = require('../chunk-TIFUKSTH.js');
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 = _chunkTIFUKSTHjs.buildVoiceToStaffMap; exports.buildVoiceToStaffMapForPart = _chunkTIFUKSTHjs.buildVoiceToStaffMapForPart; exports.countNotes = _chunkTIFUKSTHjs.countNotes; exports.findBarlines = _chunkTIFUKSTHjs.findBarlines; exports.findDirectionsByType = _chunkTIFUKSTHjs.findDirectionsByType; exports.findNotes = _chunkTIFUKSTHjs.findNotes; exports.findNotesWithNotation = _chunkTIFUKSTHjs.findNotesWithNotation; exports.getAbsolutePosition = _chunkTIFUKSTHjs.getAbsolutePosition; exports.getAdjacentNotes = _chunkTIFUKSTHjs.getAdjacentNotes; exports.getAllNotes = _chunkTIFUKSTHjs.getAllNotes; exports.getAttributesAtMeasure = _chunkTIFUKSTHjs.getAttributesAtMeasure; exports.getBeamGroups = _chunkTIFUKSTHjs.getBeamGroups; exports.getChordProgression = _chunkTIFUKSTHjs.getChordProgression; exports.getChords = _chunkTIFUKSTHjs.getChords; exports.getClefChanges = _chunkTIFUKSTHjs.getClefChanges; exports.getClefForStaff = _chunkTIFUKSTHjs.getClefForStaff; exports.getDirections = _chunkTIFUKSTHjs.getDirections; exports.getDirectionsAtPosition = _chunkTIFUKSTHjs.getDirectionsAtPosition; exports.getDivisions = _chunkTIFUKSTHjs.getDivisions; exports.getDuration = _chunkTIFUKSTHjs.getDuration; exports.getDynamics = _chunkTIFUKSTHjs.getDynamics; exports.getEffectiveStaff = _chunkTIFUKSTHjs.getEffectiveStaff; exports.getEndings = _chunkTIFUKSTHjs.getEndings; exports.getEntriesAtPosition = _chunkTIFUKSTHjs.getEntriesAtPosition; exports.getEntriesForStaff = _chunkTIFUKSTHjs.getEntriesForStaff; exports.getEntriesInRange = _chunkTIFUKSTHjs.getEntriesInRange; exports.getHarmonies = _chunkTIFUKSTHjs.getHarmonies; exports.getHarmonyAtPosition = _chunkTIFUKSTHjs.getHarmonyAtPosition; exports.getKeyChanges = _chunkTIFUKSTHjs.getKeyChanges; exports.getLyricText = _chunkTIFUKSTHjs.getLyricText; exports.getLyrics = _chunkTIFUKSTHjs.getLyrics; exports.getMeasure = _chunkTIFUKSTHjs.getMeasure; exports.getMeasureByIndex = _chunkTIFUKSTHjs.getMeasureByIndex; exports.getMeasureCount = _chunkTIFUKSTHjs.getMeasureCount; exports.getNextNote = _chunkTIFUKSTHjs.getNextNote; exports.getNormalizedDuration = _chunkTIFUKSTHjs.getNormalizedDuration; exports.getNormalizedPosition = _chunkTIFUKSTHjs.getNormalizedPosition; exports.getNotesAtPosition = _chunkTIFUKSTHjs.getNotesAtPosition; exports.getNotesForStaff = _chunkTIFUKSTHjs.getNotesForStaff; exports.getNotesForVoice = _chunkTIFUKSTHjs.getNotesForVoice; exports.getNotesInRange = _chunkTIFUKSTHjs.getNotesInRange; exports.getOctaveShifts = _chunkTIFUKSTHjs.getOctaveShifts; exports.getPartById = _chunkTIFUKSTHjs.getPartById; exports.getPartByIndex = _chunkTIFUKSTHjs.getPartByIndex; exports.getPartCount = _chunkTIFUKSTHjs.getPartCount; exports.getPartIds = _chunkTIFUKSTHjs.getPartIds; exports.getPartIndex = _chunkTIFUKSTHjs.getPartIndex; exports.getPedalMarkings = _chunkTIFUKSTHjs.getPedalMarkings; exports.getPrevNote = _chunkTIFUKSTHjs.getPrevNote; exports.getRepeatStructure = _chunkTIFUKSTHjs.getRepeatStructure; exports.getSlurSpans = _chunkTIFUKSTHjs.getSlurSpans; exports.getStaffRange = _chunkTIFUKSTHjs.getStaffRange; exports.getStaveCount = _chunkTIFUKSTHjs.getStaveCount; exports.getStaves = _chunkTIFUKSTHjs.getStaves; exports.getStructuralChanges = _chunkTIFUKSTHjs.getStructuralChanges; exports.getTempoMarkings = _chunkTIFUKSTHjs.getTempoMarkings; exports.getTiedNoteGroups = _chunkTIFUKSTHjs.getTiedNoteGroups; exports.getTimeChanges = _chunkTIFUKSTHjs.getTimeChanges; exports.getTupletGroups = _chunkTIFUKSTHjs.getTupletGroups; exports.getVerseCount = _chunkTIFUKSTHjs.getVerseCount; exports.getVerticalSlice = _chunkTIFUKSTHjs.getVerticalSlice; exports.getVoiceLine = _chunkTIFUKSTHjs.getVoiceLine; exports.getVoiceLineInRange = _chunkTIFUKSTHjs.getVoiceLineInRange; exports.getVoices = _chunkTIFUKSTHjs.getVoices; exports.getVoicesForStaff = _chunkTIFUKSTHjs.getVoicesForStaff; exports.getWedges = _chunkTIFUKSTHjs.getWedges; exports.groupByStaff = _chunkTIFUKSTHjs.groupByStaff; exports.groupByVoice = _chunkTIFUKSTHjs.groupByVoice; exports.hasMultipleStaves = _chunkTIFUKSTHjs.hasMultipleStaves; exports.hasNotes = _chunkTIFUKSTHjs.hasNotes; exports.inferStaff = _chunkTIFUKSTHjs.inferStaff; exports.isRestMeasure = _chunkTIFUKSTHjs.isRestMeasure; exports.iterateEntries = _chunkTIFUKSTHjs.iterateEntries; exports.iterateNotes = _chunkTIFUKSTHjs.iterateNotes; exports.measureRoundtrip = _chunkTIFUKSTHjs.measureRoundtrip; exports.scoresEqual = _chunkTIFUKSTHjs.scoresEqual; exports.withAbsolutePositions = _chunkTIFUKSTHjs.withAbsolutePositions;
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;
@@ -76,7 +76,7 @@ import {
76
76
  measureRoundtrip,
77
77
  scoresEqual,
78
78
  withAbsolutePositions
79
- } from "../chunk-ZDAN74FN.mjs";
79
+ } from "../chunk-LYSKKBKA.mjs";
80
80
  export {
81
81
  buildVoiceToStaffMap,
82
82
  buildVoiceToStaffMapForPart,
@@ -356,7 +356,7 @@ interface NoteEntry {
356
356
  displayOctave?: number;
357
357
  };
358
358
  duration: number;
359
- voice?: number;
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?: number;
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?: number;
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: number;
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: number): number | undefined;
882
- has(voice: number): boolean;
883
- entries(): IterableIterator<[number, number]>;
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?: number;
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: number;
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?: number;
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?: number;
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?: number;
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: number;
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: number): number | undefined;
882
- has(voice: number): boolean;
883
- entries(): IterableIterator<[number, number]>;
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?: number;
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: number;
947
+ voice: string;
948
948
  staff?: number;
949
949
  notes: NoteWithContext[];
950
950
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "musicxml-io",
3
- "version": "0.3.4",
3
+ "version": "0.3.5",
4
4
  "description": "Parse and serialize MusicXML (.xml/.mxl) and ABC notation with high round-trip fidelity",
5
5
  "author": "tan-z-tan",
6
6
  "license": "MIT",