@tspro/web-music-score 5.2.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +15 -12
  3. package/dist/audio/index.d.mts +1 -1
  4. package/dist/audio/index.d.ts +1 -1
  5. package/dist/audio/index.js +3 -3
  6. package/dist/audio/index.mjs +6 -6
  7. package/dist/audio-cg/index.js +1 -1
  8. package/dist/audio-cg/index.mjs +3 -3
  9. package/dist/audio-synth/index.js +1 -1
  10. package/dist/audio-synth/index.mjs +3 -3
  11. package/dist/{chunk-LC5JMIVF.mjs → chunk-AUT4C6TY.mjs} +2 -2
  12. package/dist/{chunk-XUGM7SCC.mjs → chunk-MHDBTCVG.mjs} +21 -21
  13. package/dist/{chunk-6S5BDSCM.mjs → chunk-QGMOI7AP.mjs} +2 -2
  14. package/dist/chunk-ZWUBO5EW.mjs +37 -0
  15. package/dist/core/index.js +2 -2
  16. package/dist/core/index.mjs +6 -31
  17. package/dist/{guitar-BsSayRsH.d.ts → guitar-CarHGDAt.d.ts} +1 -1
  18. package/dist/{guitar-DdexKdN6.d.mts → guitar-DXlB-9vK.d.mts} +1 -1
  19. package/dist/iife/audio-cg.global.js +1 -1
  20. package/dist/iife/index.global.js +18 -11
  21. package/dist/{music-objects-CwPOlqFi.d.ts → music-objects-3Esbz7ij.d.ts} +261 -381
  22. package/dist/{music-objects-CB05XryE.d.mts → music-objects-ONIuVUgs.d.mts} +261 -381
  23. package/dist/{note-CgCIBwvR.d.ts → note-CJuq5aBy.d.ts} +13 -1
  24. package/dist/{note-eA2xPPiG.d.mts → note-RVXvpfyV.d.mts} +13 -1
  25. package/dist/pieces/index.d.mts +13 -4
  26. package/dist/pieces/index.d.ts +13 -4
  27. package/dist/pieces/index.js +20 -9
  28. package/dist/pieces/index.mjs +20 -10
  29. package/dist/react-ui/index.d.mts +10 -10
  30. package/dist/react-ui/index.d.ts +10 -10
  31. package/dist/react-ui/index.js +19 -21
  32. package/dist/react-ui/index.mjs +23 -25
  33. package/dist/{scale-CBW4eTz7.d.ts → scale-C8gHC448.d.mts} +3 -3
  34. package/dist/{scale-DQP3b9Zx.d.mts → scale-DulPFco_.d.ts} +3 -3
  35. package/dist/score/index.d.mts +235 -7
  36. package/dist/score/index.d.ts +235 -7
  37. package/dist/score/index.js +2064 -1807
  38. package/dist/score/index.mjs +1897 -1671
  39. package/dist/{tempo-dkctPkCS.d.mts → tempo-BlCGZuYg.d.mts} +14 -2
  40. package/dist/{tempo-DMt3iwz9.d.ts → tempo-BnUjm25M.d.ts} +14 -2
  41. package/dist/theory/index.d.mts +6 -6
  42. package/dist/theory/index.d.ts +6 -6
  43. package/dist/theory/index.js +88 -86
  44. package/dist/theory/index.mjs +85 -81
  45. package/package.json +5 -4
@@ -63,7 +63,7 @@ type ParsedNote = {
63
63
  };
64
64
  /** Note class. */
65
65
  declare class Note {
66
- private static noteByNameCache;
66
+ private static noteCache;
67
67
  private static chromaticNoteCache;
68
68
  /** Diatonic class */
69
69
  readonly diatonicClass: number;
@@ -120,6 +120,18 @@ declare class Note {
120
120
  * @returns - Note.
121
121
  */
122
122
  static getNote(noteName: string): Note;
123
+ /**
124
+ * Test if given note name valid.
125
+ * @param noteName - Note name.
126
+ * @returns - True/false.
127
+ */
128
+ static isNote(noteName: string): boolean;
129
+ /**
130
+ * Validate given note name.
131
+ * @param noteName - Note name.
132
+ * @returns - True or throws.
133
+ */
134
+ static validateNote(noteName: string): true;
123
135
  /**
124
136
  * Get chromatic note. There are number of alternatives, this function uses simple logic to choose one.
125
137
  * @param chromaticId - Chromatic id.
@@ -63,7 +63,7 @@ type ParsedNote = {
63
63
  };
64
64
  /** Note class. */
65
65
  declare class Note {
66
- private static noteByNameCache;
66
+ private static noteCache;
67
67
  private static chromaticNoteCache;
68
68
  /** Diatonic class */
69
69
  readonly diatonicClass: number;
@@ -120,6 +120,18 @@ declare class Note {
120
120
  * @returns - Note.
121
121
  */
122
122
  static getNote(noteName: string): Note;
123
+ /**
124
+ * Test if given note name valid.
125
+ * @param noteName - Note name.
126
+ * @returns - True/false.
127
+ */
128
+ static isNote(noteName: string): boolean;
129
+ /**
130
+ * Validate given note name.
131
+ * @param noteName - Note name.
132
+ * @returns - True or throws.
133
+ */
134
+ static validateNote(noteName: string): true;
123
135
  /**
124
136
  * Get chromatic note. There are number of alternatives, this function uses simple logic to choose one.
125
137
  * @param chromaticId - Chromatic id.
@@ -1,8 +1,17 @@
1
- import { M as MDocument } from '../music-objects-CB05XryE.mjs';
2
- import '../note-eA2xPPiG.mjs';
3
- import '../tempo-dkctPkCS.mjs';
1
+ import { M as MDocument } from '../music-objects-ONIuVUgs.mjs';
2
+ import '../note-RVXvpfyV.mjs';
3
+ import '../tempo-BlCGZuYg.mjs';
4
4
  import '@tspro/ts-utils-lib';
5
5
 
6
+ /**
7
+ * Create Canon in D by Pachelbel music piece.<br />
8
+ * <br />
9
+ * Source: https://musescore.com/user/3349846/scores/1376056
10
+ *
11
+ * @returns - Music document.
12
+ */
13
+ declare function createCanonInD(): MDocument;
14
+
6
15
  /**
7
16
  * Create Frere Jacques (round) music piece.<br />
8
17
  * <br />
@@ -28,4 +37,4 @@ declare function createGreensleeves(): MDocument;
28
37
  */
29
38
  declare function createAndanteByDiabelli(): MDocument;
30
39
 
31
- export { createAndanteByDiabelli, createFrereJacques, createGreensleeves };
40
+ export { createAndanteByDiabelli, createCanonInD, createFrereJacques, createGreensleeves };
@@ -1,8 +1,17 @@
1
- import { M as MDocument } from '../music-objects-CwPOlqFi.js';
2
- import '../note-CgCIBwvR.js';
3
- import '../tempo-DMt3iwz9.js';
1
+ import { M as MDocument } from '../music-objects-3Esbz7ij.js';
2
+ import '../note-CJuq5aBy.js';
3
+ import '../tempo-BnUjm25M.js';
4
4
  import '@tspro/ts-utils-lib';
5
5
 
6
+ /**
7
+ * Create Canon in D by Pachelbel music piece.<br />
8
+ * <br />
9
+ * Source: https://musescore.com/user/3349846/scores/1376056
10
+ *
11
+ * @returns - Music document.
12
+ */
13
+ declare function createCanonInD(): MDocument;
14
+
6
15
  /**
7
16
  * Create Frere Jacques (round) music piece.<br />
8
17
  * <br />
@@ -28,4 +37,4 @@ declare function createGreensleeves(): MDocument;
28
37
  */
29
38
  declare function createAndanteByDiabelli(): MDocument;
30
39
 
31
- export { createAndanteByDiabelli, createFrereJacques, createGreensleeves };
40
+ export { createAndanteByDiabelli, createCanonInD, createFrereJacques, createGreensleeves };
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v5.2.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v5.4.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
2
  "use strict";
3
3
  var __defProp = Object.defineProperty;
4
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -22,34 +22,45 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var pieces_exports = {};
23
23
  __export(pieces_exports, {
24
24
  createAndanteByDiabelli: () => createAndanteByDiabelli,
25
+ createCanonInD: () => createCanonInD,
25
26
  createFrereJacques: () => createFrereJacques,
26
27
  createGreensleeves: () => createGreensleeves
27
28
  });
28
29
  module.exports = __toCommonJS(pieces_exports);
29
30
 
30
- // src/pieces/frere-jacques.ts
31
+ // src/pieces/canon-pachelbel.ts
31
32
  var import_score = require("@tspro/web-music-score/score");
33
+ function createCanonInD() {
34
+ return new import_score.DocumentBuilder().setHeader("Canon in D", "Pachelbel").setScoreConfiguration([
35
+ { type: "staff", clef: "G", voiceId: 0, instrument: "Piano" },
36
+ { type: "staff", clef: "F", voiceId: 1, instrument: "Piano" }
37
+ ]).addMeasure().setKeySignature("D Major").setTimeSignature("4/4").setTempo(50, "2n").completeRests(0).addNote(1, ["D3", "F#3", "A3", "D4"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure({ showNumber: true }).completeRests(0).addNote(1, ["B2", "D3", "F#3", "B3"], "8n").addNote(1, ["F#2", "A2", "C#3", "F#3"], "8n").addMeasure().completeRests(0).addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["D2", "F#2", "A2", "D3"], "8n").addMeasure({ showNumber: true }).completeRests(0).addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure().addNote(0, ["F#5", "E5"], "2n").addNote(1, ["D3", "F#3", "A3", "D4"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").endRow().addMeasure({ showNumber: true }).addNote(0, ["D5", "C#5"], "2n").addNote(1, ["B2", "D3", "F#3", "B3"], "8n").addNote(1, ["F#2", "A2", "C#3", "F#3"], "8n").addMeasure().addNote(0, ["B4", "A4"], "2n").addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["D2", "F#2", "A2", "D3"], "8n").addMeasure({ showNumber: true }).addNote(0, ["B4", "C#5"], "2n").addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure().addChord(0, ["F#5", "D5"], "2n").addChord(0, ["E5", "C#5"], "2n").addNote(1, ["D3", "F#3", "A3", "D4"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure({ showNumber: true }).addChord(0, ["D5", "B4"], "2n").addChord(0, ["C#5", "A4"], "2n").addNote(1, ["B2", "D3", "F#3", "B3"], "8n").addNote(1, ["F#2", "A2", "C#3", "F#3"], "8n").endRow().addMeasure({ showNumber: false }).addChord(0, ["B4", "G4"], "2n").addChord(0, ["A4", "F#4"], "2n").addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["D2", "F#2", "A2", "D3"], "8n").addMeasure({ showNumber: true }).addChord(0, ["B4", "G4"], "2n").addChord(0, ["C#5", "A4"], "2n").addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure().addNote(0, ["D4", "F#4", "A4", "G4"], "4n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["F#4", "D4", "F#4", "E4"], "4n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["D4", "B3", "D4", "A4"], "4n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["G4", "B4", "A4", "G4"], "4n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, ["F#4", "D4", "E4", "C#5"], "4n").addNote(1, ["D3", "A2"], "2n").endRow().addMeasure({ showNumber: true }).addNote(0, ["D5", "F#5", "A5", "A4"], "4n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["B4", "G4", "A4", "F#4"], "4n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["D4", "D5", "C#5"], "4n").addRest(0, "4n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, ["D5", "C#5", "D5", "D4"], "8n").addNote(0, ["C#4", "A4", "E4", "F#4"], "8n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["D4", "D5", "C#5", "B4"], "8n").addNote(0, ["C#5", "F#5", "A5", "B5"], "8n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["G5", "F#5", "E5", "G5"], "8n").addNote(0, ["F#5", "E5", "D5", "C#5"], "8n").addNote(1, ["G2", "D2"], "2n").endRow().addMeasure({ showNumber: true }).addNote(0, ["B4", "A4", "G4", "F#4"], "8n").addNote(0, ["E4", "G4", "F#4", "E4"], "8n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, ["D4", "E4", "F#4", "G4"], "8n").addNote(0, ["A4", "E4", "A4", "G4"], "8n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["F#4", "B4", "A4", "G4"], "8n").addNote(0, ["A4", "G4", "F#4", "E4"], "8n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["D4", "B3", "B4", "C#5"], "8n").addNote(0, ["D5", "C#5", "B4", "A4"], "8n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["G4", "F#4", "E4", "B4"], "8n").addNote(0, ["A4", "B4", "A4", "G4"], "8n").addNote(1, ["G2", "A2"], "2n").endRow().addMeasure({ showNumber: false }).addNote(0, "F#4", "4n").addNote(0, "F#5", "4n").addNote(0, "E5", "2n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addRest(0, "4n", { staffPos: "B4" }).addNote(0, "D5", "4n").addNote(0, "F#5", "2n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["B5", "A5"], "2n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["B5", "C#6"], "2n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, ["D6", "D5"], "4n").addNote(0, "C#5", "2n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addRest(0, "4n", { staffPos: "B4" }).addNote(0, "B4", "4n").addNote(0, "D5", "2n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, "D5", "2n").addRest(0, "4n", { staffPos: "B4" }).addNote(0, "D5", "4n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["D5", "F#5", "E5", "A5"], "4n").addNote(1, ["G2", "A2"], "2n").endRow().addMeasure({ showNumber: false }).addNote(0, "A5", "8n").addNote(0, ["F#5", "G5"], "16n").addNote(0, "A5", "8n").addNote(0, ["F#5", "G5"], "16n").addNote(0, ["A5", "A4", "B4", "C#5"], "16n").addNote(0, ["D5", "E5", "F#5", "G5"], "16n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, "F#5", "8n").addNote(0, ["D5", "E5"], "16n").addNote(0, "F#5", "8n").addNote(0, ["F#4", "G4"], "16n").addNote(0, ["A4", "B4", "A4", "G4"], "16n").addNote(0, ["A4", "F#4", "G4", "A4"], "16n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, "G4", "8n").addNote(0, ["B4", "A4"], "16n").addNote(0, "G4", "8n").addNote(0, ["F#4", "E4"], "16n").addNote(0, ["F#4", "E4", "D4", "E4"], "16n").addNote(0, ["F#4", "G4", "A4", "B4"], "16n").addNote(1, ["G2", "D2"], "2n").endRow().addMeasure({ showNumber: true }).addNote(0, "G4", "8n").addNote(0, ["B4", "A4"], "16n").addNote(0, "B4", "8n").addNote(0, ["C#5", "D5"], "16n").addNote(0, ["A4", "B4", "C#5", "D5"], "16n").addNote(0, ["E5", "F#5", "G5", "A5"], "16n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, "F#5", "8n").addNote(0, ["D5", "E5"], "16n").addNote(0, "F#5", "8n").addNote(0, ["E5", "D5"], "16n").addNote(0, ["E5", "C#5", "D5", "E5"], "16n").addNote(0, ["F#5", "E5", "D5", "C#5"], "16n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, "D5", "8n").addNote(0, ["B4", "C#5"], "16n").addNote(0, "D5", "8n").addNote(0, ["D4", "E4"], "16n").addNote(0, ["F#4", "G4", "F#4", "E4"], "16n").addNote(0, ["F#4", "D5", "C#5", "D5"], "16n").addNote(1, ["B2", "F#2"], "2n").endRow().addMeasure({ showNumber: false }).addNote(0, "B4", "8n").addNote(0, ["D5", "C#5"], "16n").addNote(0, "B4", "8n").addNote(0, ["A4", "G4"], "16n").addNote(0, ["A4", "G4", "F#4", "G4"], "16n").addNote(0, ["A4", "B4", "C#5", "D5"], "16n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, "B4", "8n").addNote(0, ["D5", "C#5"], "16n").addNote(0, "D5", "8n").addNote(0, ["C#5", "B4"], "16n").addNote(0, ["C#5", "D5", "E5", "D5"], "16n").addNote(0, ["C#5", "D5", "B4", "C#5"], "16n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNavigation("startRepeat").addNote(0, "D5", "4.").addNote(0, "A5", "8n").addNote(0, ["A5", "B5", "A5", "G5"], "8n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, "F#5", "4.").addNote(0, "F#5", "8n").addNote(0, ["F#5", "G5", "F#5", "E5"], "8n").addNote(1, ["B2", "F#2"], "2n").endRow().addMeasure({ showNumber: false }).addNote(0, "D5", "4.").addNote(0, "D5", "8n").addNote(0, ["D5", "A5"], "4n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["D5", "C5", "B5", "C5"], "8n").addNote(0, "C#5", "2n").addNote(1, ["G2", "A2"], "2n").addNavigation("endRepeat").addMeasure().addNote(0, "D5", "1n").addNote(1, "D3", "1n").getDocument();
38
+ }
39
+
40
+ // src/pieces/frere-jacques.ts
41
+ var import_score2 = require("@tspro/web-music-score/score");
32
42
  function createFrereJacques() {
33
- return new import_score.DocumentBuilder().setHeader("Fr\xE8re Jacques", "Traditional").setScoreConfiguration([
34
- { type: "staff", clef: "G", voiceIds: [0] },
35
- { type: "staff", clef: "F", voiceIds: [1] }
43
+ return new import_score2.DocumentBuilder().setHeader("Fr\xE8re Jacques", "Traditional").setScoreConfiguration([
44
+ { type: "staff", clef: "G", voiceId: 0 },
45
+ { type: "staff", clef: "F", voiceId: 1 }
36
46
  ]).setMeasuresPerRow(2).addMeasure().setKeySignature("D Major").setTimeSignature("4/4").addNote(0, "D4", "4n", { stem: "up" }).addLyrics(1, "4n", "Are").addNote(0, "E4", "4n").addLyrics(1, "4n", "you").addNote(0, "F#4", "4n").addLyrics(1, "4n", "sleep", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing?").addRest(1, "1n", { staffPos: "F3" }).addMeasure().addNote(0, "D4", "4n").addLyrics(1, "4n", "Are").addNote(0, "E4", "4n").addLyrics(1, "4n", "you").addNote(0, "F#4", "4n").addLyrics(1, "4n", "sleep", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing?").addRest(1, "1n", { staffPos: "F3" }).addMeasure().addNavigation("startRepeat").addNote(0, "F#4", "4n").addLyrics(1, "4n", "Bro", { hyphen: "-" }).addNote(0, "G4", "4n").addLyrics(1, "4n", "ther").addNote(0, "A4", "2n").addLyrics(1, "4n", "John?").addNote(1, "D3", "4n", { stem: "down" }).addLyricsTo(1, 1, "4n", "Are").addNote(1, "E3", "4n").addLyricsTo(1, 1, "4n", "you").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "sleep", { hyphen: "-" }).addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "ing?").addMeasure().addNote(0, "F#4", "4n").addLyrics(1, "4n", "Bro", { hyphen: "-" }).addNote(0, "G4", "4n").addLyrics(1, "4n", "ther").addNote(0, "A4", "2n").addLyrics(1, "4n", "John?").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "Are").addNote(1, "E3", "4n").addLyricsTo(1, 1, "4n", "you").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "sleep", { hyphen: "-" }).addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "ing?").addMeasure().addNote(0, "A4", "8n").addLyrics(1, "8n", "Morn", { hyphen: "-" }).addNote(0, "B4", "8n").addLyrics(1, "8n", "ing").addNote(0, "A4", "8n").addLyrics(1, "8n", "bells").addNote(0, "G4", "8n").addLyrics(1, "8n", "are").addNote(0, "F#4", "4n").addLyrics(1, "4n", "ring", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing!").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "Bro", { hyphen: "-" }).addNote(1, "G3", "4n").addLyricsTo(1, 1, "4n", "ther").addNote(1, "A3", "2n").addLyricsTo(1, 1, "2n", "John?").addMeasure().addNote(0, "A4", "8n").addLyrics(1, "8n", "Morn", { hyphen: "-" }).addNote(0, "B4", "8n").addLyrics(1, "8n", "ing").addNote(0, "A4", "8n").addLyrics(1, "8n", "bells").addNote(0, "G4", "8n").addLyrics(1, "8n", "are").addNote(0, "F#4", "4n").addLyrics(1, "4n", "ring", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing!").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "Bro", { hyphen: "-" }).addNote(1, "G3", "4n").addLyricsTo(1, 1, "4n", "ther").addNote(1, "A3", "2n").addLyricsTo(1, 1, "2n", "John?").addMeasure().addNote(0, "D4", "4n").addLyrics(1, "4n", "Ding").addChord(0, ["C#4", "A4"], "4n").addLyrics(1, "4n", "ding").addNote(0, "D4", "4n").addLyrics(1, "4n", "dong!").addRest(0, "4n").addNote(1, "A3", "8n").addLyricsTo(1, 1, "8n", "Morn", { hyphen: "-" }).addNote(1, "B3", "8n").addLyricsTo(1, 1, "8n", "ing").addNote(1, "A3", "8n").addLyricsTo(1, 1, "8n", "bells").addNote(1, "G3", "8n").addLyricsTo(1, 1, "8n", "are").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "ring", { hyphen: "-" }).addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "ing!").addMeasure().addNote(0, "D4", "4n").addLyrics(1, "4n", "Ding").addChord(0, ["C#4", "A4"], "4n").addLyrics(1, "4n", "ding").addNote(0, "D4", "4n").addLyrics(1, "4n", "dong!").addRest(0, "4n").addNote(1, "A3", "8n").addLyricsTo(1, 1, "8n", "Morn", { hyphen: "-" }).addNote(1, "B3", "8n").addLyricsTo(1, 1, "8n", "ing").addNote(1, "A3", "8n").addLyricsTo(1, 1, "8n", "bells").addNote(1, "G3", "8n").addLyricsTo(1, 1, "8n", "are").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "ring", { hyphen: "-" }).addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "ing!").addMeasure().setMeasuresPerRow(4).addNote(0, "D4", "4n").addLyrics(1, "4n", "Are").addNote(0, "E4", "4n").addLyrics(1, "4n", "you").addNote(0, "F#4", "4n").addLyrics(1, "4n", "sleep", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing?").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "Ding").addChord(1, ["C#3", "A3"], "4n").addLyricsTo(1, 1, "4n", "ding").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "dong!").addRest(1, "4n").addMeasure().addNavigation("endRepeat").addNote(0, "D4", "4n").addLyrics(1, "4n", "Are").addNote(0, "E4", "4n").addLyrics(1, "4n", "you").addNote(0, "F#4", "4n").addLyrics(1, "4n", "sleep", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing?").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "Ding").addChord(1, ["C#3", "A3"], "4n").addLyricsTo(1, 1, "4n", "ding").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "dong!").addRest(1, "4n").addMeasure().addNote(0, "F#4", "4n").addLyrics(1, "4n", "YES").addNote(0, "D4", "4n").addLyrics(1, "4n", "I'm").addNote(0, "F#4", "4n").addLyrics(1, "4n", "SLEEP", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ING").addNote(1, "A3", "4n").addNote(1, "F#3", "4n").addNote(1, "A3", "4n").addNote(1, "F#3", "4n").addMeasure().addNote(0, "A3", "4n").addLyrics(1, "4n", "Please").addNote(0, "C#4", "8n").addLyrics(1, "8n", "GO").addNote(0, "C#4", "8n").addLyrics(1, "8n", "A", { hyphen: "-" }).addNote(0, "D4", "2n").addLyrics(1, "4n", "WAY!").addNote(1, "D3", "4n").addNote(1, "E3", "4n").addNote(1, "F#3", "2n").getDocument();
37
47
  }
38
48
 
39
49
  // src/pieces/greensleeves.ts
40
- var import_score2 = require("@tspro/web-music-score/score");
50
+ var import_score3 = require("@tspro/web-music-score/score");
41
51
  function createGreensleeves() {
42
- return new import_score2.DocumentBuilder().setScoreConfiguration("guitarTreble").setHeader("Greensleeves").addMeasure().setKeySignature("C", "Major").setTimeSignature("6/8").setTempo(140).addNote(0, "A3", "8n").addMeasure().addNavigation(import_score2.Navigation.StartRepeat).addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "D4", "8n").addNote(0, "E4", "8.").addNote(0, "F4", "16n").addNote(0, "E4", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "A2", "8n").addNote(1, "E3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "8n").addNote(0, "A3", "8.").addLabel("chord", "F").addNote(0, "G#3", "16n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "F2", "8n").addNote(1, "A2", "4n").addMeasure().addNote(0, "B3", "4n", { stem: "up" }).addLabel("chord", "E").addNote(0, "G#3", "8n").addNote(0, "E3", "4n").addNote(0, "A3", "8n").addNote(1, "E2", "8n", { stem: "down" }).addNote(1, "B2", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").endRow().addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "D4", "8n").addNote(0, "E4", "8.").addNote(0, "F4", "16n").addNote(0, "E4", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "A2", "8n").addNote(1, "E3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "8.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "B3", "16n").addNote(0, "A3", "8n").addNote(0, "G#3", "8.").addLabel("chord", "E").addNote(0, "F#3", "16n").addNote(0, "G#3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4.").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").endRow().addMeasure().addChord(0, ["C3", "E3", "G3", "C4", "G4"], "4.", { arpeggio: "up", stem: "up" }).addLabel("chord", "C").addNote(0, "G4", "8.").addNote(0, "F#4", "16n").addNote(0, "E4", "8n").addRest(1, "4.", { hide: true }).addNote(1, "C3", "8n", { stem: "down" }).addNote(1, "G3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "8n").addNote(0, "A3", "8.").addLabel("chord", "F").addNote(0, "G#3", "16n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "F2", "8n").addNote(1, "A2", "4n").addMeasure().addNote(0, "B3", "4n", { stem: "up" }).addLabel("chord", "E").addNote(0, "G#3", "8n").addNote(0, "E3", "4.").addNote(1, "E2", "8n", { stem: "down" }).addNote(1, "B2", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "8n").addNote(1, "E3", "8n").endRow().addMeasure().addNote(0, "G4", "4.", { stem: "up" }).addLabel("chord", "C").addNote(0, "G4", "8.").addNote(0, "F#4", "16n").addNote(0, "E4", "8n").addNote(1, "C3", "8n", { stem: "down" }).addNote(1, "G3", "8n").addNote(1, "C4", "8n").addNote(1, "C3", "8n").addNote(1, "G3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "8.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "B3", "16n").addNote(0, "A3", "8n").addNote(0, "G#3", "8.").addLabel("chord", "E").addNote(0, "F#3", "16n").addNote(0, "G#3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNavigation("ending", 1).addNavigation("endRepeat").addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").addMeasure().addNavigation("ending", 2).addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4.").addFermata().addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").getDocument();
52
+ return new import_score3.DocumentBuilder().setScoreConfiguration("guitarTreble").setHeader("Greensleeves").addMeasure().setKeySignature("C", "Major").setTimeSignature("6/8").setTempo(140).addNote(0, "A3", "8n").addMeasure().addNavigation(import_score3.Navigation.StartRepeat).addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "D4", "8n").addNote(0, "E4", "8.").addNote(0, "F4", "16n").addNote(0, "E4", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "A2", "8n").addNote(1, "E3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "8n").addNote(0, "A3", "8.").addLabel("chord", "F").addNote(0, "G#3", "16n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "F2", "8n").addNote(1, "A2", "4n").addMeasure().addNote(0, "B3", "4n", { stem: "up" }).addLabel("chord", "E").addNote(0, "G#3", "8n").addNote(0, "E3", "4n").addNote(0, "A3", "8n").addNote(1, "E2", "8n", { stem: "down" }).addNote(1, "B2", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").endRow().addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "D4", "8n").addNote(0, "E4", "8.").addNote(0, "F4", "16n").addNote(0, "E4", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "A2", "8n").addNote(1, "E3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "8.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "B3", "16n").addNote(0, "A3", "8n").addNote(0, "G#3", "8.").addLabel("chord", "E").addNote(0, "F#3", "16n").addNote(0, "G#3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4.").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").endRow().addMeasure().addChord(0, ["C3", "E3", "G3", "C4", "G4"], "4.", { arpeggio: "up", stem: "up" }).addLabel("chord", "C").addNote(0, "G4", "8.").addNote(0, "F#4", "16n").addNote(0, "E4", "8n").addRest(1, "4.", { hide: true }).addNote(1, "C3", "8n", { stem: "down" }).addNote(1, "G3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "8n").addNote(0, "A3", "8.").addLabel("chord", "F").addNote(0, "G#3", "16n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "F2", "8n").addNote(1, "A2", "4n").addMeasure().addNote(0, "B3", "4n", { stem: "up" }).addLabel("chord", "E").addNote(0, "G#3", "8n").addNote(0, "E3", "4.").addNote(1, "E2", "8n", { stem: "down" }).addNote(1, "B2", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "8n").addNote(1, "E3", "8n").endRow().addMeasure().addNote(0, "G4", "4.", { stem: "up" }).addLabel("chord", "C").addNote(0, "G4", "8.").addNote(0, "F#4", "16n").addNote(0, "E4", "8n").addNote(1, "C3", "8n", { stem: "down" }).addNote(1, "G3", "8n").addNote(1, "C4", "8n").addNote(1, "C3", "8n").addNote(1, "G3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "8.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "B3", "16n").addNote(0, "A3", "8n").addNote(0, "G#3", "8.").addLabel("chord", "E").addNote(0, "F#3", "16n").addNote(0, "G#3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNavigation("ending", 1).addNavigation("endRepeat").addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").addMeasure().addNavigation("ending", 2).addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4.").addFermata().addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").getDocument();
43
53
  }
44
54
 
45
55
  // src/pieces/andante-diabelli.ts
46
- var import_score3 = require("@tspro/web-music-score/score");
56
+ var import_score4 = require("@tspro/web-music-score/score");
47
57
  function createAndanteByDiabelli() {
48
- return new import_score3.DocumentBuilder().setScoreConfiguration("guitarTreble").setHeader("Andante", "A. Diabelli").addMeasure().setKeySignature("D", "Major").setTimeSignature("3/4").setTempo(80).addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "p").addNote(0, "F#4", "8n", { stem: "up" }).addNote(0, "G4", "8n").addConnective("slur", 2, "below").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(0, "D4", "8n").addNote(1, "D3", "2.", { stem: "down" }).addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "4n").addNote(1, "A2", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "f").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").endRow().addMeasure().addNote(0, "D4", "8n", { string: 3 }).addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "8n").addNote(0, "A4", "4n").addNote(1, "D3", "2.").addMeasure().addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "p").addNote(0, "F#4", "8n").addNote(0, "G4", "8n").addConnective("slur", 2, "below").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(0, "D4", "8n").addNote(1, "D3", "2.").addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "4n").addNote(1, "A2", "2.").endRow().addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "f").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "4n").addRest(1, "4n", { staffPos: "D3" }).addNote(0, "D3", "4n").addNote(1, "D3", "4n").addRest(1, "4n", { staffPos: "B3" }).addNavigation("endRepeat").addMeasure().addRest(0, "8n", { staffPos: "D4" }).addAnnotation("dynamics", "f").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "C#4", "8n").addNote(0, "B3", "8n").addNote(1, "E2", "2.").endRow().addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "E4", "4n").addNote(1, "A2", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "p").addNote(0, "E3", "8n").addNote(0, "D#3", "8n").addConnective("slur", 2, "below").addNote(0, "E3", "8n").addNote(0, "F#3", "8n").addNote(0, "G#3", "8n").addNote(1, "E2", "2.").addMeasure().addNote(0, "A3", "8n").addConnective("slur", 2, "below").addNote(0, "G#3", "8n").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "4n").addNote(1, "A2", "2.").endRow().addMeasure().addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "f").addNote(0, "G4", "8n").addNote(0, "A4", "8n").addConnective("slur", 2, "below").addNote(0, "G4", "8n").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "8n").addNote(0, "C#4", "8n").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "4n").addNote(1, "D3", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "ff").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "4n").addRest(1, "4n", { staffPos: "D3" }).addNote(0, "D3", "4n").addNote(1, "D3", "4n").addRest(1, "4n", { staffPos: "B3" }).endSong().getDocument();
58
+ return new import_score4.DocumentBuilder().setScoreConfiguration("guitarTreble").setHeader("Andante", "A. Diabelli").addMeasure().setKeySignature("D", "Major").setTimeSignature("3/4").setTempo(80).addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "p").addNote(0, "F#4", "8n", { stem: "up" }).addNote(0, "G4", "8n").addConnective("slur", 2, "below").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(0, "D4", "8n").addNote(1, "D3", "2.", { stem: "down" }).addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "4n").addNote(1, "A2", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "f").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").endRow().addMeasure().addNote(0, "D4", "8n", { string: 3 }).addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "8n").addNote(0, "A4", "4n").addNote(1, "D3", "2.").addMeasure().addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "p").addNote(0, "F#4", "8n").addNote(0, "G4", "8n").addConnective("slur", 2, "below").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(0, "D4", "8n").addNote(1, "D3", "2.").addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "4n").addNote(1, "A2", "2.").endRow().addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "f").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "4n").addRest(1, "4n", { staffPos: "D3" }).addNote(0, "D3", "4n").addNote(1, "D3", "4n").addRest(1, "4n", { staffPos: "B3" }).addNavigation("endRepeat").addMeasure().addRest(0, "8n", { staffPos: "D4" }).addAnnotation("dynamics", "f").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "C#4", "8n").addNote(0, "B3", "8n").addNote(1, "E2", "2.").endRow().addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "E4", "4n").addNote(1, "A2", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "p").addNote(0, "E3", "8n").addNote(0, "D#3", "8n").addConnective("slur", 2, "below").addNote(0, "E3", "8n").addNote(0, "F#3", "8n").addNote(0, "G#3", "8n").addNote(1, "E2", "2.").addMeasure().addNote(0, "A3", "8n").addConnective("slur", 2, "below").addNote(0, "G#3", "8n").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "4n").addNote(1, "A2", "2.").endRow().addMeasure().addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "f").addNote(0, "G4", "8n").addNote(0, "A4", "8n").addConnective("slur", 2, "below").addNote(0, "G4", "8n").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "8n").addNote(0, "C#4", "8n").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "4n").addNote(1, "D3", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "ff").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "4n").addRest(1, "4n", { staffPos: "D3" }).addNote(0, "D3", "4n").addNote(1, "D3", "4n").addRest(1, "4n", { staffPos: "B3" }).endSong().getDocument();
49
59
  }
50
60
  // Annotate the CommonJS export names for ESM import in node:
51
61
  0 && (module.exports = {
52
62
  createAndanteByDiabelli,
63
+ createCanonInD,
53
64
  createFrereJacques,
54
65
  createGreensleeves
55
66
  });
@@ -1,28 +1,38 @@
1
- /* WebMusicScore v5.2.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
- import "../chunk-LC5JMIVF.mjs";
1
+ /* WebMusicScore v5.4.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
+ import "../chunk-AUT4C6TY.mjs";
3
3
 
4
- // src/pieces/frere-jacques.ts
4
+ // src/pieces/canon-pachelbel.ts
5
5
  import { DocumentBuilder } from "@tspro/web-music-score/score";
6
+ function createCanonInD() {
7
+ return new DocumentBuilder().setHeader("Canon in D", "Pachelbel").setScoreConfiguration([
8
+ { type: "staff", clef: "G", voiceId: 0, instrument: "Piano" },
9
+ { type: "staff", clef: "F", voiceId: 1, instrument: "Piano" }
10
+ ]).addMeasure().setKeySignature("D Major").setTimeSignature("4/4").setTempo(50, "2n").completeRests(0).addNote(1, ["D3", "F#3", "A3", "D4"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure({ showNumber: true }).completeRests(0).addNote(1, ["B2", "D3", "F#3", "B3"], "8n").addNote(1, ["F#2", "A2", "C#3", "F#3"], "8n").addMeasure().completeRests(0).addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["D2", "F#2", "A2", "D3"], "8n").addMeasure({ showNumber: true }).completeRests(0).addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure().addNote(0, ["F#5", "E5"], "2n").addNote(1, ["D3", "F#3", "A3", "D4"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").endRow().addMeasure({ showNumber: true }).addNote(0, ["D5", "C#5"], "2n").addNote(1, ["B2", "D3", "F#3", "B3"], "8n").addNote(1, ["F#2", "A2", "C#3", "F#3"], "8n").addMeasure().addNote(0, ["B4", "A4"], "2n").addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["D2", "F#2", "A2", "D3"], "8n").addMeasure({ showNumber: true }).addNote(0, ["B4", "C#5"], "2n").addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure().addChord(0, ["F#5", "D5"], "2n").addChord(0, ["E5", "C#5"], "2n").addNote(1, ["D3", "F#3", "A3", "D4"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure({ showNumber: true }).addChord(0, ["D5", "B4"], "2n").addChord(0, ["C#5", "A4"], "2n").addNote(1, ["B2", "D3", "F#3", "B3"], "8n").addNote(1, ["F#2", "A2", "C#3", "F#3"], "8n").endRow().addMeasure({ showNumber: false }).addChord(0, ["B4", "G4"], "2n").addChord(0, ["A4", "F#4"], "2n").addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["D2", "F#2", "A2", "D3"], "8n").addMeasure({ showNumber: true }).addChord(0, ["B4", "G4"], "2n").addChord(0, ["C#5", "A4"], "2n").addNote(1, ["G2", "B2", "D3", "G3"], "8n").addNote(1, ["A2", "C#3", "E3", "A3"], "8n").addMeasure().addNote(0, ["D4", "F#4", "A4", "G4"], "4n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["F#4", "D4", "F#4", "E4"], "4n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["D4", "B3", "D4", "A4"], "4n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["G4", "B4", "A4", "G4"], "4n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, ["F#4", "D4", "E4", "C#5"], "4n").addNote(1, ["D3", "A2"], "2n").endRow().addMeasure({ showNumber: true }).addNote(0, ["D5", "F#5", "A5", "A4"], "4n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["B4", "G4", "A4", "F#4"], "4n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["D4", "D5", "C#5"], "4n").addRest(0, "4n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, ["D5", "C#5", "D5", "D4"], "8n").addNote(0, ["C#4", "A4", "E4", "F#4"], "8n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["D4", "D5", "C#5", "B4"], "8n").addNote(0, ["C#5", "F#5", "A5", "B5"], "8n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["G5", "F#5", "E5", "G5"], "8n").addNote(0, ["F#5", "E5", "D5", "C#5"], "8n").addNote(1, ["G2", "D2"], "2n").endRow().addMeasure({ showNumber: true }).addNote(0, ["B4", "A4", "G4", "F#4"], "8n").addNote(0, ["E4", "G4", "F#4", "E4"], "8n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, ["D4", "E4", "F#4", "G4"], "8n").addNote(0, ["A4", "E4", "A4", "G4"], "8n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["F#4", "B4", "A4", "G4"], "8n").addNote(0, ["A4", "G4", "F#4", "E4"], "8n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["D4", "B3", "B4", "C#5"], "8n").addNote(0, ["D5", "C#5", "B4", "A4"], "8n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["G4", "F#4", "E4", "B4"], "8n").addNote(0, ["A4", "B4", "A4", "G4"], "8n").addNote(1, ["G2", "A2"], "2n").endRow().addMeasure({ showNumber: false }).addNote(0, "F#4", "4n").addNote(0, "F#5", "4n").addNote(0, "E5", "2n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addRest(0, "4n", { staffPos: "B4" }).addNote(0, "D5", "4n").addNote(0, "F#5", "2n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, ["B5", "A5"], "2n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["B5", "C#6"], "2n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, ["D6", "D5"], "4n").addNote(0, "C#5", "2n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addRest(0, "4n", { staffPos: "B4" }).addNote(0, "B4", "4n").addNote(0, "D5", "2n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, "D5", "2n").addRest(0, "4n", { staffPos: "B4" }).addNote(0, "D5", "4n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["D5", "F#5", "E5", "A5"], "4n").addNote(1, ["G2", "A2"], "2n").endRow().addMeasure({ showNumber: false }).addNote(0, "A5", "8n").addNote(0, ["F#5", "G5"], "16n").addNote(0, "A5", "8n").addNote(0, ["F#5", "G5"], "16n").addNote(0, ["A5", "A4", "B4", "C#5"], "16n").addNote(0, ["D5", "E5", "F#5", "G5"], "16n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, "F#5", "8n").addNote(0, ["D5", "E5"], "16n").addNote(0, "F#5", "8n").addNote(0, ["F#4", "G4"], "16n").addNote(0, ["A4", "B4", "A4", "G4"], "16n").addNote(0, ["A4", "F#4", "G4", "A4"], "16n").addNote(1, ["B2", "F#2"], "2n").addMeasure().addNote(0, "G4", "8n").addNote(0, ["B4", "A4"], "16n").addNote(0, "G4", "8n").addNote(0, ["F#4", "E4"], "16n").addNote(0, ["F#4", "E4", "D4", "E4"], "16n").addNote(0, ["F#4", "G4", "A4", "B4"], "16n").addNote(1, ["G2", "D2"], "2n").endRow().addMeasure({ showNumber: true }).addNote(0, "G4", "8n").addNote(0, ["B4", "A4"], "16n").addNote(0, "B4", "8n").addNote(0, ["C#5", "D5"], "16n").addNote(0, ["A4", "B4", "C#5", "D5"], "16n").addNote(0, ["E5", "F#5", "G5", "A5"], "16n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNote(0, "F#5", "8n").addNote(0, ["D5", "E5"], "16n").addNote(0, "F#5", "8n").addNote(0, ["E5", "D5"], "16n").addNote(0, ["E5", "C#5", "D5", "E5"], "16n").addNote(0, ["F#5", "E5", "D5", "C#5"], "16n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, "D5", "8n").addNote(0, ["B4", "C#5"], "16n").addNote(0, "D5", "8n").addNote(0, ["D4", "E4"], "16n").addNote(0, ["F#4", "G4", "F#4", "E4"], "16n").addNote(0, ["F#4", "D5", "C#5", "D5"], "16n").addNote(1, ["B2", "F#2"], "2n").endRow().addMeasure({ showNumber: false }).addNote(0, "B4", "8n").addNote(0, ["D5", "C#5"], "16n").addNote(0, "B4", "8n").addNote(0, ["A4", "G4"], "16n").addNote(0, ["A4", "G4", "F#4", "G4"], "16n").addNote(0, ["A4", "B4", "C#5", "D5"], "16n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, "B4", "8n").addNote(0, ["D5", "C#5"], "16n").addNote(0, "D5", "8n").addNote(0, ["C#5", "B4"], "16n").addNote(0, ["C#5", "D5", "E5", "D5"], "16n").addNote(0, ["C#5", "D5", "B4", "C#5"], "16n").addNote(1, ["G2", "A2"], "2n").addMeasure().addNavigation("startRepeat").addNote(0, "D5", "4.").addNote(0, "A5", "8n").addNote(0, ["A5", "B5", "A5", "G5"], "8n").addNote(1, ["D3", "A2"], "2n").addMeasure({ showNumber: true }).addNote(0, "F#5", "4.").addNote(0, "F#5", "8n").addNote(0, ["F#5", "G5", "F#5", "E5"], "8n").addNote(1, ["B2", "F#2"], "2n").endRow().addMeasure({ showNumber: false }).addNote(0, "D5", "4.").addNote(0, "D5", "8n").addNote(0, ["D5", "A5"], "4n").addNote(1, ["G2", "D2"], "2n").addMeasure({ showNumber: true }).addNote(0, ["D5", "C5", "B5", "C5"], "8n").addNote(0, "C#5", "2n").addNote(1, ["G2", "A2"], "2n").addNavigation("endRepeat").addMeasure().addNote(0, "D5", "1n").addNote(1, "D3", "1n").getDocument();
11
+ }
12
+
13
+ // src/pieces/frere-jacques.ts
14
+ import { DocumentBuilder as DocumentBuilder2 } from "@tspro/web-music-score/score";
6
15
  function createFrereJacques() {
7
- return new DocumentBuilder().setHeader("Fr\xE8re Jacques", "Traditional").setScoreConfiguration([
8
- { type: "staff", clef: "G", voiceIds: [0] },
9
- { type: "staff", clef: "F", voiceIds: [1] }
16
+ return new DocumentBuilder2().setHeader("Fr\xE8re Jacques", "Traditional").setScoreConfiguration([
17
+ { type: "staff", clef: "G", voiceId: 0 },
18
+ { type: "staff", clef: "F", voiceId: 1 }
10
19
  ]).setMeasuresPerRow(2).addMeasure().setKeySignature("D Major").setTimeSignature("4/4").addNote(0, "D4", "4n", { stem: "up" }).addLyrics(1, "4n", "Are").addNote(0, "E4", "4n").addLyrics(1, "4n", "you").addNote(0, "F#4", "4n").addLyrics(1, "4n", "sleep", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing?").addRest(1, "1n", { staffPos: "F3" }).addMeasure().addNote(0, "D4", "4n").addLyrics(1, "4n", "Are").addNote(0, "E4", "4n").addLyrics(1, "4n", "you").addNote(0, "F#4", "4n").addLyrics(1, "4n", "sleep", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing?").addRest(1, "1n", { staffPos: "F3" }).addMeasure().addNavigation("startRepeat").addNote(0, "F#4", "4n").addLyrics(1, "4n", "Bro", { hyphen: "-" }).addNote(0, "G4", "4n").addLyrics(1, "4n", "ther").addNote(0, "A4", "2n").addLyrics(1, "4n", "John?").addNote(1, "D3", "4n", { stem: "down" }).addLyricsTo(1, 1, "4n", "Are").addNote(1, "E3", "4n").addLyricsTo(1, 1, "4n", "you").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "sleep", { hyphen: "-" }).addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "ing?").addMeasure().addNote(0, "F#4", "4n").addLyrics(1, "4n", "Bro", { hyphen: "-" }).addNote(0, "G4", "4n").addLyrics(1, "4n", "ther").addNote(0, "A4", "2n").addLyrics(1, "4n", "John?").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "Are").addNote(1, "E3", "4n").addLyricsTo(1, 1, "4n", "you").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "sleep", { hyphen: "-" }).addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "ing?").addMeasure().addNote(0, "A4", "8n").addLyrics(1, "8n", "Morn", { hyphen: "-" }).addNote(0, "B4", "8n").addLyrics(1, "8n", "ing").addNote(0, "A4", "8n").addLyrics(1, "8n", "bells").addNote(0, "G4", "8n").addLyrics(1, "8n", "are").addNote(0, "F#4", "4n").addLyrics(1, "4n", "ring", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing!").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "Bro", { hyphen: "-" }).addNote(1, "G3", "4n").addLyricsTo(1, 1, "4n", "ther").addNote(1, "A3", "2n").addLyricsTo(1, 1, "2n", "John?").addMeasure().addNote(0, "A4", "8n").addLyrics(1, "8n", "Morn", { hyphen: "-" }).addNote(0, "B4", "8n").addLyrics(1, "8n", "ing").addNote(0, "A4", "8n").addLyrics(1, "8n", "bells").addNote(0, "G4", "8n").addLyrics(1, "8n", "are").addNote(0, "F#4", "4n").addLyrics(1, "4n", "ring", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing!").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "Bro", { hyphen: "-" }).addNote(1, "G3", "4n").addLyricsTo(1, 1, "4n", "ther").addNote(1, "A3", "2n").addLyricsTo(1, 1, "2n", "John?").addMeasure().addNote(0, "D4", "4n").addLyrics(1, "4n", "Ding").addChord(0, ["C#4", "A4"], "4n").addLyrics(1, "4n", "ding").addNote(0, "D4", "4n").addLyrics(1, "4n", "dong!").addRest(0, "4n").addNote(1, "A3", "8n").addLyricsTo(1, 1, "8n", "Morn", { hyphen: "-" }).addNote(1, "B3", "8n").addLyricsTo(1, 1, "8n", "ing").addNote(1, "A3", "8n").addLyricsTo(1, 1, "8n", "bells").addNote(1, "G3", "8n").addLyricsTo(1, 1, "8n", "are").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "ring", { hyphen: "-" }).addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "ing!").addMeasure().addNote(0, "D4", "4n").addLyrics(1, "4n", "Ding").addChord(0, ["C#4", "A4"], "4n").addLyrics(1, "4n", "ding").addNote(0, "D4", "4n").addLyrics(1, "4n", "dong!").addRest(0, "4n").addNote(1, "A3", "8n").addLyricsTo(1, 1, "8n", "Morn", { hyphen: "-" }).addNote(1, "B3", "8n").addLyricsTo(1, 1, "8n", "ing").addNote(1, "A3", "8n").addLyricsTo(1, 1, "8n", "bells").addNote(1, "G3", "8n").addLyricsTo(1, 1, "8n", "are").addNote(1, "F#3", "4n").addLyricsTo(1, 1, "4n", "ring", { hyphen: "-" }).addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "ing!").addMeasure().setMeasuresPerRow(4).addNote(0, "D4", "4n").addLyrics(1, "4n", "Are").addNote(0, "E4", "4n").addLyrics(1, "4n", "you").addNote(0, "F#4", "4n").addLyrics(1, "4n", "sleep", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing?").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "Ding").addChord(1, ["C#3", "A3"], "4n").addLyricsTo(1, 1, "4n", "ding").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "dong!").addRest(1, "4n").addMeasure().addNavigation("endRepeat").addNote(0, "D4", "4n").addLyrics(1, "4n", "Are").addNote(0, "E4", "4n").addLyrics(1, "4n", "you").addNote(0, "F#4", "4n").addLyrics(1, "4n", "sleep", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ing?").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "Ding").addChord(1, ["C#3", "A3"], "4n").addLyricsTo(1, 1, "4n", "ding").addNote(1, "D3", "4n").addLyricsTo(1, 1, "4n", "dong!").addRest(1, "4n").addMeasure().addNote(0, "F#4", "4n").addLyrics(1, "4n", "YES").addNote(0, "D4", "4n").addLyrics(1, "4n", "I'm").addNote(0, "F#4", "4n").addLyrics(1, "4n", "SLEEP", { hyphen: "-" }).addNote(0, "D4", "4n").addLyrics(1, "4n", "ING").addNote(1, "A3", "4n").addNote(1, "F#3", "4n").addNote(1, "A3", "4n").addNote(1, "F#3", "4n").addMeasure().addNote(0, "A3", "4n").addLyrics(1, "4n", "Please").addNote(0, "C#4", "8n").addLyrics(1, "8n", "GO").addNote(0, "C#4", "8n").addLyrics(1, "8n", "A", { hyphen: "-" }).addNote(0, "D4", "2n").addLyrics(1, "4n", "WAY!").addNote(1, "D3", "4n").addNote(1, "E3", "4n").addNote(1, "F#3", "2n").getDocument();
11
20
  }
12
21
 
13
22
  // src/pieces/greensleeves.ts
14
- import { Navigation, DocumentBuilder as DocumentBuilder2 } from "@tspro/web-music-score/score";
23
+ import { Navigation, DocumentBuilder as DocumentBuilder3 } from "@tspro/web-music-score/score";
15
24
  function createGreensleeves() {
16
- return new DocumentBuilder2().setScoreConfiguration("guitarTreble").setHeader("Greensleeves").addMeasure().setKeySignature("C", "Major").setTimeSignature("6/8").setTempo(140).addNote(0, "A3", "8n").addMeasure().addNavigation(Navigation.StartRepeat).addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "D4", "8n").addNote(0, "E4", "8.").addNote(0, "F4", "16n").addNote(0, "E4", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "A2", "8n").addNote(1, "E3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "8n").addNote(0, "A3", "8.").addLabel("chord", "F").addNote(0, "G#3", "16n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "F2", "8n").addNote(1, "A2", "4n").addMeasure().addNote(0, "B3", "4n", { stem: "up" }).addLabel("chord", "E").addNote(0, "G#3", "8n").addNote(0, "E3", "4n").addNote(0, "A3", "8n").addNote(1, "E2", "8n", { stem: "down" }).addNote(1, "B2", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").endRow().addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "D4", "8n").addNote(0, "E4", "8.").addNote(0, "F4", "16n").addNote(0, "E4", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "A2", "8n").addNote(1, "E3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "8.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "B3", "16n").addNote(0, "A3", "8n").addNote(0, "G#3", "8.").addLabel("chord", "E").addNote(0, "F#3", "16n").addNote(0, "G#3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4.").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").endRow().addMeasure().addChord(0, ["C3", "E3", "G3", "C4", "G4"], "4.", { arpeggio: "up", stem: "up" }).addLabel("chord", "C").addNote(0, "G4", "8.").addNote(0, "F#4", "16n").addNote(0, "E4", "8n").addRest(1, "4.", { hide: true }).addNote(1, "C3", "8n", { stem: "down" }).addNote(1, "G3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "8n").addNote(0, "A3", "8.").addLabel("chord", "F").addNote(0, "G#3", "16n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "F2", "8n").addNote(1, "A2", "4n").addMeasure().addNote(0, "B3", "4n", { stem: "up" }).addLabel("chord", "E").addNote(0, "G#3", "8n").addNote(0, "E3", "4.").addNote(1, "E2", "8n", { stem: "down" }).addNote(1, "B2", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "8n").addNote(1, "E3", "8n").endRow().addMeasure().addNote(0, "G4", "4.", { stem: "up" }).addLabel("chord", "C").addNote(0, "G4", "8.").addNote(0, "F#4", "16n").addNote(0, "E4", "8n").addNote(1, "C3", "8n", { stem: "down" }).addNote(1, "G3", "8n").addNote(1, "C4", "8n").addNote(1, "C3", "8n").addNote(1, "G3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "8.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "B3", "16n").addNote(0, "A3", "8n").addNote(0, "G#3", "8.").addLabel("chord", "E").addNote(0, "F#3", "16n").addNote(0, "G#3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNavigation("ending", 1).addNavigation("endRepeat").addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").addMeasure().addNavigation("ending", 2).addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4.").addFermata().addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").getDocument();
25
+ return new DocumentBuilder3().setScoreConfiguration("guitarTreble").setHeader("Greensleeves").addMeasure().setKeySignature("C", "Major").setTimeSignature("6/8").setTempo(140).addNote(0, "A3", "8n").addMeasure().addNavigation(Navigation.StartRepeat).addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "D4", "8n").addNote(0, "E4", "8.").addNote(0, "F4", "16n").addNote(0, "E4", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "A2", "8n").addNote(1, "E3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "8n").addNote(0, "A3", "8.").addLabel("chord", "F").addNote(0, "G#3", "16n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "F2", "8n").addNote(1, "A2", "4n").addMeasure().addNote(0, "B3", "4n", { stem: "up" }).addLabel("chord", "E").addNote(0, "G#3", "8n").addNote(0, "E3", "4n").addNote(0, "A3", "8n").addNote(1, "E2", "8n", { stem: "down" }).addNote(1, "B2", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").endRow().addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "D4", "8n").addNote(0, "E4", "8.").addNote(0, "F4", "16n").addNote(0, "E4", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "A2", "8n").addNote(1, "E3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "8.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "B3", "16n").addNote(0, "A3", "8n").addNote(0, "G#3", "8.").addLabel("chord", "E").addNote(0, "F#3", "16n").addNote(0, "G#3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4.").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").endRow().addMeasure().addChord(0, ["C3", "E3", "G3", "C4", "G4"], "4.", { arpeggio: "up", stem: "up" }).addLabel("chord", "C").addNote(0, "G4", "8.").addNote(0, "F#4", "16n").addNote(0, "E4", "8n").addRest(1, "4.", { hide: true }).addNote(1, "C3", "8n", { stem: "down" }).addNote(1, "G3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "4n", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "8n").addNote(0, "A3", "8.").addLabel("chord", "F").addNote(0, "G#3", "16n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "F2", "8n").addNote(1, "A2", "4n").addMeasure().addNote(0, "B3", "4n", { stem: "up" }).addLabel("chord", "E").addNote(0, "G#3", "8n").addNote(0, "E3", "4.").addNote(1, "E2", "8n", { stem: "down" }).addNote(1, "B2", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "8n").addNote(1, "E3", "8n").endRow().addMeasure().addNote(0, "G4", "4.", { stem: "up" }).addLabel("chord", "C").addNote(0, "G4", "8.").addNote(0, "F#4", "16n").addNote(0, "E4", "8n").addNote(1, "C3", "8n", { stem: "down" }).addNote(1, "G3", "8n").addNote(1, "C4", "8n").addNote(1, "C3", "8n").addNote(1, "G3", "4n").addMeasure().addNote(0, "D4", "4n", { stem: "up" }).addLabel("chord", "G").addNote(0, "B3", "8n").addNote(0, "G3", "8.").addLabel("chord", "Em").addNote(0, "A3", "16n").addNote(0, "B3", "8n").addNote(1, "G2", "8n", { stem: "down" }).addNote(1, "D3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNote(0, "C4", "8.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "B3", "16n").addNote(0, "A3", "8n").addNote(0, "G#3", "8.").addLabel("chord", "E").addNote(0, "F#3", "16n").addNote(0, "G#3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "4n").addNote(1, "E2", "8n").addNote(1, "B2", "4n").addMeasure().addNavigation("ending", 1).addNavigation("endRepeat").addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4n").addNote(0, "A3", "8n").addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").addMeasure().addNavigation("ending", 2).addNote(0, "A3", "4.", { stem: "up" }).addLabel("chord", "Am").addNote(0, "A3", "4.").addFermata().addNote(1, "A2", "8n", { stem: "down" }).addNote(1, "E3", "8n").addNote(1, "C4", "8n").addNote(1, "A2", "4.").getDocument();
17
26
  }
18
27
 
19
28
  // src/pieces/andante-diabelli.ts
20
- import { DocumentBuilder as DocumentBuilder3 } from "@tspro/web-music-score/score";
29
+ import { DocumentBuilder as DocumentBuilder4 } from "@tspro/web-music-score/score";
21
30
  function createAndanteByDiabelli() {
22
- return new DocumentBuilder3().setScoreConfiguration("guitarTreble").setHeader("Andante", "A. Diabelli").addMeasure().setKeySignature("D", "Major").setTimeSignature("3/4").setTempo(80).addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "p").addNote(0, "F#4", "8n", { stem: "up" }).addNote(0, "G4", "8n").addConnective("slur", 2, "below").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(0, "D4", "8n").addNote(1, "D3", "2.", { stem: "down" }).addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "4n").addNote(1, "A2", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "f").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").endRow().addMeasure().addNote(0, "D4", "8n", { string: 3 }).addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "8n").addNote(0, "A4", "4n").addNote(1, "D3", "2.").addMeasure().addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "p").addNote(0, "F#4", "8n").addNote(0, "G4", "8n").addConnective("slur", 2, "below").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(0, "D4", "8n").addNote(1, "D3", "2.").addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "4n").addNote(1, "A2", "2.").endRow().addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "f").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "4n").addRest(1, "4n", { staffPos: "D3" }).addNote(0, "D3", "4n").addNote(1, "D3", "4n").addRest(1, "4n", { staffPos: "B3" }).addNavigation("endRepeat").addMeasure().addRest(0, "8n", { staffPos: "D4" }).addAnnotation("dynamics", "f").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "C#4", "8n").addNote(0, "B3", "8n").addNote(1, "E2", "2.").endRow().addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "E4", "4n").addNote(1, "A2", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "p").addNote(0, "E3", "8n").addNote(0, "D#3", "8n").addConnective("slur", 2, "below").addNote(0, "E3", "8n").addNote(0, "F#3", "8n").addNote(0, "G#3", "8n").addNote(1, "E2", "2.").addMeasure().addNote(0, "A3", "8n").addConnective("slur", 2, "below").addNote(0, "G#3", "8n").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "4n").addNote(1, "A2", "2.").endRow().addMeasure().addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "f").addNote(0, "G4", "8n").addNote(0, "A4", "8n").addConnective("slur", 2, "below").addNote(0, "G4", "8n").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "8n").addNote(0, "C#4", "8n").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "4n").addNote(1, "D3", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "ff").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "4n").addRest(1, "4n", { staffPos: "D3" }).addNote(0, "D3", "4n").addNote(1, "D3", "4n").addRest(1, "4n", { staffPos: "B3" }).endSong().getDocument();
31
+ return new DocumentBuilder4().setScoreConfiguration("guitarTreble").setHeader("Andante", "A. Diabelli").addMeasure().setKeySignature("D", "Major").setTimeSignature("3/4").setTempo(80).addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "p").addNote(0, "F#4", "8n", { stem: "up" }).addNote(0, "G4", "8n").addConnective("slur", 2, "below").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(0, "D4", "8n").addNote(1, "D3", "2.", { stem: "down" }).addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "4n").addNote(1, "A2", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "f").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").endRow().addMeasure().addNote(0, "D4", "8n", { string: 3 }).addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "8n").addNote(0, "A4", "4n").addNote(1, "D3", "2.").addMeasure().addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "p").addNote(0, "F#4", "8n").addNote(0, "G4", "8n").addConnective("slur", 2, "below").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(0, "D4", "8n").addNote(1, "D3", "2.").addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "G4", "4n").addNote(1, "A2", "2.").endRow().addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "f").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "4n").addRest(1, "4n", { staffPos: "D3" }).addNote(0, "D3", "4n").addNote(1, "D3", "4n").addRest(1, "4n", { staffPos: "B3" }).addNavigation("endRepeat").addMeasure().addRest(0, "8n", { staffPos: "D4" }).addAnnotation("dynamics", "f").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "C#4", "8n").addNote(0, "B3", "8n").addNote(1, "E2", "2.").endRow().addMeasure().addNote(0, "C#4", "8n").addConnective("slur", 2, "below").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "8n").addNote(0, "E4", "4n").addNote(1, "A2", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "p").addNote(0, "E3", "8n").addNote(0, "D#3", "8n").addConnective("slur", 2, "below").addNote(0, "E3", "8n").addNote(0, "F#3", "8n").addNote(0, "G#3", "8n").addNote(1, "E2", "2.").addMeasure().addNote(0, "A3", "8n").addConnective("slur", 2, "below").addNote(0, "G#3", "8n").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "4n").addNote(1, "A2", "2.").endRow().addMeasure().addRest(0, "8n", { staffPos: "G4" }).addAnnotation("dynamics", "f").addNote(0, "G4", "8n").addNote(0, "A4", "8n").addConnective("slur", 2, "below").addNote(0, "G4", "8n").addNote(0, "F#4", "8n").addNote(0, "E4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "8n").addNote(0, "C#4", "8n").addNote(0, "D4", "8n").addNote(0, "E4", "8n").addNote(0, "F#4", "4n").addNote(1, "D3", "2.").addMeasure().addRest(0, "8n", { staffPos: "B3" }).addAnnotation("dynamics", "ff").addNote(0, "A3", "8n").addNote(0, "G#3", "8n").addConnective("slur", 2, "below").addNote(0, "A3", "8n").addNote(0, "B3", "8n").addNote(0, "C#4", "8n").addNote(1, "A2", "2.").addMeasure().addNote(0, "D4", "4n").addRest(1, "4n", { staffPos: "D3" }).addNote(0, "D3", "4n").addNote(1, "D3", "4n").addRest(1, "4n", { staffPos: "B3" }).endSong().getDocument();
23
32
  }
24
33
  export {
25
34
  createAndanteByDiabelli,
35
+ createCanonInD,
26
36
  createFrereJacques,
27
37
  createGreensleeves
28
38
  };
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { c as Scale, S as ScaleType } from '../scale-DQP3b9Zx.mjs';
4
- import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-eA2xPPiG.mjs';
5
- import { H as Handedness } from '../guitar-DdexKdN6.mjs';
6
- import { D as DivRect, M as MDocument, n as ScoreEventListener, p as MRenderer, q as MPlaybackButtons } from '../music-objects-CB05XryE.mjs';
7
- import '../tempo-dkctPkCS.mjs';
8
- import '@tspro/ts-utils-lib';
3
+ import { c as Scale, S as ScaleType } from '../scale-C8gHC448.mjs';
4
+ import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-RVXvpfyV.mjs';
5
+ import { H as Handedness } from '../guitar-DXlB-9vK.mjs';
6
+ import { Rect } from '@tspro/ts-utils-lib';
7
+ import { M as MDocument, o as ScoreEventListener, s as MPlaybackButtons } from '../music-objects-ONIuVUgs.mjs';
8
+ import '../tempo-BlCGZuYg.mjs';
9
9
 
10
10
  interface CircleOfFifthsProps {
11
11
  style?: React.CSSProperties;
@@ -160,15 +160,15 @@ declare class GuitarContext {
160
160
  /** Data for fret position. */
161
161
  declare class FretPositionData {
162
162
  readonly fretPosition: Readonly<FretPosition>;
163
- readonly cellRect: DivRect;
164
- readonly noteRect: DivRect;
163
+ readonly cellRect: Rect;
164
+ readonly noteRect: Rect;
165
165
  /**
166
166
  * Create new fret position data instance.
167
167
  * @param fretPosition - Fret position.
168
168
  * @param cellRect - Rect of fret position cell (space around string and between fret and next fret).
169
169
  * @param noteRect - Rect to display note name in circle.
170
170
  */
171
- constructor(fretPosition: Readonly<FretPosition>, cellRect: DivRect, noteRect: DivRect);
171
+ constructor(fretPosition: Readonly<FretPosition>, cellRect: Rect, noteRect: Rect);
172
172
  }
173
173
  /** Update fret position function type. */
174
174
  type UpdateFretPositionFunc = (fretPosition: FretPosition) => void;
@@ -253,7 +253,7 @@ interface MusicScoreViewProps {
253
253
  * ```
254
254
  */
255
255
  declare class MusicScoreView extends React.Component<MusicScoreViewProps, {}> {
256
- renderer: MRenderer;
256
+ private readonly ctx;
257
257
  constructor(props: MusicScoreViewProps);
258
258
  componentDidUpdate(prevProps: Readonly<MusicScoreViewProps>, prevState: Readonly<{}>): void;
259
259
  render(): react_jsx_runtime.JSX.Element;
@@ -1,11 +1,11 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import { c as Scale, S as ScaleType } from '../scale-CBW4eTz7.js';
4
- import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-CgCIBwvR.js';
5
- import { H as Handedness } from '../guitar-BsSayRsH.js';
6
- import { D as DivRect, M as MDocument, n as ScoreEventListener, p as MRenderer, q as MPlaybackButtons } from '../music-objects-CwPOlqFi.js';
7
- import '../tempo-DMt3iwz9.js';
8
- import '@tspro/ts-utils-lib';
3
+ import { c as Scale, S as ScaleType } from '../scale-DulPFco_.js';
4
+ import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-CJuq5aBy.js';
5
+ import { H as Handedness } from '../guitar-CarHGDAt.js';
6
+ import { Rect } from '@tspro/ts-utils-lib';
7
+ import { M as MDocument, o as ScoreEventListener, s as MPlaybackButtons } from '../music-objects-3Esbz7ij.js';
8
+ import '../tempo-BnUjm25M.js';
9
9
 
10
10
  interface CircleOfFifthsProps {
11
11
  style?: React.CSSProperties;
@@ -160,15 +160,15 @@ declare class GuitarContext {
160
160
  /** Data for fret position. */
161
161
  declare class FretPositionData {
162
162
  readonly fretPosition: Readonly<FretPosition>;
163
- readonly cellRect: DivRect;
164
- readonly noteRect: DivRect;
163
+ readonly cellRect: Rect;
164
+ readonly noteRect: Rect;
165
165
  /**
166
166
  * Create new fret position data instance.
167
167
  * @param fretPosition - Fret position.
168
168
  * @param cellRect - Rect of fret position cell (space around string and between fret and next fret).
169
169
  * @param noteRect - Rect to display note name in circle.
170
170
  */
171
- constructor(fretPosition: Readonly<FretPosition>, cellRect: DivRect, noteRect: DivRect);
171
+ constructor(fretPosition: Readonly<FretPosition>, cellRect: Rect, noteRect: Rect);
172
172
  }
173
173
  /** Update fret position function type. */
174
174
  type UpdateFretPositionFunc = (fretPosition: FretPosition) => void;
@@ -253,7 +253,7 @@ interface MusicScoreViewProps {
253
253
  * ```
254
254
  */
255
255
  declare class MusicScoreView extends React.Component<MusicScoreViewProps, {}> {
256
- renderer: MRenderer;
256
+ private readonly ctx;
257
257
  constructor(props: MusicScoreViewProps);
258
258
  componentDidUpdate(prevProps: Readonly<MusicScoreViewProps>, prevState: Readonly<{}>): void;
259
259
  render(): react_jsx_runtime.JSX.Element;