@tspro/web-music-score 5.2.0 → 5.3.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.
@@ -1,8 +1,17 @@
1
- import { M as MDocument } from '../music-objects-CB05XryE.mjs';
1
+ import { M as MDocument } from '../music-objects-BGiRQIXW.mjs';
2
2
  import '../note-eA2xPPiG.mjs';
3
3
  import '../tempo-dkctPkCS.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';
1
+ import { M as MDocument } from '../music-objects-Ih9vCl4p.js';
2
2
  import '../note-CgCIBwvR.js';
3
3
  import '../tempo-DMt3iwz9.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.3.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.3.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
+ import "../chunk-C6UQDKWU.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
  };
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { c as Scale, S as ScaleType } from '../scale-DQP3b9Zx.mjs';
4
4
  import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-eA2xPPiG.mjs';
5
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';
6
+ import { D as DivRect, M as MDocument, o as ScoreEventListener, s as MPlaybackButtons } from '../music-objects-BGiRQIXW.mjs';
7
7
  import '../tempo-dkctPkCS.mjs';
8
8
  import '@tspro/ts-utils-lib';
9
9
 
@@ -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;
@@ -3,7 +3,7 @@ import * as React from 'react';
3
3
  import { c as Scale, S as ScaleType } from '../scale-CBW4eTz7.js';
4
4
  import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-CgCIBwvR.js';
5
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';
6
+ import { D as DivRect, M as MDocument, o as ScoreEventListener, s as MPlaybackButtons } from '../music-objects-Ih9vCl4p.js';
7
7
  import '../tempo-DMt3iwz9.js';
8
8
  import '@tspro/ts-utils-lib';
9
9
 
@@ -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,4 +1,4 @@
1
- /* WebMusicScore v5.2.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v5.3.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
2
  "use strict";
3
3
  var __create = Object.create;
4
4
  var __defProp = Object.defineProperty;
@@ -601,24 +601,24 @@ var import_jsx_runtime3 = require("react/jsx-runtime");
601
601
  var MusicScoreView = class extends React3.Component {
602
602
  constructor(props) {
603
603
  super(props);
604
- __publicField(this, "renderer");
605
- this.renderer = new import_score3.MRenderer();
606
- this.renderer.setDocument(props.doc);
604
+ __publicField(this, "ctx");
605
+ this.ctx = new import_score3.MRenderContext();
606
+ this.ctx.setDocument(props.doc);
607
607
  if (props.onScoreEvent) {
608
- this.renderer.setScoreEventListener(props.onScoreEvent);
608
+ this.ctx.setScoreEventListener(props.onScoreEvent);
609
609
  }
610
610
  }
611
611
  componentDidUpdate(prevProps, prevState) {
612
612
  if (prevProps.doc !== this.props.doc) {
613
- this.renderer.setDocument(this.props.doc);
614
- this.renderer.draw();
613
+ this.ctx.setDocument(this.props.doc);
614
+ this.ctx.draw();
615
615
  }
616
616
  }
617
617
  render() {
618
618
  const setCanvas = (canvas) => {
619
619
  if (canvas) {
620
- this.renderer.setCanvas(canvas);
621
- this.renderer.draw();
620
+ this.ctx.setCanvas(canvas);
621
+ this.ctx.draw();
622
622
  }
623
623
  };
624
624
  return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("canvas", { style: { position: "relative" }, ref: setCanvas, children: "Your browser does not support the HTML canvas tag." });
@@ -1,7 +1,7 @@
1
- /* WebMusicScore v5.2.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v5.3.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
2
  import {
3
3
  __publicField
4
- } from "../chunk-LC5JMIVF.mjs";
4
+ } from "../chunk-C6UQDKWU.mjs";
5
5
 
6
6
  // src/react-ui/circle-of-fifths.tsx
7
7
  import * as React from "react";
@@ -555,29 +555,29 @@ var GuitarView = class extends React2.Component {
555
555
 
556
556
  // src/react-ui/music-score-view.tsx
557
557
  import * as React3 from "react";
558
- import { MRenderer } from "@tspro/web-music-score/score";
558
+ import { MRenderContext } from "@tspro/web-music-score/score";
559
559
  import { jsx as jsx3 } from "react/jsx-runtime";
560
560
  var MusicScoreView = class extends React3.Component {
561
561
  constructor(props) {
562
562
  super(props);
563
- __publicField(this, "renderer");
564
- this.renderer = new MRenderer();
565
- this.renderer.setDocument(props.doc);
563
+ __publicField(this, "ctx");
564
+ this.ctx = new MRenderContext();
565
+ this.ctx.setDocument(props.doc);
566
566
  if (props.onScoreEvent) {
567
- this.renderer.setScoreEventListener(props.onScoreEvent);
567
+ this.ctx.setScoreEventListener(props.onScoreEvent);
568
568
  }
569
569
  }
570
570
  componentDidUpdate(prevProps, prevState) {
571
571
  if (prevProps.doc !== this.props.doc) {
572
- this.renderer.setDocument(this.props.doc);
573
- this.renderer.draw();
572
+ this.ctx.setDocument(this.props.doc);
573
+ this.ctx.draw();
574
574
  }
575
575
  }
576
576
  render() {
577
577
  const setCanvas = (canvas) => {
578
578
  if (canvas) {
579
- this.renderer.setCanvas(canvas);
580
- this.renderer.draw();
579
+ this.ctx.setCanvas(canvas);
580
+ this.ctx.draw();
581
581
  }
582
582
  };
583
583
  return /* @__PURE__ */ jsx3("canvas", { style: { position: "relative" }, ref: setCanvas, children: "Your browser does not support the HTML canvas tag." });
@@ -1,5 +1,5 @@
1
- import { N as NoteOptions, R as RestOptions, S as StaffPreset, a as ScoreConfiguration, M as MDocument, V as VoiceId, T as TupletOptions, b as VerseNumber, L as LyricsOptions, c as StaffTabOrGroups, F as Fermata, d as Navigation, A as AnnotationText, e as Annotation, f as Label, C as Connective, g as TieType, h as NoteAnchor, i as VerticalPosition } from '../music-objects-CB05XryE.mjs';
2
- export { ad as Arpeggio, a5 as BaseConfig, a4 as Clef, D as DivRect, ah as DynamicsAnnotation, af as LyricsAlign, ag as LyricsHyphen, s as MAccidental, u as MArpeggio, H as MBarLineLeft, G as MBarLineRight, v as MBeamGroup, t as MConnective, x as MEnding, a3 as MExtensionLine, y as MFermata, z as MHeader, B as MImage, a2 as MLyrics, E as MMeasure, J as MNoteGroup, q as MPlaybackButtons, o as MPlayer, p as MRenderer, P as MRest, U as MRhythmColumn, W as MScoreRow, a0 as MSpecialText, X as MStaff, w as MStaffBeamGroup, K as MStaffNoteGroup, Q as MStaffRest, Z as MStaffSignature, I as MStaffTabBarLine, Y as MTab, O as MTabNoteGroup, $ as MTabRhythm, _ as MTabSignature, a1 as MText, r as MusicInterface, aj as PlayState, ak as PlayStateChangeListener, k as ScoreEvent, n as ScoreEventListener, j as ScoreEventType, m as ScoreObjectEvent, l as ScoreStaffPosEvent, a6 as StaffConfig, ae as StaffTabOrGroup, ac as Stem, a9 as StringNumber, a7 as TabConfig, ai as TempoAnnotation, aa as getStringNumbers, ab as getVerseNumbers, a8 as getVoiceIds } from '../music-objects-CB05XryE.mjs';
1
+ import { N as NoteOptions, R as RestOptions, S as StaffPreset, a as ScoreConfiguration, M as MDocument, b as MeasureOptions, V as VoiceId, T as TupletOptions, c as VerseNumber, L as LyricsOptions, d as StaffTabOrGroups, F as Fermata, e as Navigation, A as AnnotationText, f as Annotation, g as Label, C as Connective, h as TieType, i as NoteAnchor, j as VerticalPosition } from '../music-objects-BGiRQIXW.mjs';
2
+ export { af as Arpeggio, a7 as BaseConfig, a6 as Clef, D as DivRect, aj as DynamicsAnnotation, ah as LyricsAlign, ai as LyricsHyphen, u as MAccidental, w as MArpeggio, J as MBarLineLeft, I as MBarLineRight, x as MBeamGroup, v as MConnective, z as MEnding, a5 as MExtensionLine, B as MFermata, E as MHeader, G as MImage, a4 as MLyrics, H as MMeasure, O as MNoteGroup, s as MPlaybackButtons, p as MPlayer, q as MRenderContext, r as MRenderer, U as MRest, X as MRhythmColumn, Y as MScoreRow, a2 as MSpecialText, Z as MStaff, y as MStaffBeamGroup, P as MStaffNoteGroup, W as MStaffRest, $ as MStaffSignature, K as MStaffTabBarLine, _ as MTab, Q as MTabNoteGroup, a1 as MTabRhythm, a0 as MTabSignature, a3 as MText, t as MusicInterface, al as PlayState, am as PlayStateChangeListener, l as ScoreEvent, o as ScoreEventListener, k as ScoreEventType, n as ScoreObjectEvent, m as ScoreStaffPosEvent, a8 as StaffConfig, ag as StaffTabOrGroup, ae as Stem, ab as StringNumber, a9 as TabConfig, ak as TempoAnnotation, ac as getStringNumbers, ad as getVerseNumbers, aa as getVoiceIds } from '../music-objects-BGiRQIXW.mjs';
3
3
  import { N as Note } from '../note-eA2xPPiG.mjs';
4
4
  import { S as ScaleType, c as Scale } from '../scale-DQP3b9Zx.mjs';
5
5
  import { N as NoteLength, i as NoteLengthStr, K as KeySignature, b as TimeSignature, T as TimeSignatures, B as BeamGrouping, k as TupletRatio } from '../tempo-dkctPkCS.mjs';
@@ -88,6 +88,7 @@ declare class DocumentBuilder {
88
88
  * @param config - Score configuration (e.g. { type: "staff", clef: "G", isOctavewDown: true }).
89
89
  */
90
90
  setScoreConfiguration(config: ScoreConfiguration): DocumentBuilder;
91
+ private static DefaultMeasureOptions;
91
92
  private getMeasure;
92
93
  /**
93
94
  * Get music document after finished building.
@@ -110,9 +111,10 @@ declare class DocumentBuilder {
110
111
  setMeasuresPerRow(measuresPerRow: number): DocumentBuilder;
111
112
  /**
112
113
  * Add new measure.
114
+ * @param measureOptions - Measure options.
113
115
  * @returns - This document builder instance.
114
116
  */
115
- addMeasure(): DocumentBuilder;
117
+ addMeasure(measureOptions?: MeasureOptions): DocumentBuilder;
116
118
  /**
117
119
  * Set key signature for current measure and forward.
118
120
  * @param tonic - Tonic note (e.g. "C").
@@ -421,4 +423,4 @@ declare class DocumentBuilder {
421
423
  addScaleArpeggio(scale: Scale, bottomNote: string, numOctaves: number): DocumentBuilder;
422
424
  }
423
425
 
424
- export { Annotation, AnnotationText, Connective, DocumentBuilder, type ExtensionBuilder, Fermata, Label, LyricsOptions, MDocument, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, type TupletBuilder, TupletOptions, VerseNumber, VerticalPosition, VoiceId };
426
+ export { Annotation, AnnotationText, Connective, DocumentBuilder, type ExtensionBuilder, Fermata, Label, LyricsOptions, MDocument, MeasureOptions, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, type TupletBuilder, TupletOptions, VerseNumber, VerticalPosition, VoiceId };
@@ -1,5 +1,5 @@
1
- import { N as NoteOptions, R as RestOptions, S as StaffPreset, a as ScoreConfiguration, M as MDocument, V as VoiceId, T as TupletOptions, b as VerseNumber, L as LyricsOptions, c as StaffTabOrGroups, F as Fermata, d as Navigation, A as AnnotationText, e as Annotation, f as Label, C as Connective, g as TieType, h as NoteAnchor, i as VerticalPosition } from '../music-objects-CwPOlqFi.js';
2
- export { ad as Arpeggio, a5 as BaseConfig, a4 as Clef, D as DivRect, ah as DynamicsAnnotation, af as LyricsAlign, ag as LyricsHyphen, s as MAccidental, u as MArpeggio, H as MBarLineLeft, G as MBarLineRight, v as MBeamGroup, t as MConnective, x as MEnding, a3 as MExtensionLine, y as MFermata, z as MHeader, B as MImage, a2 as MLyrics, E as MMeasure, J as MNoteGroup, q as MPlaybackButtons, o as MPlayer, p as MRenderer, P as MRest, U as MRhythmColumn, W as MScoreRow, a0 as MSpecialText, X as MStaff, w as MStaffBeamGroup, K as MStaffNoteGroup, Q as MStaffRest, Z as MStaffSignature, I as MStaffTabBarLine, Y as MTab, O as MTabNoteGroup, $ as MTabRhythm, _ as MTabSignature, a1 as MText, r as MusicInterface, aj as PlayState, ak as PlayStateChangeListener, k as ScoreEvent, n as ScoreEventListener, j as ScoreEventType, m as ScoreObjectEvent, l as ScoreStaffPosEvent, a6 as StaffConfig, ae as StaffTabOrGroup, ac as Stem, a9 as StringNumber, a7 as TabConfig, ai as TempoAnnotation, aa as getStringNumbers, ab as getVerseNumbers, a8 as getVoiceIds } from '../music-objects-CwPOlqFi.js';
1
+ import { N as NoteOptions, R as RestOptions, S as StaffPreset, a as ScoreConfiguration, M as MDocument, b as MeasureOptions, V as VoiceId, T as TupletOptions, c as VerseNumber, L as LyricsOptions, d as StaffTabOrGroups, F as Fermata, e as Navigation, A as AnnotationText, f as Annotation, g as Label, C as Connective, h as TieType, i as NoteAnchor, j as VerticalPosition } from '../music-objects-Ih9vCl4p.js';
2
+ export { af as Arpeggio, a7 as BaseConfig, a6 as Clef, D as DivRect, aj as DynamicsAnnotation, ah as LyricsAlign, ai as LyricsHyphen, u as MAccidental, w as MArpeggio, J as MBarLineLeft, I as MBarLineRight, x as MBeamGroup, v as MConnective, z as MEnding, a5 as MExtensionLine, B as MFermata, E as MHeader, G as MImage, a4 as MLyrics, H as MMeasure, O as MNoteGroup, s as MPlaybackButtons, p as MPlayer, q as MRenderContext, r as MRenderer, U as MRest, X as MRhythmColumn, Y as MScoreRow, a2 as MSpecialText, Z as MStaff, y as MStaffBeamGroup, P as MStaffNoteGroup, W as MStaffRest, $ as MStaffSignature, K as MStaffTabBarLine, _ as MTab, Q as MTabNoteGroup, a1 as MTabRhythm, a0 as MTabSignature, a3 as MText, t as MusicInterface, al as PlayState, am as PlayStateChangeListener, l as ScoreEvent, o as ScoreEventListener, k as ScoreEventType, n as ScoreObjectEvent, m as ScoreStaffPosEvent, a8 as StaffConfig, ag as StaffTabOrGroup, ae as Stem, ab as StringNumber, a9 as TabConfig, ak as TempoAnnotation, ac as getStringNumbers, ad as getVerseNumbers, aa as getVoiceIds } from '../music-objects-Ih9vCl4p.js';
3
3
  import { N as Note } from '../note-CgCIBwvR.js';
4
4
  import { S as ScaleType, c as Scale } from '../scale-CBW4eTz7.js';
5
5
  import { N as NoteLength, i as NoteLengthStr, K as KeySignature, b as TimeSignature, T as TimeSignatures, B as BeamGrouping, k as TupletRatio } from '../tempo-DMt3iwz9.js';
@@ -88,6 +88,7 @@ declare class DocumentBuilder {
88
88
  * @param config - Score configuration (e.g. { type: "staff", clef: "G", isOctavewDown: true }).
89
89
  */
90
90
  setScoreConfiguration(config: ScoreConfiguration): DocumentBuilder;
91
+ private static DefaultMeasureOptions;
91
92
  private getMeasure;
92
93
  /**
93
94
  * Get music document after finished building.
@@ -110,9 +111,10 @@ declare class DocumentBuilder {
110
111
  setMeasuresPerRow(measuresPerRow: number): DocumentBuilder;
111
112
  /**
112
113
  * Add new measure.
114
+ * @param measureOptions - Measure options.
113
115
  * @returns - This document builder instance.
114
116
  */
115
- addMeasure(): DocumentBuilder;
117
+ addMeasure(measureOptions?: MeasureOptions): DocumentBuilder;
116
118
  /**
117
119
  * Set key signature for current measure and forward.
118
120
  * @param tonic - Tonic note (e.g. "C").
@@ -421,4 +423,4 @@ declare class DocumentBuilder {
421
423
  addScaleArpeggio(scale: Scale, bottomNote: string, numOctaves: number): DocumentBuilder;
422
424
  }
423
425
 
424
- export { Annotation, AnnotationText, Connective, DocumentBuilder, type ExtensionBuilder, Fermata, Label, LyricsOptions, MDocument, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, type TupletBuilder, TupletOptions, VerseNumber, VerticalPosition, VoiceId };
426
+ export { Annotation, AnnotationText, Connective, DocumentBuilder, type ExtensionBuilder, Fermata, Label, LyricsOptions, MDocument, MeasureOptions, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, type TupletBuilder, TupletOptions, VerseNumber, VerticalPosition, VoiceId };