musicxml-io 0.2.5 → 0.2.8

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
@@ -1,5 +1,13 @@
1
1
  // src/importers/musicxml.ts
2
2
  import { XMLParser } from "fast-xml-parser";
3
+
4
+ // src/id.ts
5
+ import { nanoid } from "nanoid";
6
+ function generateId() {
7
+ return "i" + nanoid(10);
8
+ }
9
+
10
+ // src/importers/musicxml.ts
3
11
  var xmlParser = new XMLParser({
4
12
  ignoreAttributes: false,
5
13
  attributeNamePrefix: "@_",
@@ -86,6 +94,7 @@ function parseScorePartwise(elements) {
86
94
  const defaults = parseDefaults(elements);
87
95
  const credits = parseCredits(elements);
88
96
  return {
97
+ _id: generateId(),
89
98
  metadata,
90
99
  partList,
91
100
  parts,
@@ -287,7 +296,7 @@ function parseSystemLayout(elements) {
287
296
  }
288
297
  function parseCredits(elements) {
289
298
  const credits = collectElements(elements, "credit", (content, attrs) => {
290
- const credit = {};
299
+ const credit = { _id: generateId() };
291
300
  if (attrs["page"]) credit.page = parseInt(attrs["page"], 10);
292
301
  const types = collectElements(content, "credit-type", (c) => extractText(c));
293
302
  const words = collectElements(content, "credit-words", (c, a) => {
@@ -329,6 +338,7 @@ function parsePartList(elements) {
329
338
  const attrs = getAttributes(el);
330
339
  const content = el["score-part"];
331
340
  const partInfo = {
341
+ _id: generateId(),
332
342
  type: "score-part",
333
343
  id: attrs["id"] || ""
334
344
  };
@@ -421,6 +431,7 @@ function parsePartList(elements) {
421
431
  const attrs = getAttributes(el);
422
432
  const content = el["part-group"];
423
433
  const group = {
434
+ _id: generateId(),
424
435
  type: "part-group",
425
436
  groupType: attrs["type"] === "stop" ? "stop" : "start"
426
437
  };
@@ -456,6 +467,7 @@ function parseParts(elements) {
456
467
  const attrs = getAttributes(el);
457
468
  const content = el["part"];
458
469
  const part = {
470
+ _id: generateId(),
459
471
  id: attrs["id"] || "",
460
472
  measures: []
461
473
  };
@@ -473,6 +485,7 @@ function parseParts(elements) {
473
485
  }
474
486
  function parseMeasure(elements, attrs) {
475
487
  const measure = {
488
+ _id: generateId(),
476
489
  number: attrs["number"] || "0",
477
490
  // Keep as string per MusicXML spec (token type)
478
491
  entries: []
@@ -489,6 +502,7 @@ function parseMeasure(elements, attrs) {
489
502
  isFirstAttributes = false;
490
503
  } else {
491
504
  const attrEntry = {
505
+ _id: generateId(),
492
506
  type: "attributes",
493
507
  attributes: parsedAttrs
494
508
  };
@@ -714,6 +728,7 @@ function parseTranspose(elements) {
714
728
  }
715
729
  function parseNote(elements, attrs) {
716
730
  const note = {
731
+ _id: generateId(),
717
732
  type: "note",
718
733
  duration: getElementTextAsInt(elements, "duration", 0),
719
734
  voice: getElementTextAsInt(elements, "voice", 1)
@@ -1368,12 +1383,14 @@ function parseLyric(elements, attrs) {
1368
1383
  }
1369
1384
  function parseBackup(elements) {
1370
1385
  return {
1386
+ _id: generateId(),
1371
1387
  type: "backup",
1372
1388
  duration: parseInt(getElementText(elements, "duration") || "0", 10)
1373
1389
  };
1374
1390
  }
1375
1391
  function parseForward(elements) {
1376
1392
  const forward = {
1393
+ _id: generateId(),
1377
1394
  type: "forward",
1378
1395
  duration: parseInt(getElementText(elements, "duration") || "0", 10)
1379
1396
  };
@@ -1385,6 +1402,7 @@ function parseForward(elements) {
1385
1402
  }
1386
1403
  function parseDirection(elements, attrs) {
1387
1404
  const direction = {
1405
+ _id: generateId(),
1388
1406
  type: "direction",
1389
1407
  directionTypes: []
1390
1408
  };
@@ -1760,7 +1778,7 @@ function parseDirectionType(elements) {
1760
1778
  }
1761
1779
  function parseBarline(elements, attrs) {
1762
1780
  const location = attrs["location"] || "right";
1763
- const barline = { location };
1781
+ const barline = { _id: generateId(), location };
1764
1782
  const barStyle = getElementText(elements, "bar-style");
1765
1783
  if (barStyle && isValidBarStyle(barStyle)) {
1766
1784
  barline.barStyle = barStyle;
@@ -1976,6 +1994,7 @@ function parseMeasureStyle(elements, attrs) {
1976
1994
  }
1977
1995
  function parseHarmony(elements, attrs) {
1978
1996
  const harmony = {
1997
+ _id: generateId(),
1979
1998
  type: "harmony",
1980
1999
  root: { rootStep: "C" },
1981
2000
  kind: "major"
@@ -2099,6 +2118,7 @@ function parseHarmony(elements, attrs) {
2099
2118
  }
2100
2119
  function parseFiguredBass(elements, attrs) {
2101
2120
  const fb = {
2121
+ _id: generateId(),
2102
2122
  type: "figured-bass",
2103
2123
  figures: []
2104
2124
  };
@@ -2145,6 +2165,7 @@ function parseFiguredBass(elements, attrs) {
2145
2165
  }
2146
2166
  function parseSound(elements, attrs) {
2147
2167
  const sound = {
2168
+ _id: generateId(),
2148
2169
  type: "sound"
2149
2170
  };
2150
2171
  if (attrs["tempo"]) sound.tempo = parseFloat(attrs["tempo"]);
@@ -5362,7 +5383,7 @@ function getMeasureEndPosition(measure) {
5362
5383
  return state.position;
5363
5384
  }
5364
5385
 
5365
- // src/accessors/index.ts
5386
+ // src/query/index.ts
5366
5387
  function getNotesForVoice(measure, filter) {
5367
5388
  return measure.entries.filter((entry) => {
5368
5389
  if (entry.type !== "note") return false;
@@ -6103,17 +6124,17 @@ function getTiedNoteGroups(score, options) {
6103
6124
  measureIndex,
6104
6125
  position
6105
6126
  };
6106
- const hasTieStart = entry.tie?.type === "start" || entry.ties?.some((t) => t.type === "start") || entry.notations?.some((n) => n.type === "tied" && n.tiedType === "start");
6107
- const hasTieStop = entry.tie?.type === "stop" || entry.ties?.some((t) => t.type === "stop") || entry.notations?.some((n) => n.type === "tied" && n.tiedType === "stop");
6108
- if (hasTieStop && pendingTies.has(pitchKey)) {
6127
+ const hasTieStart2 = entry.tie?.type === "start" || entry.ties?.some((t) => t.type === "start") || entry.notations?.some((n) => n.type === "tied" && n.tiedType === "start");
6128
+ const hasTieStop2 = entry.tie?.type === "stop" || entry.ties?.some((t) => t.type === "stop") || entry.notations?.some((n) => n.type === "tied" && n.tiedType === "stop");
6129
+ if (hasTieStop2 && pendingTies.has(pitchKey)) {
6109
6130
  const group = pendingTies.get(pitchKey);
6110
6131
  group.push(context);
6111
- if (!hasTieStart) {
6132
+ if (!hasTieStart2) {
6112
6133
  const totalDuration = group.reduce((sum, nc) => sum + nc.note.duration, 0);
6113
6134
  results.push({ notes: group, totalDuration });
6114
6135
  pendingTies.delete(pitchKey);
6115
6136
  }
6116
- } else if (hasTieStart) {
6137
+ } else if (hasTieStart2) {
6117
6138
  pendingTies.set(pitchKey, [context]);
6118
6139
  }
6119
6140
  }
@@ -6709,8 +6730,6 @@ function getPartCount(score) {
6709
6730
  function getPartIds(score) {
6710
6731
  return score.parts.map((part) => part.id);
6711
6732
  }
6712
-
6713
- // src/query/index.ts
6714
6733
  function getMeasure(score, options) {
6715
6734
  const part = score.parts[options.part];
6716
6735
  if (!part) return void 0;
@@ -6788,8 +6807,8 @@ function findNotes(score, filter) {
6788
6807
  if (filter.staff !== void 0 && (entry.staff ?? 1) !== filter.staff) continue;
6789
6808
  if (filter.noteType !== void 0 && entry.noteType !== filter.noteType) continue;
6790
6809
  if (filter.hasTie !== void 0) {
6791
- const hasTie = entry.tie !== void 0;
6792
- if (filter.hasTie !== hasTie) continue;
6810
+ const hasTie2 = entry.tie !== void 0;
6811
+ if (filter.hasTie !== hasTie2) continue;
6793
6812
  }
6794
6813
  results.push(entry);
6795
6814
  }
@@ -6993,6 +7012,7 @@ function hasNotesInRange(voiceEntries, startPos, endPos) {
6993
7012
  }
6994
7013
  function createRest(duration, voice, staff) {
6995
7014
  return {
7015
+ _id: generateId(),
6996
7016
  type: "note",
6997
7017
  rest: { displayStep: void 0, displayOctave: void 0 },
6998
7018
  duration,
@@ -7054,10 +7074,11 @@ function rebuildMeasureWithVoice(measure, voice, newEntries, measureDuration, st
7054
7074
  for (const { position: targetPos, entry } of allEntries) {
7055
7075
  const diff = targetPos - currentPosition;
7056
7076
  if (diff < 0) {
7057
- result.push({ type: "backup", duration: -diff });
7077
+ result.push({ _id: generateId(), type: "backup", duration: -diff });
7058
7078
  currentPosition = targetPos;
7059
7079
  } else if (diff > 0) {
7060
7080
  result.push({
7081
+ _id: generateId(),
7061
7082
  type: "forward",
7062
7083
  duration: diff,
7063
7084
  voice: entry.type === "note" ? entry.voice : 1,
@@ -7112,6 +7133,7 @@ function insertNote(score, options) {
7112
7133
  )]);
7113
7134
  }
7114
7135
  const newNote = {
7136
+ _id: generateId(),
7115
7137
  type: "note",
7116
7138
  pitch: options.pitch,
7117
7139
  duration: options.duration,
@@ -7218,6 +7240,7 @@ function addChord(score, options) {
7218
7240
  return failure([operationError("NOTE_NOT_FOUND", `Note index ${options.noteIndex} not found`, { partIndex: options.partIndex, measureIndex: options.measureIndex })]);
7219
7241
  }
7220
7242
  const chordNote = {
7243
+ _id: generateId(),
7221
7244
  type: "note",
7222
7245
  pitch: options.pitch,
7223
7246
  duration: targetEntry.duration,
@@ -7441,7 +7464,7 @@ function insertMeasure(score, options) {
7441
7464
  if (insertIndex === -1) continue;
7442
7465
  const numericPart = parseInt(targetMeasure, 10);
7443
7466
  const newMeasureNumber = String(isNaN(numericPart) ? insertIndex + 2 : numericPart + 1);
7444
- const newMeasure = { number: newMeasureNumber, entries: [] };
7467
+ const newMeasure = { _id: generateId(), number: newMeasureNumber, entries: [] };
7445
7468
  if (options.copyAttributes && part.measures[insertIndex].attributes) {
7446
7469
  newMeasure.attributes = { ...part.measures[insertIndex].attributes };
7447
7470
  }
@@ -7537,6 +7560,97 @@ async function serializeToFile(score, filePath, options = {}) {
7537
7560
  await writeFile(filePath, xmlString, "utf-8");
7538
7561
  }
7539
7562
  }
7563
+
7564
+ // src/entry-accessors.ts
7565
+ function getDirectionOfKind(entry, kind) {
7566
+ return entry.directionTypes.find((d) => d.kind === kind);
7567
+ }
7568
+ function getDirectionsOfKind(entry, kind) {
7569
+ return entry.directionTypes.filter((d) => d.kind === kind);
7570
+ }
7571
+ function hasDirectionOfKind(entry, kind) {
7572
+ return entry.directionTypes.some((d) => d.kind === kind);
7573
+ }
7574
+ function getSoundTempo(entry) {
7575
+ return entry.sound?.tempo;
7576
+ }
7577
+ function getSoundDynamics(entry) {
7578
+ return entry.sound?.dynamics;
7579
+ }
7580
+ function getSoundDamperPedal(entry) {
7581
+ return entry.sound?.damperPedal;
7582
+ }
7583
+ function getSoundSoftPedal(entry) {
7584
+ return entry.sound?.softPedal;
7585
+ }
7586
+ function getSoundSostenutoPedal(entry) {
7587
+ return entry.sound?.sostenutoPedal;
7588
+ }
7589
+ function isRest(entry) {
7590
+ return entry.rest !== void 0 || !entry.pitch && !entry.unpitched;
7591
+ }
7592
+ function isPitchedNote(entry) {
7593
+ return entry.pitch !== void 0;
7594
+ }
7595
+ function isUnpitchedNote(entry) {
7596
+ return entry.unpitched !== void 0;
7597
+ }
7598
+ function isChordNote(entry) {
7599
+ return entry.chord === true;
7600
+ }
7601
+ function isGraceNote(entry) {
7602
+ return entry.grace !== void 0;
7603
+ }
7604
+ function hasTie(entry) {
7605
+ return entry.tie !== void 0 || entry.ties !== void 0 && entry.ties.length > 0;
7606
+ }
7607
+ function hasTieStart(entry) {
7608
+ if (entry.tie?.type === "start") return true;
7609
+ return entry.ties?.some((t) => t.type === "start") ?? false;
7610
+ }
7611
+ function hasTieStop(entry) {
7612
+ if (entry.tie?.type === "stop") return true;
7613
+ return entry.ties?.some((t) => t.type === "stop") ?? false;
7614
+ }
7615
+ function isCueNote(entry) {
7616
+ return entry.cue === true;
7617
+ }
7618
+ function hasBeam(entry) {
7619
+ return entry.beam !== void 0 && entry.beam.length > 0;
7620
+ }
7621
+ function hasLyrics(entry) {
7622
+ return entry.lyrics !== void 0 && entry.lyrics.length > 0;
7623
+ }
7624
+ function hasNotations(entry) {
7625
+ return entry.notations !== void 0 && entry.notations.length > 0;
7626
+ }
7627
+ function hasTuplet(entry) {
7628
+ return entry.timeModification !== void 0;
7629
+ }
7630
+ function isPartInfo(entry) {
7631
+ return entry.type === "score-part";
7632
+ }
7633
+ function getPartInfo(score, partId) {
7634
+ return score.partList.find((entry) => {
7635
+ return entry.type === "score-part" && entry.id === partId;
7636
+ });
7637
+ }
7638
+ function getPartName(score, partId) {
7639
+ return getPartInfo(score, partId)?.name;
7640
+ }
7641
+ function getPartAbbreviation(score, partId) {
7642
+ return getPartInfo(score, partId)?.abbreviation;
7643
+ }
7644
+ function getAllPartInfos(score) {
7645
+ return score.partList.filter(isPartInfo);
7646
+ }
7647
+ function getPartNameMap(score) {
7648
+ const map = {};
7649
+ for (const part of getAllPartInfos(score)) {
7650
+ map[part.id] = part.name;
7651
+ }
7652
+ return map;
7653
+ }
7540
7654
  export {
7541
7655
  STEPS,
7542
7656
  STEP_SEMITONES,
@@ -7559,17 +7673,21 @@ export {
7559
7673
  findNotes,
7560
7674
  findNotesWithNotation,
7561
7675
  formatLocation,
7676
+ generateId,
7562
7677
  getAbsolutePosition,
7563
7678
  getAdjacentNotes,
7564
7679
  getAllNotes,
7680
+ getAllPartInfos,
7565
7681
  getAttributesAtMeasure,
7566
7682
  getBeamGroups,
7567
7683
  getChordProgression,
7568
7684
  getChords,
7569
7685
  getClefChanges,
7570
7686
  getClefForStaff,
7687
+ getDirectionOfKind,
7571
7688
  getDirections,
7572
7689
  getDirectionsAtPosition,
7690
+ getDirectionsOfKind,
7573
7691
  getDivisions,
7574
7692
  getDuration,
7575
7693
  getDynamics,
@@ -7596,15 +7714,24 @@ export {
7596
7714
  getNotesForVoice,
7597
7715
  getNotesInRange,
7598
7716
  getOctaveShifts,
7717
+ getPartAbbreviation,
7599
7718
  getPartById,
7600
7719
  getPartByIndex,
7601
7720
  getPartCount,
7602
7721
  getPartIds,
7603
7722
  getPartIndex,
7723
+ getPartInfo,
7724
+ getPartName,
7725
+ getPartNameMap,
7604
7726
  getPedalMarkings,
7605
7727
  getPrevNote,
7606
7728
  getRepeatStructure,
7607
7729
  getSlurSpans,
7730
+ getSoundDamperPedal,
7731
+ getSoundDynamics,
7732
+ getSoundSoftPedal,
7733
+ getSoundSostenutoPedal,
7734
+ getSoundTempo,
7608
7735
  getStaffRange,
7609
7736
  getStaveCount,
7610
7737
  getStaves,
@@ -7622,12 +7749,27 @@ export {
7622
7749
  getWedges,
7623
7750
  groupByStaff,
7624
7751
  groupByVoice,
7752
+ hasBeam,
7753
+ hasDirectionOfKind,
7754
+ hasLyrics,
7625
7755
  hasMultipleStaves,
7756
+ hasNotations,
7626
7757
  hasNotes,
7758
+ hasTie,
7759
+ hasTieStart,
7760
+ hasTieStop,
7761
+ hasTuplet,
7627
7762
  inferStaff,
7628
7763
  insertMeasure,
7764
+ isChordNote,
7629
7765
  isCompressed,
7766
+ isCueNote,
7767
+ isGraceNote,
7768
+ isPartInfo,
7769
+ isPitchedNote,
7770
+ isRest,
7630
7771
  isRestMeasure,
7772
+ isUnpitchedNote,
7631
7773
  isValid,
7632
7774
  iterateEntries,
7633
7775
  iterateNotes,
@@ -1,2 +1,2 @@
1
- import '../types-D3LhKCDK.mjs';
2
- export { ag as AddArticulationOptions, aA as AddBeamOptions, bW as AddBowingOptions, ca as AddBreathMarkOptions, cf as AddCaesuraOptions, br as AddCodaOptions, ak as AddDynamicsOptions, bj as AddEndingOptions, a_ as AddFermataOptions, bR as AddFingeringOptions, by as AddGraceNoteOptions, bL as AddHarmonyOptions, bE as AddLyricOptions, bt as AddNavigationOptions, c3 as AddOctaveShiftOptions, b2 as AddOrnamentOptions, a2 as AddPartOptions, b6 as AddPedalOptions, bc as AddRehearsalMarkOptions, bf as AddRepeatBarlineOptions, bp as AddSegnoOptions, ac as AddSlurOptions, b_ as AddStringNumberOptions, aS as AddTempoOptions, ba as AddTextDirectionOptions, a8 as AddTieOptions, aW as AddWedgeOptions, aE as AutoBeamOptions, be as BarStyle, bV as BowingType, c9 as BreathMarkValue, ce as CaesuraValue, bn as ChangeBarlineOptions, bC as ConvertToGraceOptions, aN as CopyNotesMultiMeasureOptions, aH as CopyNotesOptions, aw as CreateTupletOptions, aL as CutNotesOptions, bK as HarmonyKind, ao as InsertClefChangeOptions, N as InsertNoteOptions, $ as LowerAccidentalOptions, aO as MultiMeasureSelection, aG as NoteSelection, c2 as OctaveShiftType, K as OperationErrorCode, O as OperationResult, aQ as PasteNotesMultiMeasureOptions, aJ as PasteNotesOptions, Z as RaiseAccidentalOptions, ai as RemoveArticulationOptions, aC as RemoveBeamOptions, bY as RemoveBowingOptions, cc as RemoveBreathMarkOptions, ch as RemoveCaesuraOptions, am as RemoveDynamicsOptions, bl as RemoveEndingOptions, b0 as RemoveFermataOptions, bT as RemoveFingeringOptions, bA as RemoveGraceNoteOptions, bN as RemoveHarmonyOptions, bG as RemoveLyricOptions, c7 as RemoveOctaveShiftOptions, b4 as RemoveOrnamentOptions, b8 as RemovePedalOptions, bh as RemoveRepeatBarlineOptions, ae as RemoveSlurOptions, c0 as RemoveStringNumberOptions, aU as RemoveTempoOptions, aa as RemoveTieOptions, ay as RemoveTupletOptions, aY as RemoveWedgeOptions, U as SetNotePitchBySemitoneOptions, X as ShiftNotePitchOptions, c5 as StopOctaveShiftOptions, bP as UpdateHarmonyOptions, bI as UpdateLyricOptions, G as ValidationError, ah as addArticulation, aB as addBeam, bX as addBowing, cb as addBreathMark, cg as addCaesura, R as addChord, g as addChordNote, as as addChordNoteChecked, bs as addCoda, bu as addDaCapo, bv as addDalSegno, al as addDynamics, bk as addEnding, a$ as addFermata, bw as addFine, bS as addFingering, bz as addGraceNote, bM as addHarmony, bF as addLyric, b as addNote, aq as addNoteChecked, c4 as addOctaveShift, b3 as addOrnament, a3 as addPart, b7 as addPedal, bd as addRehearsalMark, bg as addRepeatBarline, bq as addSegno, ad as addSlur, b$ as addStringNumber, aT as addTempo, bb as addTextDirection, a9 as addTie, bx as addToCoda, a1 as addVoice, aX as addWedge, aF as autoBeam, bo as changeBarline, c as changeKey, S as changeNoteDuration, e as changeTime, bD as convertToGrace, aI as copyNotes, aP as copyNotesMultiMeasure, ax as createTuplet, aM as cutNotes, f as deleteMeasure, d as deleteNote, ar as deleteNoteChecked, a5 as duplicatePart, ap as insertClefChange, i as insertMeasure, P as insertNote, a0 as lowerAccidental, h as modifyNoteDuration, au as modifyNoteDurationChecked, m as modifyNotePitch, at as modifyNotePitchChecked, a7 as moveNoteToStaff, aK as pasteNotes, aR as pasteNotesMultiMeasure, _ as raiseAccidental, aj as removeArticulation, aD as removeBeam, bZ as removeBowing, cd as removeBreathMark, ci as removeCaesura, an as removeDynamics, bm as removeEnding, b1 as removeFermata, bU as removeFingering, bB as removeGraceNote, bO as removeHarmony, bH as removeLyric, Q as removeNote, c8 as removeOctaveShift, b5 as removeOrnament, a4 as removePart, b9 as removePedal, bi as removeRepeatBarline, af as removeSlur, c1 as removeStringNumber, aV as removeTempo, ab as removeTie, az as removeTuplet, aZ as removeWedge, T as setNotePitch, W as setNotePitchBySemitone, a6 as setStaves, Y as shiftNotePitch, c6 as stopOctaveShift, t as transpose, av as transposeChecked, bQ as updateHarmony, bJ as updateLyric } from '../index-Hm73jOKD.mjs';
1
+ import '../types-Bpq2o5JS.mjs';
2
+ export { ag as AddArticulationOptions, aA as AddBeamOptions, bW as AddBowingOptions, ca as AddBreathMarkOptions, cf as AddCaesuraOptions, br as AddCodaOptions, ak as AddDynamicsOptions, bj as AddEndingOptions, a_ as AddFermataOptions, bR as AddFingeringOptions, by as AddGraceNoteOptions, bL as AddHarmonyOptions, bE as AddLyricOptions, bt as AddNavigationOptions, c3 as AddOctaveShiftOptions, b2 as AddOrnamentOptions, a2 as AddPartOptions, b6 as AddPedalOptions, bc as AddRehearsalMarkOptions, bf as AddRepeatBarlineOptions, bp as AddSegnoOptions, ac as AddSlurOptions, b_ as AddStringNumberOptions, aS as AddTempoOptions, ba as AddTextDirectionOptions, a8 as AddTieOptions, aW as AddWedgeOptions, aE as AutoBeamOptions, be as BarStyle, bV as BowingType, c9 as BreathMarkValue, ce as CaesuraValue, bn as ChangeBarlineOptions, bC as ConvertToGraceOptions, aN as CopyNotesMultiMeasureOptions, aH as CopyNotesOptions, aw as CreateTupletOptions, aL as CutNotesOptions, bK as HarmonyKind, ao as InsertClefChangeOptions, N as InsertNoteOptions, $ as LowerAccidentalOptions, aO as MultiMeasureSelection, aG as NoteSelection, c2 as OctaveShiftType, K as OperationErrorCode, O as OperationResult, aQ as PasteNotesMultiMeasureOptions, aJ as PasteNotesOptions, Z as RaiseAccidentalOptions, ai as RemoveArticulationOptions, aC as RemoveBeamOptions, bY as RemoveBowingOptions, cc as RemoveBreathMarkOptions, ch as RemoveCaesuraOptions, am as RemoveDynamicsOptions, bl as RemoveEndingOptions, b0 as RemoveFermataOptions, bT as RemoveFingeringOptions, bA as RemoveGraceNoteOptions, bN as RemoveHarmonyOptions, bG as RemoveLyricOptions, c7 as RemoveOctaveShiftOptions, b4 as RemoveOrnamentOptions, b8 as RemovePedalOptions, bh as RemoveRepeatBarlineOptions, ae as RemoveSlurOptions, c0 as RemoveStringNumberOptions, aU as RemoveTempoOptions, aa as RemoveTieOptions, ay as RemoveTupletOptions, aY as RemoveWedgeOptions, U as SetNotePitchBySemitoneOptions, X as ShiftNotePitchOptions, c5 as StopOctaveShiftOptions, bP as UpdateHarmonyOptions, bI as UpdateLyricOptions, G as ValidationError, ah as addArticulation, aB as addBeam, bX as addBowing, cb as addBreathMark, cg as addCaesura, R as addChord, g as addChordNote, as as addChordNoteChecked, bs as addCoda, bu as addDaCapo, bv as addDalSegno, al as addDynamics, bk as addEnding, a$ as addFermata, bw as addFine, bS as addFingering, bz as addGraceNote, bM as addHarmony, bF as addLyric, b as addNote, aq as addNoteChecked, c4 as addOctaveShift, b3 as addOrnament, a3 as addPart, b7 as addPedal, bd as addRehearsalMark, bg as addRepeatBarline, bq as addSegno, ad as addSlur, b$ as addStringNumber, aT as addTempo, bb as addTextDirection, a9 as addTie, bx as addToCoda, a1 as addVoice, aX as addWedge, aF as autoBeam, bo as changeBarline, c as changeKey, S as changeNoteDuration, e as changeTime, bD as convertToGrace, aI as copyNotes, aP as copyNotesMultiMeasure, ax as createTuplet, aM as cutNotes, f as deleteMeasure, d as deleteNote, ar as deleteNoteChecked, a5 as duplicatePart, ap as insertClefChange, i as insertMeasure, P as insertNote, a0 as lowerAccidental, h as modifyNoteDuration, au as modifyNoteDurationChecked, m as modifyNotePitch, at as modifyNotePitchChecked, a7 as moveNoteToStaff, aK as pasteNotes, aR as pasteNotesMultiMeasure, _ as raiseAccidental, aj as removeArticulation, aD as removeBeam, bZ as removeBowing, cd as removeBreathMark, ci as removeCaesura, an as removeDynamics, bm as removeEnding, b1 as removeFermata, bU as removeFingering, bB as removeGraceNote, bO as removeHarmony, bH as removeLyric, Q as removeNote, c8 as removeOctaveShift, b5 as removeOrnament, a4 as removePart, b9 as removePedal, bi as removeRepeatBarline, af as removeSlur, c1 as removeStringNumber, aV as removeTempo, ab as removeTie, az as removeTuplet, aZ as removeWedge, T as setNotePitch, W as setNotePitchBySemitone, a6 as setStaves, Y as shiftNotePitch, c6 as stopOctaveShift, t as transpose, av as transposeChecked, bQ as updateHarmony, bJ as updateLyric } from '../index-BvwdY5YQ.mjs';
@@ -1,2 +1,2 @@
1
- import '../types-D3LhKCDK.js';
2
- export { ag as AddArticulationOptions, aA as AddBeamOptions, bW as AddBowingOptions, ca as AddBreathMarkOptions, cf as AddCaesuraOptions, br as AddCodaOptions, ak as AddDynamicsOptions, bj as AddEndingOptions, a_ as AddFermataOptions, bR as AddFingeringOptions, by as AddGraceNoteOptions, bL as AddHarmonyOptions, bE as AddLyricOptions, bt as AddNavigationOptions, c3 as AddOctaveShiftOptions, b2 as AddOrnamentOptions, a2 as AddPartOptions, b6 as AddPedalOptions, bc as AddRehearsalMarkOptions, bf as AddRepeatBarlineOptions, bp as AddSegnoOptions, ac as AddSlurOptions, b_ as AddStringNumberOptions, aS as AddTempoOptions, ba as AddTextDirectionOptions, a8 as AddTieOptions, aW as AddWedgeOptions, aE as AutoBeamOptions, be as BarStyle, bV as BowingType, c9 as BreathMarkValue, ce as CaesuraValue, bn as ChangeBarlineOptions, bC as ConvertToGraceOptions, aN as CopyNotesMultiMeasureOptions, aH as CopyNotesOptions, aw as CreateTupletOptions, aL as CutNotesOptions, bK as HarmonyKind, ao as InsertClefChangeOptions, N as InsertNoteOptions, $ as LowerAccidentalOptions, aO as MultiMeasureSelection, aG as NoteSelection, c2 as OctaveShiftType, K as OperationErrorCode, O as OperationResult, aQ as PasteNotesMultiMeasureOptions, aJ as PasteNotesOptions, Z as RaiseAccidentalOptions, ai as RemoveArticulationOptions, aC as RemoveBeamOptions, bY as RemoveBowingOptions, cc as RemoveBreathMarkOptions, ch as RemoveCaesuraOptions, am as RemoveDynamicsOptions, bl as RemoveEndingOptions, b0 as RemoveFermataOptions, bT as RemoveFingeringOptions, bA as RemoveGraceNoteOptions, bN as RemoveHarmonyOptions, bG as RemoveLyricOptions, c7 as RemoveOctaveShiftOptions, b4 as RemoveOrnamentOptions, b8 as RemovePedalOptions, bh as RemoveRepeatBarlineOptions, ae as RemoveSlurOptions, c0 as RemoveStringNumberOptions, aU as RemoveTempoOptions, aa as RemoveTieOptions, ay as RemoveTupletOptions, aY as RemoveWedgeOptions, U as SetNotePitchBySemitoneOptions, X as ShiftNotePitchOptions, c5 as StopOctaveShiftOptions, bP as UpdateHarmonyOptions, bI as UpdateLyricOptions, G as ValidationError, ah as addArticulation, aB as addBeam, bX as addBowing, cb as addBreathMark, cg as addCaesura, R as addChord, g as addChordNote, as as addChordNoteChecked, bs as addCoda, bu as addDaCapo, bv as addDalSegno, al as addDynamics, bk as addEnding, a$ as addFermata, bw as addFine, bS as addFingering, bz as addGraceNote, bM as addHarmony, bF as addLyric, b as addNote, aq as addNoteChecked, c4 as addOctaveShift, b3 as addOrnament, a3 as addPart, b7 as addPedal, bd as addRehearsalMark, bg as addRepeatBarline, bq as addSegno, ad as addSlur, b$ as addStringNumber, aT as addTempo, bb as addTextDirection, a9 as addTie, bx as addToCoda, a1 as addVoice, aX as addWedge, aF as autoBeam, bo as changeBarline, c as changeKey, S as changeNoteDuration, e as changeTime, bD as convertToGrace, aI as copyNotes, aP as copyNotesMultiMeasure, ax as createTuplet, aM as cutNotes, f as deleteMeasure, d as deleteNote, ar as deleteNoteChecked, a5 as duplicatePart, ap as insertClefChange, i as insertMeasure, P as insertNote, a0 as lowerAccidental, h as modifyNoteDuration, au as modifyNoteDurationChecked, m as modifyNotePitch, at as modifyNotePitchChecked, a7 as moveNoteToStaff, aK as pasteNotes, aR as pasteNotesMultiMeasure, _ as raiseAccidental, aj as removeArticulation, aD as removeBeam, bZ as removeBowing, cd as removeBreathMark, ci as removeCaesura, an as removeDynamics, bm as removeEnding, b1 as removeFermata, bU as removeFingering, bB as removeGraceNote, bO as removeHarmony, bH as removeLyric, Q as removeNote, c8 as removeOctaveShift, b5 as removeOrnament, a4 as removePart, b9 as removePedal, bi as removeRepeatBarline, af as removeSlur, c1 as removeStringNumber, aV as removeTempo, ab as removeTie, az as removeTuplet, aZ as removeWedge, T as setNotePitch, W as setNotePitchBySemitone, a6 as setStaves, Y as shiftNotePitch, c6 as stopOctaveShift, t as transpose, av as transposeChecked, bQ as updateHarmony, bJ as updateLyric } from '../index-CJUkJI2P.js';
1
+ import '../types-Bpq2o5JS.js';
2
+ export { ag as AddArticulationOptions, aA as AddBeamOptions, bW as AddBowingOptions, ca as AddBreathMarkOptions, cf as AddCaesuraOptions, br as AddCodaOptions, ak as AddDynamicsOptions, bj as AddEndingOptions, a_ as AddFermataOptions, bR as AddFingeringOptions, by as AddGraceNoteOptions, bL as AddHarmonyOptions, bE as AddLyricOptions, bt as AddNavigationOptions, c3 as AddOctaveShiftOptions, b2 as AddOrnamentOptions, a2 as AddPartOptions, b6 as AddPedalOptions, bc as AddRehearsalMarkOptions, bf as AddRepeatBarlineOptions, bp as AddSegnoOptions, ac as AddSlurOptions, b_ as AddStringNumberOptions, aS as AddTempoOptions, ba as AddTextDirectionOptions, a8 as AddTieOptions, aW as AddWedgeOptions, aE as AutoBeamOptions, be as BarStyle, bV as BowingType, c9 as BreathMarkValue, ce as CaesuraValue, bn as ChangeBarlineOptions, bC as ConvertToGraceOptions, aN as CopyNotesMultiMeasureOptions, aH as CopyNotesOptions, aw as CreateTupletOptions, aL as CutNotesOptions, bK as HarmonyKind, ao as InsertClefChangeOptions, N as InsertNoteOptions, $ as LowerAccidentalOptions, aO as MultiMeasureSelection, aG as NoteSelection, c2 as OctaveShiftType, K as OperationErrorCode, O as OperationResult, aQ as PasteNotesMultiMeasureOptions, aJ as PasteNotesOptions, Z as RaiseAccidentalOptions, ai as RemoveArticulationOptions, aC as RemoveBeamOptions, bY as RemoveBowingOptions, cc as RemoveBreathMarkOptions, ch as RemoveCaesuraOptions, am as RemoveDynamicsOptions, bl as RemoveEndingOptions, b0 as RemoveFermataOptions, bT as RemoveFingeringOptions, bA as RemoveGraceNoteOptions, bN as RemoveHarmonyOptions, bG as RemoveLyricOptions, c7 as RemoveOctaveShiftOptions, b4 as RemoveOrnamentOptions, b8 as RemovePedalOptions, bh as RemoveRepeatBarlineOptions, ae as RemoveSlurOptions, c0 as RemoveStringNumberOptions, aU as RemoveTempoOptions, aa as RemoveTieOptions, ay as RemoveTupletOptions, aY as RemoveWedgeOptions, U as SetNotePitchBySemitoneOptions, X as ShiftNotePitchOptions, c5 as StopOctaveShiftOptions, bP as UpdateHarmonyOptions, bI as UpdateLyricOptions, G as ValidationError, ah as addArticulation, aB as addBeam, bX as addBowing, cb as addBreathMark, cg as addCaesura, R as addChord, g as addChordNote, as as addChordNoteChecked, bs as addCoda, bu as addDaCapo, bv as addDalSegno, al as addDynamics, bk as addEnding, a$ as addFermata, bw as addFine, bS as addFingering, bz as addGraceNote, bM as addHarmony, bF as addLyric, b as addNote, aq as addNoteChecked, c4 as addOctaveShift, b3 as addOrnament, a3 as addPart, b7 as addPedal, bd as addRehearsalMark, bg as addRepeatBarline, bq as addSegno, ad as addSlur, b$ as addStringNumber, aT as addTempo, bb as addTextDirection, a9 as addTie, bx as addToCoda, a1 as addVoice, aX as addWedge, aF as autoBeam, bo as changeBarline, c as changeKey, S as changeNoteDuration, e as changeTime, bD as convertToGrace, aI as copyNotes, aP as copyNotesMultiMeasure, ax as createTuplet, aM as cutNotes, f as deleteMeasure, d as deleteNote, ar as deleteNoteChecked, a5 as duplicatePart, ap as insertClefChange, i as insertMeasure, P as insertNote, a0 as lowerAccidental, h as modifyNoteDuration, au as modifyNoteDurationChecked, m as modifyNotePitch, at as modifyNotePitchChecked, a7 as moveNoteToStaff, aK as pasteNotes, aR as pasteNotesMultiMeasure, _ as raiseAccidental, aj as removeArticulation, aD as removeBeam, bZ as removeBowing, cd as removeBreathMark, ci as removeCaesura, an as removeDynamics, bm as removeEnding, b1 as removeFermata, bU as removeFingering, bB as removeGraceNote, bO as removeHarmony, bH as removeLyric, Q as removeNote, c8 as removeOctaveShift, b5 as removeOrnament, a4 as removePart, b9 as removePedal, bi as removeRepeatBarline, af as removeSlur, c1 as removeStringNumber, aV as removeTempo, ab as removeTie, az as removeTuplet, aZ as removeWedge, T as setNotePitch, W as setNotePitchBySemitone, a6 as setStaves, Y as shiftNotePitch, c6 as stopOctaveShift, t as transpose, av as transposeChecked, bQ as updateHarmony, bJ as updateLyric } from '../index-B-GcfEfL.js';