@tspro/web-music-score 2.0.0 → 3.0.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 (38) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +144 -63
  3. package/dist/audio/index.d.mts +1 -1
  4. package/dist/audio/index.js +1 -1
  5. package/dist/audio/index.mjs +2 -2
  6. package/dist/audio-cg/index.js +1 -1
  7. package/dist/audio-cg/index.mjs +2 -2
  8. package/dist/{chunk-2EPWQZKJ.mjs → chunk-ZWFAOHYM.mjs} +2 -2
  9. package/dist/core/index.js +2 -2
  10. package/dist/core/index.mjs +3 -3
  11. package/dist/{guitar-kbJYu3Am.d.mts → guitar-zASF7B1g.d.mts} +1 -1
  12. package/dist/iife/index.global.js +11 -12
  13. package/dist/interface-CLb7xa7_.d.mts +1768 -0
  14. package/dist/interface-DXyXwLBB.d.ts +1768 -0
  15. package/dist/{note-CraqEy8x.d.mts → note-B5ZtlHc8.d.mts} +1 -1
  16. package/dist/pieces/index.d.mts +3 -3
  17. package/dist/pieces/index.d.ts +2 -2
  18. package/dist/pieces/index.js +4 -52
  19. package/dist/pieces/index.mjs +8 -56
  20. package/dist/react-ui/index.d.mts +5 -4
  21. package/dist/react-ui/index.d.ts +3 -2
  22. package/dist/react-ui/index.js +1 -1
  23. package/dist/react-ui/index.mjs +2 -2
  24. package/dist/scale-B_2MZaT9.d.ts +87 -0
  25. package/dist/scale-C-YS5iVG.d.mts +87 -0
  26. package/dist/score/index.d.mts +42 -1557
  27. package/dist/score/index.d.ts +42 -1557
  28. package/dist/score/index.js +2845 -2029
  29. package/dist/score/index.mjs +2813 -2007
  30. package/dist/tempo-DoJd-UYT.d.ts +120 -0
  31. package/dist/tempo-TjQKn46X.d.mts +120 -0
  32. package/dist/theory/index.d.mts +6 -5
  33. package/dist/theory/index.d.ts +3 -2
  34. package/dist/theory/index.js +1 -1
  35. package/dist/theory/index.mjs +2 -2
  36. package/package.json +1 -1
  37. package/dist/tempo--588tdcv.d.ts +0 -203
  38. package/dist/tempo-BEJBHZ5I.d.mts +0 -203
@@ -93,7 +93,7 @@ declare class Note {
93
93
  * @returns Sorted set of notes.
94
94
  */
95
95
  static removeDuplicates(notes: ReadonlyArray<Note>): Note[];
96
- static compareFunc(a: Note, b: Note): 1 | 0 | -1;
96
+ static compareFunc(a: Note, b: Note): 1 | -1 | 0;
97
97
  }
98
98
 
99
99
  export { type Accidental as A, DefaultPitchNotation as D, GuitarNoteLabel as G, Note as N, type ParsedNote as P, SymbolSet as S, type NoteLetter as a, PitchNotation as b, PitchNotationList as c, DefaultGuitarNoteLabel as d, GuitarNoteLabelList as e, validateGuitarNoteLabel as f, getPitchNotationName as g, validatePitchNotation as v };
@@ -1,6 +1,6 @@
1
- import { MDocument } from '../score/index.mjs';
2
- import '../note-CraqEy8x.mjs';
3
- import '../tempo-BEJBHZ5I.mjs';
1
+ import { M as MDocument } from '../interface-CLb7xa7_.mjs';
2
+ import '../note-B5ZtlHc8.mjs';
3
+ import '../tempo-TjQKn46X.mjs';
4
4
  import '@tspro/ts-utils-lib';
5
5
 
6
6
  /** @public */
@@ -1,6 +1,6 @@
1
- import { MDocument } from '../score/index.js';
1
+ import { M as MDocument } from '../interface-DXyXwLBB.js';
2
2
  import '../note-B5ZtlHc8.js';
3
- import '../tempo--588tdcv.js';
3
+ import '../tempo-DoJd-UYT.js';
4
4
  import '@tspro/ts-utils-lib';
5
5
 
6
6
  /** @public */
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v2.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v3.0.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;
@@ -31,69 +31,21 @@ module.exports = __toCommonJS(pieces_exports);
31
31
  var import_theory = require("@tspro/web-music-score/theory");
32
32
  var import_score = require("@tspro/web-music-score/score");
33
33
  function createFrereJacques() {
34
- let doc = new import_score.MDocument(import_score.StaffPreset.GuitarTreble);
35
- doc.setHeader("Frere Jacques");
36
- doc.addMeasure().setKeySignature("G", import_theory.ScaleType.Major).setTimeSignature("4/4").addNote(0, "G3", import_theory.NoteLength.Quarter).addNote(0, "A3", import_theory.NoteLength.Quarter).addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Quarter);
37
- doc.addMeasure().addNote(0, "G3", import_theory.NoteLength.Quarter).addNote(0, "A3", import_theory.NoteLength.Quarter).addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Quarter);
38
- doc.addMeasure().addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "C4", import_theory.NoteLength.Quarter).addNote(0, "D4", import_theory.NoteLength.Half).endRow();
39
- doc.addMeasure().addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "C4", import_theory.NoteLength.Quarter).addNote(0, "D4", import_theory.NoteLength.Half);
40
- doc.addMeasure().addNote(0, "D4", import_theory.NoteLength.Eighth).addNote(0, "E4", import_theory.NoteLength.Eighth).addNote(0, "D4", import_theory.NoteLength.Eighth).addNote(0, "C4", import_theory.NoteLength.Eighth).addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Quarter).endRow();
41
- doc.addMeasure().addNote(0, "D4", import_theory.NoteLength.Eighth).addNote(0, "E4", import_theory.NoteLength.Eighth).addNote(0, "D4", import_theory.NoteLength.Eighth).addNote(0, "C4", import_theory.NoteLength.Eighth).addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Quarter);
42
- doc.addMeasure().addNote(0, "G3", import_theory.NoteLength.Quarter).addNote(0, "D3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Half);
43
- doc.addMeasure().addNote(0, "G3", import_theory.NoteLength.Quarter).addNote(0, "D3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Half);
44
- return doc;
34
+ return new import_score.DocumentBuilder().setScoreConfiguration(import_score.StaffPreset.GuitarTreble).setHeader("Frere Jacques").addMeasure().setKeySignature("G", import_theory.ScaleType.Major).setTimeSignature("4/4").addNote(0, "G3", import_theory.NoteLength.Quarter).addNote(0, "A3", import_theory.NoteLength.Quarter).addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Quarter).addMeasure().addNote(0, "G3", import_theory.NoteLength.Quarter).addNote(0, "A3", import_theory.NoteLength.Quarter).addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Quarter).addMeasure().addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "C4", import_theory.NoteLength.Quarter).addNote(0, "D4", import_theory.NoteLength.Half).endRow().addMeasure().addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "C4", import_theory.NoteLength.Quarter).addNote(0, "D4", import_theory.NoteLength.Half).addMeasure().addNote(0, "D4", import_theory.NoteLength.Eighth).addNote(0, "E4", import_theory.NoteLength.Eighth).addNote(0, "D4", import_theory.NoteLength.Eighth).addNote(0, "C4", import_theory.NoteLength.Eighth).addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Quarter).endRow().addMeasure().addNote(0, "D4", import_theory.NoteLength.Eighth).addNote(0, "E4", import_theory.NoteLength.Eighth).addNote(0, "D4", import_theory.NoteLength.Eighth).addNote(0, "C4", import_theory.NoteLength.Eighth).addNote(0, "B3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Quarter).addMeasure().addNote(0, "G3", import_theory.NoteLength.Quarter).addNote(0, "D3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Half).addMeasure().addNote(0, "G3", import_theory.NoteLength.Quarter).addNote(0, "D3", import_theory.NoteLength.Quarter).addNote(0, "G3", import_theory.NoteLength.Half).getDocument();
45
35
  }
46
36
 
47
37
  // src/pieces/greensleeves.ts
48
38
  var import_theory2 = require("@tspro/web-music-score/theory");
49
39
  var import_score2 = require("@tspro/web-music-score/score");
50
40
  function createGreensleeves() {
51
- let doc = new import_score2.MDocument(import_score2.StaffPreset.GuitarTreble);
52
- doc.setHeader("Greensleeves");
53
- doc.addMeasure().setKeySignature("C", import_theory2.ScaleType.Major).setTimeSignature("6/8").setTempo(140).addNote(0, "A3", import_theory2.NoteLength.Eighth);
54
- doc.addMeasure().addNavigation(import_score2.Navigation.StartRepeat).addNote(0, "C4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "D4", import_theory2.NoteLength.Eighth).addNote(0, "E4", import_theory2.NoteLength.Eighth, { dotted: true }).addNote(0, "F4", import_theory2.NoteLength.Sixteenth).addNote(0, "E4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "A2", import_theory2.NoteLength.Eighth).addNote(1, "E3", import_theory2.NoteLength.Quarter);
55
- doc.addMeasure().addNote(0, "D4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "G").addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(0, "G3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "Em").addNote(0, "A3", import_theory2.NoteLength.Sixteenth).addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(1, "G2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "D3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter);
56
- doc.addMeasure().addNote(0, "C4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(0, "A3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "F").addNote(0, "G#3", import_theory2.NoteLength.Sixteenth).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "F2", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter);
57
- doc.addMeasure().addNote(0, "B3", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "E").addNote(0, "G#3", import_theory2.NoteLength.Eighth).addNote(0, "E3", import_theory2.NoteLength.Quarter).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(1, "E2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "B2", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter).endRow();
58
- doc.addMeasure().addNote(0, "C4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "D4", import_theory2.NoteLength.Eighth).addNote(0, "E4", import_theory2.NoteLength.Eighth, { dotted: true }).addNote(0, "F4", import_theory2.NoteLength.Sixteenth).addNote(0, "E4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "A2", import_theory2.NoteLength.Eighth).addNote(1, "E3", import_theory2.NoteLength.Quarter);
59
- doc.addMeasure().addNote(0, "D4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "G").addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(0, "G3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "Em").addNote(0, "A3", import_theory2.NoteLength.Sixteenth).addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(1, "G2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "D3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter);
60
- doc.addMeasure().addNote(0, "C4", import_theory2.NoteLength.Eighth, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "B3", import_theory2.NoteLength.Sixteenth).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(0, "G#3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "E").addNote(0, "F#3", import_theory2.NoteLength.Sixteenth).addNote(0, "G#3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter);
61
- doc.addMeasure().addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true }).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Eighth).addNote(1, "C4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter, { dotted: true }).endRow();
62
- doc.addMeasure().addChord(0, ["C3", "E3", "G3", "C4", "G4"], import_theory2.NoteLength.Quarter, { dotted: true, arpeggio: import_score2.Arpeggio.Up, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "C").addNote(0, "G4", import_theory2.NoteLength.Eighth, { dotted: true }).addNote(0, "F#4", import_theory2.NoteLength.Sixteenth).addNote(0, "E4", import_theory2.NoteLength.Eighth).addRest(1, import_theory2.NoteLength.Quarter, { dotted: true, hide: true }).addNote(1, "C3", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "G3", import_theory2.NoteLength.Quarter);
63
- doc.addMeasure().addNote(0, "D4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "G").addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(0, "G3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "Em").addNote(0, "A3", import_theory2.NoteLength.Sixteenth).addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(1, "G2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "D3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter);
64
- doc.addMeasure().addNote(0, "C4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(0, "A3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "F").addNote(0, "G#3", import_theory2.NoteLength.Sixteenth).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "F2", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter);
65
- doc.addMeasure().addNote(0, "B3", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "E").addNote(0, "G#3", import_theory2.NoteLength.Eighth).addNote(0, "E3", import_theory2.NoteLength.Quarter, { dotted: true }).addNote(1, "E2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "B2", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Eighth).addNote(1, "E3", import_theory2.NoteLength.Eighth).endRow();
66
- doc.addMeasure().addNote(0, "G4", import_theory2.NoteLength.Quarter, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "C").addNote(0, "G4", import_theory2.NoteLength.Eighth, { dotted: true }).addNote(0, "F#4", import_theory2.NoteLength.Sixteenth).addNote(0, "E4", import_theory2.NoteLength.Eighth).addNote(1, "C3", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "G3", import_theory2.NoteLength.Eighth).addNote(1, "C4", import_theory2.NoteLength.Eighth).addNote(1, "C3", import_theory2.NoteLength.Eighth).addNote(1, "G3", import_theory2.NoteLength.Quarter);
67
- doc.addMeasure().addNote(0, "D4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "G").addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(0, "G3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "Em").addNote(0, "A3", import_theory2.NoteLength.Sixteenth).addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(1, "G2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "D3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter);
68
- doc.addMeasure().addNote(0, "C4", import_theory2.NoteLength.Eighth, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "B3", import_theory2.NoteLength.Sixteenth).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(0, "G#3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "E").addNote(0, "F#3", import_theory2.NoteLength.Sixteenth).addNote(0, "G#3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter);
69
- doc.addMeasure().addNavigation(import_score2.Navigation.Ending, 1).addNavigation(import_score2.Navigation.EndRepeat).addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Quarter).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Eighth).addNote(1, "C4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter, { dotted: true });
70
- doc.addMeasure().addNavigation(import_score2.Navigation.Ending, 2).addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true }).addFermata().addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Eighth).addNote(1, "C4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter, { dotted: true });
71
- return doc;
41
+ return new import_score2.DocumentBuilder().setScoreConfiguration(import_score2.StaffPreset.GuitarTreble).setHeader("Greensleeves").addMeasure().setKeySignature("C", import_theory2.ScaleType.Major).setTimeSignature("6/8").setTempo(140).addNote(0, "A3", import_theory2.NoteLength.Eighth).addMeasure().addNavigation(import_score2.Navigation.StartRepeat).addNote(0, "C4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "D4", import_theory2.NoteLength.Eighth).addNote(0, "E4", import_theory2.NoteLength.Eighth, { dotted: true }).addNote(0, "F4", import_theory2.NoteLength.Sixteenth).addNote(0, "E4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "A2", import_theory2.NoteLength.Eighth).addNote(1, "E3", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "D4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "G").addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(0, "G3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "Em").addNote(0, "A3", import_theory2.NoteLength.Sixteenth).addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(1, "G2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "D3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "C4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(0, "A3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "F").addNote(0, "G#3", import_theory2.NoteLength.Sixteenth).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "F2", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "B3", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "E").addNote(0, "G#3", import_theory2.NoteLength.Eighth).addNote(0, "E3", import_theory2.NoteLength.Quarter).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(1, "E2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "B2", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter).endRow().addMeasure().addNote(0, "C4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "D4", import_theory2.NoteLength.Eighth).addNote(0, "E4", import_theory2.NoteLength.Eighth, { dotted: true }).addNote(0, "F4", import_theory2.NoteLength.Sixteenth).addNote(0, "E4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "A2", import_theory2.NoteLength.Eighth).addNote(1, "E3", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "D4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "G").addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(0, "G3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "Em").addNote(0, "A3", import_theory2.NoteLength.Sixteenth).addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(1, "G2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "D3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "C4", import_theory2.NoteLength.Eighth, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "B3", import_theory2.NoteLength.Sixteenth).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(0, "G#3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "E").addNote(0, "F#3", import_theory2.NoteLength.Sixteenth).addNote(0, "G#3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true }).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Eighth).addNote(1, "C4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter, { dotted: true }).endRow().addMeasure().addChord(0, ["C3", "E3", "G3", "C4", "G4"], import_theory2.NoteLength.Quarter, { dotted: true, arpeggio: import_score2.Arpeggio.Up, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "C").addNote(0, "G4", import_theory2.NoteLength.Eighth, { dotted: true }).addNote(0, "F#4", import_theory2.NoteLength.Sixteenth).addNote(0, "E4", import_theory2.NoteLength.Eighth).addRest(1, import_theory2.NoteLength.Quarter, { dotted: true, hide: true }).addNote(1, "C3", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "G3", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "D4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "G").addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(0, "G3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "Em").addNote(0, "A3", import_theory2.NoteLength.Sixteenth).addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(1, "G2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "D3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "C4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(0, "A3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "F").addNote(0, "G#3", import_theory2.NoteLength.Sixteenth).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "F2", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "B3", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "E").addNote(0, "G#3", import_theory2.NoteLength.Eighth).addNote(0, "E3", import_theory2.NoteLength.Quarter, { dotted: true }).addNote(1, "E2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "B2", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Eighth).addNote(1, "E3", import_theory2.NoteLength.Eighth).endRow().addMeasure().addNote(0, "G4", import_theory2.NoteLength.Quarter, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "C").addNote(0, "G4", import_theory2.NoteLength.Eighth, { dotted: true }).addNote(0, "F#4", import_theory2.NoteLength.Sixteenth).addNote(0, "E4", import_theory2.NoteLength.Eighth).addNote(1, "C3", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "G3", import_theory2.NoteLength.Eighth).addNote(1, "C4", import_theory2.NoteLength.Eighth).addNote(1, "C3", import_theory2.NoteLength.Eighth).addNote(1, "G3", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "D4", import_theory2.NoteLength.Quarter, { stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "G").addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(0, "G3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "Em").addNote(0, "A3", import_theory2.NoteLength.Sixteenth).addNote(0, "B3", import_theory2.NoteLength.Eighth).addNote(1, "G2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "D3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter).addMeasure().addNote(0, "C4", import_theory2.NoteLength.Eighth, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "B3", import_theory2.NoteLength.Sixteenth).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(0, "G#3", import_theory2.NoteLength.Eighth, { dotted: true }).addLabel(import_score2.Label.Chord, "E").addNote(0, "F#3", import_theory2.NoteLength.Sixteenth).addNote(0, "G#3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Quarter).addNote(1, "E2", import_theory2.NoteLength.Eighth).addNote(1, "B2", import_theory2.NoteLength.Quarter).addMeasure().addNavigation(import_score2.Navigation.Ending, 1).addNavigation(import_score2.Navigation.EndRepeat).addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Quarter).addNote(0, "A3", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Eighth).addNote(1, "C4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter, { dotted: true }).addMeasure().addNavigation(import_score2.Navigation.Ending, 2).addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true, stem: import_score2.Stem.Up }).addLabel(import_score2.Label.Chord, "Am").addNote(0, "A3", import_theory2.NoteLength.Quarter, { dotted: true }).addFermata().addNote(1, "A2", import_theory2.NoteLength.Eighth, { stem: import_score2.Stem.Down }).addNote(1, "E3", import_theory2.NoteLength.Eighth).addNote(1, "C4", import_theory2.NoteLength.Eighth).addNote(1, "A2", import_theory2.NoteLength.Quarter, { dotted: true }).getDocument();
72
42
  }
73
43
 
74
44
  // src/pieces/andante-diabelli.ts
75
45
  var import_theory3 = require("@tspro/web-music-score/theory");
76
46
  var import_score3 = require("@tspro/web-music-score/score");
77
47
  function createAndanteByDiabelli() {
78
- let doc = new import_score3.MDocument(import_score3.StaffPreset.GuitarTreble);
79
- doc.setHeader("Andante", "A. Diabelli");
80
- doc.addMeasure().setKeySignature("D", import_theory3.ScaleType.Major).setTimeSignature("3/4").setTempo(80).addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "G4" }).addAnnotation(import_score3.Annotation.Dynamics, "p").addNote(0, "F#4", import_theory3.NoteLength.Eighth, { stem: import_score3.Stem.Up }).addNote(0, "G4", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(1, "D3", import_theory3.NoteLength.Half, { dotted: true, stem: import_score3.Stem.Down });
81
- doc.addMeasure().addNote(0, "C#4", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "G4", import_theory3.NoteLength.Quarter).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true });
82
- doc.addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "B3" }).addAnnotation(import_score3.Annotation.Dynamics, "f").addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "G#3", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).endRow();
83
- doc.addMeasure().addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "G4", import_theory3.NoteLength.Eighth).addNote(0, "A4", import_theory3.NoteLength.Quarter).addNote(1, "D3", import_theory3.NoteLength.Half, { dotted: true });
84
- doc.addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "G4" }).addAnnotation(import_score3.Annotation.Dynamics, "p").addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "G4", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(1, "D3", import_theory3.NoteLength.Half, { dotted: true });
85
- doc.addMeasure().addNote(0, "C#4", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "G4", import_theory3.NoteLength.Quarter).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).endRow();
86
- doc.addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "B3" }).addAnnotation(import_score3.Annotation.Dynamics, "f").addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "G#3", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true });
87
- doc.addMeasure().addNote(0, "D4", import_theory3.NoteLength.Quarter).addRest(1, import_theory3.NoteLength.Quarter, { staffPos: "D3" }).addNote(0, "D3", import_theory3.NoteLength.Quarter).addNote(1, "D3", import_theory3.NoteLength.Quarter).addRest(1, import_theory3.NoteLength.Quarter, { staffPos: "B3" }).addNavigation(import_score3.Navigation.EndRepeat);
88
- doc.addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "D4" }).addAnnotation(import_score3.Annotation.Dynamics, "f").addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(1, "E2", import_theory3.NoteLength.Half, { dotted: true }).endRow();
89
- doc.addMeasure().addNote(0, "C#4", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Quarter).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true });
90
- doc.addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "B3" }).addAnnotation(import_score3.Annotation.Dynamics, "p").addNote(0, "E3", import_theory3.NoteLength.Eighth).addNote(0, "D#3", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "E3", import_theory3.NoteLength.Eighth).addNote(0, "F#3", import_theory3.NoteLength.Eighth).addNote(0, "G#3", import_theory3.NoteLength.Eighth).addNote(1, "E2", import_theory3.NoteLength.Half, { dotted: true });
91
- doc.addMeasure().addNote(0, "A3", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "G#3", import_theory3.NoteLength.Eighth).addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Quarter).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).endRow();
92
- doc.addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "G4" }).addAnnotation(import_score3.Annotation.Dynamics, "f").addNote(0, "G4", import_theory3.NoteLength.Eighth).addNote(0, "A4", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "G4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true });
93
- doc.addMeasure().addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Quarter).addNote(1, "D3", import_theory3.NoteLength.Half, { dotted: true });
94
- doc.addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "B3" }).addAnnotation(import_score3.Annotation.Dynamics, "ff").addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "G#3", import_theory3.NoteLength.Eighth, { slurSpan: 2, slurAnchor: import_score3.NoteAnchor.Below }).addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true });
95
- doc.addMeasure().addNote(0, "D4", import_theory3.NoteLength.Quarter).addRest(1, import_theory3.NoteLength.Quarter, { staffPos: "D3" }).addNote(0, "D3", import_theory3.NoteLength.Quarter).addNote(1, "D3", import_theory3.NoteLength.Quarter).addRest(1, import_theory3.NoteLength.Quarter, { staffPos: "B3" }).endSong();
96
- return doc;
48
+ return new import_score3.DocumentBuilder().setScoreConfiguration(import_score3.StaffPreset.GuitarTreble).setHeader("Andante", "A. Diabelli").addMeasure().setKeySignature("D", import_theory3.ScaleType.Major).setTimeSignature("3/4").setTempo(80).addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "G4" }).addAnnotation(import_score3.Annotation.Dynamics, "p").addNote(0, "F#4", import_theory3.NoteLength.Eighth, { stem: import_score3.Stem.Up }).addNote(0, "G4", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(1, "D3", import_theory3.NoteLength.Half, { dotted: true, stem: import_score3.Stem.Down }).addMeasure().addNote(0, "C#4", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "G4", import_theory3.NoteLength.Quarter).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "B3" }).addAnnotation(import_score3.Annotation.Dynamics, "f").addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "G#3", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).endRow().addMeasure().addNote(0, "D4", import_theory3.NoteLength.Eighth, { string: 3 }).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "G4", import_theory3.NoteLength.Eighth).addNote(0, "A4", import_theory3.NoteLength.Quarter).addNote(1, "D3", import_theory3.NoteLength.Half, { dotted: true }).addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "G4" }).addAnnotation(import_score3.Annotation.Dynamics, "p").addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "G4", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(1, "D3", import_theory3.NoteLength.Half, { dotted: true }).addMeasure().addNote(0, "C#4", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "G4", import_theory3.NoteLength.Quarter).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).endRow().addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "B3" }).addAnnotation(import_score3.Annotation.Dynamics, "f").addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "G#3", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).addMeasure().addNote(0, "D4", import_theory3.NoteLength.Quarter).addRest(1, import_theory3.NoteLength.Quarter, { staffPos: "D3" }).addNote(0, "D3", import_theory3.NoteLength.Quarter).addNote(1, "D3", import_theory3.NoteLength.Quarter).addRest(1, import_theory3.NoteLength.Quarter, { staffPos: "B3" }).addNavigation(import_score3.Navigation.EndRepeat).addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "D4" }).addAnnotation(import_score3.Annotation.Dynamics, "f").addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(1, "E2", import_theory3.NoteLength.Half, { dotted: true }).endRow().addMeasure().addNote(0, "C#4", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Quarter).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "B3" }).addAnnotation(import_score3.Annotation.Dynamics, "p").addNote(0, "E3", import_theory3.NoteLength.Eighth).addNote(0, "D#3", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "E3", import_theory3.NoteLength.Eighth).addNote(0, "F#3", import_theory3.NoteLength.Eighth).addNote(0, "G#3", import_theory3.NoteLength.Eighth).addNote(1, "E2", import_theory3.NoteLength.Half, { dotted: true }).addMeasure().addNote(0, "A3", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "G#3", import_theory3.NoteLength.Eighth).addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Quarter).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).endRow().addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "G4" }).addAnnotation(import_score3.Annotation.Dynamics, "f").addNote(0, "G4", import_theory3.NoteLength.Eighth).addNote(0, "A4", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "G4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).addMeasure().addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(0, "D4", import_theory3.NoteLength.Eighth).addNote(0, "E4", import_theory3.NoteLength.Eighth).addNote(0, "F#4", import_theory3.NoteLength.Quarter).addNote(1, "D3", import_theory3.NoteLength.Half, { dotted: true }).addMeasure().addRest(0, import_theory3.NoteLength.Eighth, { staffPos: "B3" }).addAnnotation(import_score3.Annotation.Dynamics, "ff").addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "G#3", import_theory3.NoteLength.Eighth).addConnective(import_score3.Connective.Slur, 2, import_score3.NoteAnchor.Below).addNote(0, "A3", import_theory3.NoteLength.Eighth).addNote(0, "B3", import_theory3.NoteLength.Eighth).addNote(0, "C#4", import_theory3.NoteLength.Eighth).addNote(1, "A2", import_theory3.NoteLength.Half, { dotted: true }).addMeasure().addNote(0, "D4", import_theory3.NoteLength.Quarter).addRest(1, import_theory3.NoteLength.Quarter, { staffPos: "D3" }).addNote(0, "D3", import_theory3.NoteLength.Quarter).addNote(1, "D3", import_theory3.NoteLength.Quarter).addRest(1, import_theory3.NoteLength.Quarter, { staffPos: "B3" }).endSong().getDocument();
97
49
  }
98
50
  // Annotate the CommonJS export names for ESM import in node:
99
51
  0 && (module.exports = {
@@ -1,73 +1,25 @@
1
- /* WebMusicScore v2.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
- import "../chunk-2EPWQZKJ.mjs";
1
+ /* WebMusicScore v3.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
+ import "../chunk-ZWFAOHYM.mjs";
3
3
 
4
4
  // src/pieces/frere-jacques.ts
5
5
  import { NoteLength, ScaleType } from "@tspro/web-music-score/theory";
6
- import { MDocument, StaffPreset } from "@tspro/web-music-score/score";
6
+ import { DocumentBuilder, StaffPreset } from "@tspro/web-music-score/score";
7
7
  function createFrereJacques() {
8
- let doc = new MDocument(StaffPreset.GuitarTreble);
9
- doc.setHeader("Frere Jacques");
10
- doc.addMeasure().setKeySignature("G", ScaleType.Major).setTimeSignature("4/4").addNote(0, "G3", NoteLength.Quarter).addNote(0, "A3", NoteLength.Quarter).addNote(0, "B3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Quarter);
11
- doc.addMeasure().addNote(0, "G3", NoteLength.Quarter).addNote(0, "A3", NoteLength.Quarter).addNote(0, "B3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Quarter);
12
- doc.addMeasure().addNote(0, "B3", NoteLength.Quarter).addNote(0, "C4", NoteLength.Quarter).addNote(0, "D4", NoteLength.Half).endRow();
13
- doc.addMeasure().addNote(0, "B3", NoteLength.Quarter).addNote(0, "C4", NoteLength.Quarter).addNote(0, "D4", NoteLength.Half);
14
- doc.addMeasure().addNote(0, "D4", NoteLength.Eighth).addNote(0, "E4", NoteLength.Eighth).addNote(0, "D4", NoteLength.Eighth).addNote(0, "C4", NoteLength.Eighth).addNote(0, "B3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Quarter).endRow();
15
- doc.addMeasure().addNote(0, "D4", NoteLength.Eighth).addNote(0, "E4", NoteLength.Eighth).addNote(0, "D4", NoteLength.Eighth).addNote(0, "C4", NoteLength.Eighth).addNote(0, "B3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Quarter);
16
- doc.addMeasure().addNote(0, "G3", NoteLength.Quarter).addNote(0, "D3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Half);
17
- doc.addMeasure().addNote(0, "G3", NoteLength.Quarter).addNote(0, "D3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Half);
18
- return doc;
8
+ return new DocumentBuilder().setScoreConfiguration(StaffPreset.GuitarTreble).setHeader("Frere Jacques").addMeasure().setKeySignature("G", ScaleType.Major).setTimeSignature("4/4").addNote(0, "G3", NoteLength.Quarter).addNote(0, "A3", NoteLength.Quarter).addNote(0, "B3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Quarter).addMeasure().addNote(0, "G3", NoteLength.Quarter).addNote(0, "A3", NoteLength.Quarter).addNote(0, "B3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Quarter).addMeasure().addNote(0, "B3", NoteLength.Quarter).addNote(0, "C4", NoteLength.Quarter).addNote(0, "D4", NoteLength.Half).endRow().addMeasure().addNote(0, "B3", NoteLength.Quarter).addNote(0, "C4", NoteLength.Quarter).addNote(0, "D4", NoteLength.Half).addMeasure().addNote(0, "D4", NoteLength.Eighth).addNote(0, "E4", NoteLength.Eighth).addNote(0, "D4", NoteLength.Eighth).addNote(0, "C4", NoteLength.Eighth).addNote(0, "B3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Quarter).endRow().addMeasure().addNote(0, "D4", NoteLength.Eighth).addNote(0, "E4", NoteLength.Eighth).addNote(0, "D4", NoteLength.Eighth).addNote(0, "C4", NoteLength.Eighth).addNote(0, "B3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Quarter).addMeasure().addNote(0, "G3", NoteLength.Quarter).addNote(0, "D3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Half).addMeasure().addNote(0, "G3", NoteLength.Quarter).addNote(0, "D3", NoteLength.Quarter).addNote(0, "G3", NoteLength.Half).getDocument();
19
9
  }
20
10
 
21
11
  // src/pieces/greensleeves.ts
22
12
  import { NoteLength as NoteLength2, ScaleType as ScaleType2 } from "@tspro/web-music-score/theory";
23
- import { MDocument as MDocument2, Arpeggio, Navigation, StaffPreset as StaffPreset2, Stem, Label } from "@tspro/web-music-score/score";
13
+ import { Arpeggio, Navigation, StaffPreset as StaffPreset2, Stem, Label, DocumentBuilder as DocumentBuilder2 } from "@tspro/web-music-score/score";
24
14
  function createGreensleeves() {
25
- let doc = new MDocument2(StaffPreset2.GuitarTreble);
26
- doc.setHeader("Greensleeves");
27
- doc.addMeasure().setKeySignature("C", ScaleType2.Major).setTimeSignature("6/8").setTempo(140).addNote(0, "A3", NoteLength2.Eighth);
28
- doc.addMeasure().addNavigation(Navigation.StartRepeat).addNote(0, "C4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "D4", NoteLength2.Eighth).addNote(0, "E4", NoteLength2.Eighth, { dotted: true }).addNote(0, "F4", NoteLength2.Sixteenth).addNote(0, "E4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "A2", NoteLength2.Eighth).addNote(1, "E3", NoteLength2.Quarter);
29
- doc.addMeasure().addNote(0, "D4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "G").addNote(0, "B3", NoteLength2.Eighth).addNote(0, "G3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "Em").addNote(0, "A3", NoteLength2.Sixteenth).addNote(0, "B3", NoteLength2.Eighth).addNote(1, "G2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "D3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter);
30
- doc.addMeasure().addNote(0, "C4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Eighth).addNote(0, "A3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "F").addNote(0, "G#3", NoteLength2.Sixteenth).addNote(0, "A3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "F2", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter);
31
- doc.addMeasure().addNote(0, "B3", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "E").addNote(0, "G#3", NoteLength2.Eighth).addNote(0, "E3", NoteLength2.Quarter).addNote(0, "A3", NoteLength2.Eighth).addNote(1, "E2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "B2", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter).endRow();
32
- doc.addMeasure().addNote(0, "C4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "D4", NoteLength2.Eighth).addNote(0, "E4", NoteLength2.Eighth, { dotted: true }).addNote(0, "F4", NoteLength2.Sixteenth).addNote(0, "E4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "A2", NoteLength2.Eighth).addNote(1, "E3", NoteLength2.Quarter);
33
- doc.addMeasure().addNote(0, "D4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "G").addNote(0, "B3", NoteLength2.Eighth).addNote(0, "G3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "Em").addNote(0, "A3", NoteLength2.Sixteenth).addNote(0, "B3", NoteLength2.Eighth).addNote(1, "G2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "D3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter);
34
- doc.addMeasure().addNote(0, "C4", NoteLength2.Eighth, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "B3", NoteLength2.Sixteenth).addNote(0, "A3", NoteLength2.Eighth).addNote(0, "G#3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "E").addNote(0, "F#3", NoteLength2.Sixteenth).addNote(0, "G#3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter);
35
- doc.addMeasure().addNote(0, "A3", NoteLength2.Quarter, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Quarter, { dotted: true }).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Eighth).addNote(1, "C4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter, { dotted: true }).endRow();
36
- doc.addMeasure().addChord(0, ["C3", "E3", "G3", "C4", "G4"], NoteLength2.Quarter, { dotted: true, arpeggio: Arpeggio.Up, stem: Stem.Up }).addLabel(Label.Chord, "C").addNote(0, "G4", NoteLength2.Eighth, { dotted: true }).addNote(0, "F#4", NoteLength2.Sixteenth).addNote(0, "E4", NoteLength2.Eighth).addRest(1, NoteLength2.Quarter, { dotted: true, hide: true }).addNote(1, "C3", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "G3", NoteLength2.Quarter);
37
- doc.addMeasure().addNote(0, "D4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "G").addNote(0, "B3", NoteLength2.Eighth).addNote(0, "G3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "Em").addNote(0, "A3", NoteLength2.Sixteenth).addNote(0, "B3", NoteLength2.Eighth).addNote(1, "G2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "D3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter);
38
- doc.addMeasure().addNote(0, "C4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Eighth).addNote(0, "A3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "F").addNote(0, "G#3", NoteLength2.Sixteenth).addNote(0, "A3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "F2", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter);
39
- doc.addMeasure().addNote(0, "B3", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "E").addNote(0, "G#3", NoteLength2.Eighth).addNote(0, "E3", NoteLength2.Quarter, { dotted: true }).addNote(1, "E2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "B2", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Eighth).addNote(1, "E3", NoteLength2.Eighth).endRow();
40
- doc.addMeasure().addNote(0, "G4", NoteLength2.Quarter, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "C").addNote(0, "G4", NoteLength2.Eighth, { dotted: true }).addNote(0, "F#4", NoteLength2.Sixteenth).addNote(0, "E4", NoteLength2.Eighth).addNote(1, "C3", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "G3", NoteLength2.Eighth).addNote(1, "C4", NoteLength2.Eighth).addNote(1, "C3", NoteLength2.Eighth).addNote(1, "G3", NoteLength2.Quarter);
41
- doc.addMeasure().addNote(0, "D4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "G").addNote(0, "B3", NoteLength2.Eighth).addNote(0, "G3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "Em").addNote(0, "A3", NoteLength2.Sixteenth).addNote(0, "B3", NoteLength2.Eighth).addNote(1, "G2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "D3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter);
42
- doc.addMeasure().addNote(0, "C4", NoteLength2.Eighth, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "B3", NoteLength2.Sixteenth).addNote(0, "A3", NoteLength2.Eighth).addNote(0, "G#3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "E").addNote(0, "F#3", NoteLength2.Sixteenth).addNote(0, "G#3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter);
43
- doc.addMeasure().addNavigation(Navigation.Ending, 1).addNavigation(Navigation.EndRepeat).addNote(0, "A3", NoteLength2.Quarter, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Quarter).addNote(0, "A3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Eighth).addNote(1, "C4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter, { dotted: true });
44
- doc.addMeasure().addNavigation(Navigation.Ending, 2).addNote(0, "A3", NoteLength2.Quarter, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Quarter, { dotted: true }).addFermata().addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Eighth).addNote(1, "C4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter, { dotted: true });
45
- return doc;
15
+ return new DocumentBuilder2().setScoreConfiguration(StaffPreset2.GuitarTreble).setHeader("Greensleeves").addMeasure().setKeySignature("C", ScaleType2.Major).setTimeSignature("6/8").setTempo(140).addNote(0, "A3", NoteLength2.Eighth).addMeasure().addNavigation(Navigation.StartRepeat).addNote(0, "C4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "D4", NoteLength2.Eighth).addNote(0, "E4", NoteLength2.Eighth, { dotted: true }).addNote(0, "F4", NoteLength2.Sixteenth).addNote(0, "E4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "A2", NoteLength2.Eighth).addNote(1, "E3", NoteLength2.Quarter).addMeasure().addNote(0, "D4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "G").addNote(0, "B3", NoteLength2.Eighth).addNote(0, "G3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "Em").addNote(0, "A3", NoteLength2.Sixteenth).addNote(0, "B3", NoteLength2.Eighth).addNote(1, "G2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "D3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter).addMeasure().addNote(0, "C4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Eighth).addNote(0, "A3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "F").addNote(0, "G#3", NoteLength2.Sixteenth).addNote(0, "A3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "F2", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter).addMeasure().addNote(0, "B3", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "E").addNote(0, "G#3", NoteLength2.Eighth).addNote(0, "E3", NoteLength2.Quarter).addNote(0, "A3", NoteLength2.Eighth).addNote(1, "E2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "B2", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter).endRow().addMeasure().addNote(0, "C4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "D4", NoteLength2.Eighth).addNote(0, "E4", NoteLength2.Eighth, { dotted: true }).addNote(0, "F4", NoteLength2.Sixteenth).addNote(0, "E4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "A2", NoteLength2.Eighth).addNote(1, "E3", NoteLength2.Quarter).addMeasure().addNote(0, "D4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "G").addNote(0, "B3", NoteLength2.Eighth).addNote(0, "G3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "Em").addNote(0, "A3", NoteLength2.Sixteenth).addNote(0, "B3", NoteLength2.Eighth).addNote(1, "G2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "D3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter).addMeasure().addNote(0, "C4", NoteLength2.Eighth, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "B3", NoteLength2.Sixteenth).addNote(0, "A3", NoteLength2.Eighth).addNote(0, "G#3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "E").addNote(0, "F#3", NoteLength2.Sixteenth).addNote(0, "G#3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter).addMeasure().addNote(0, "A3", NoteLength2.Quarter, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Quarter, { dotted: true }).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Eighth).addNote(1, "C4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter, { dotted: true }).endRow().addMeasure().addChord(0, ["C3", "E3", "G3", "C4", "G4"], NoteLength2.Quarter, { dotted: true, arpeggio: Arpeggio.Up, stem: Stem.Up }).addLabel(Label.Chord, "C").addNote(0, "G4", NoteLength2.Eighth, { dotted: true }).addNote(0, "F#4", NoteLength2.Sixteenth).addNote(0, "E4", NoteLength2.Eighth).addRest(1, NoteLength2.Quarter, { dotted: true, hide: true }).addNote(1, "C3", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "G3", NoteLength2.Quarter).addMeasure().addNote(0, "D4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "G").addNote(0, "B3", NoteLength2.Eighth).addNote(0, "G3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "Em").addNote(0, "A3", NoteLength2.Sixteenth).addNote(0, "B3", NoteLength2.Eighth).addNote(1, "G2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "D3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter).addMeasure().addNote(0, "C4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Eighth).addNote(0, "A3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "F").addNote(0, "G#3", NoteLength2.Sixteenth).addNote(0, "A3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "F2", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter).addMeasure().addNote(0, "B3", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "E").addNote(0, "G#3", NoteLength2.Eighth).addNote(0, "E3", NoteLength2.Quarter, { dotted: true }).addNote(1, "E2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "B2", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Eighth).addNote(1, "E3", NoteLength2.Eighth).endRow().addMeasure().addNote(0, "G4", NoteLength2.Quarter, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "C").addNote(0, "G4", NoteLength2.Eighth, { dotted: true }).addNote(0, "F#4", NoteLength2.Sixteenth).addNote(0, "E4", NoteLength2.Eighth).addNote(1, "C3", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "G3", NoteLength2.Eighth).addNote(1, "C4", NoteLength2.Eighth).addNote(1, "C3", NoteLength2.Eighth).addNote(1, "G3", NoteLength2.Quarter).addMeasure().addNote(0, "D4", NoteLength2.Quarter, { stem: Stem.Up }).addLabel(Label.Chord, "G").addNote(0, "B3", NoteLength2.Eighth).addNote(0, "G3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "Em").addNote(0, "A3", NoteLength2.Sixteenth).addNote(0, "B3", NoteLength2.Eighth).addNote(1, "G2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "D3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter).addMeasure().addNote(0, "C4", NoteLength2.Eighth, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "B3", NoteLength2.Sixteenth).addNote(0, "A3", NoteLength2.Eighth).addNote(0, "G#3", NoteLength2.Eighth, { dotted: true }).addLabel(Label.Chord, "E").addNote(0, "F#3", NoteLength2.Sixteenth).addNote(0, "G#3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Quarter).addNote(1, "E2", NoteLength2.Eighth).addNote(1, "B2", NoteLength2.Quarter).addMeasure().addNavigation(Navigation.Ending, 1).addNavigation(Navigation.EndRepeat).addNote(0, "A3", NoteLength2.Quarter, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Quarter).addNote(0, "A3", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Eighth).addNote(1, "C4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter, { dotted: true }).addMeasure().addNavigation(Navigation.Ending, 2).addNote(0, "A3", NoteLength2.Quarter, { dotted: true, stem: Stem.Up }).addLabel(Label.Chord, "Am").addNote(0, "A3", NoteLength2.Quarter, { dotted: true }).addFermata().addNote(1, "A2", NoteLength2.Eighth, { stem: Stem.Down }).addNote(1, "E3", NoteLength2.Eighth).addNote(1, "C4", NoteLength2.Eighth).addNote(1, "A2", NoteLength2.Quarter, { dotted: true }).getDocument();
46
16
  }
47
17
 
48
18
  // src/pieces/andante-diabelli.ts
49
19
  import { NoteLength as NoteLength3, ScaleType as ScaleType3 } from "@tspro/web-music-score/theory";
50
- import { MDocument as MDocument3, NoteAnchor, Navigation as Navigation2, Annotation, StaffPreset as StaffPreset3, Stem as Stem2 } from "@tspro/web-music-score/score";
20
+ import { NoteAnchor, Navigation as Navigation2, Annotation, StaffPreset as StaffPreset3, Stem as Stem2, DocumentBuilder as DocumentBuilder3, Connective } from "@tspro/web-music-score/score";
51
21
  function createAndanteByDiabelli() {
52
- let doc = new MDocument3(StaffPreset3.GuitarTreble);
53
- doc.setHeader("Andante", "A. Diabelli");
54
- doc.addMeasure().setKeySignature("D", ScaleType3.Major).setTimeSignature("3/4").setTempo(80).addRest(0, NoteLength3.Eighth, { staffPos: "G4" }).addAnnotation(Annotation.Dynamics, "p").addNote(0, "F#4", NoteLength3.Eighth, { stem: Stem2.Up }).addNote(0, "G4", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "D4", NoteLength3.Eighth).addNote(1, "D3", NoteLength3.Half, { dotted: true, stem: Stem2.Down });
55
- doc.addMeasure().addNote(0, "C#4", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "G4", NoteLength3.Quarter).addNote(1, "A2", NoteLength3.Half, { dotted: true });
56
- doc.addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "B3" }).addAnnotation(Annotation.Dynamics, "f").addNote(0, "A3", NoteLength3.Eighth).addNote(0, "G#3", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "A3", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(1, "A2", NoteLength3.Half, { dotted: true }).endRow();
57
- doc.addMeasure().addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "G4", NoteLength3.Eighth).addNote(0, "A4", NoteLength3.Quarter).addNote(1, "D3", NoteLength3.Half, { dotted: true });
58
- doc.addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "G4" }).addAnnotation(Annotation.Dynamics, "p").addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "G4", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "D4", NoteLength3.Eighth).addNote(1, "D3", NoteLength3.Half, { dotted: true });
59
- doc.addMeasure().addNote(0, "C#4", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "G4", NoteLength3.Quarter).addNote(1, "A2", NoteLength3.Half, { dotted: true }).endRow();
60
- doc.addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "B3" }).addAnnotation(Annotation.Dynamics, "f").addNote(0, "A3", NoteLength3.Eighth).addNote(0, "G#3", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "A3", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(1, "A2", NoteLength3.Half, { dotted: true });
61
- doc.addMeasure().addNote(0, "D4", NoteLength3.Quarter).addRest(1, NoteLength3.Quarter, { staffPos: "D3" }).addNote(0, "D3", NoteLength3.Quarter).addNote(1, "D3", NoteLength3.Quarter).addRest(1, NoteLength3.Quarter, { staffPos: "B3" }).addNavigation(Navigation2.EndRepeat);
62
- doc.addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "D4" }).addAnnotation(Annotation.Dynamics, "f").addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(1, "E2", NoteLength3.Half, { dotted: true }).endRow();
63
- doc.addMeasure().addNote(0, "C#4", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Quarter).addNote(1, "A2", NoteLength3.Half, { dotted: true });
64
- doc.addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "B3" }).addAnnotation(Annotation.Dynamics, "p").addNote(0, "E3", NoteLength3.Eighth).addNote(0, "D#3", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "E3", NoteLength3.Eighth).addNote(0, "F#3", NoteLength3.Eighth).addNote(0, "G#3", NoteLength3.Eighth).addNote(1, "E2", NoteLength3.Half, { dotted: true });
65
- doc.addMeasure().addNote(0, "A3", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "G#3", NoteLength3.Eighth).addNote(0, "A3", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Quarter).addNote(1, "A2", NoteLength3.Half, { dotted: true }).endRow();
66
- doc.addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "G4" }).addAnnotation(Annotation.Dynamics, "f").addNote(0, "G4", NoteLength3.Eighth).addNote(0, "A4", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "G4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(1, "A2", NoteLength3.Half, { dotted: true });
67
- doc.addMeasure().addNote(0, "D4", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Quarter).addNote(1, "D3", NoteLength3.Half, { dotted: true });
68
- doc.addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "B3" }).addAnnotation(Annotation.Dynamics, "ff").addNote(0, "A3", NoteLength3.Eighth).addNote(0, "G#3", NoteLength3.Eighth, { slurSpan: 2, slurAnchor: NoteAnchor.Below }).addNote(0, "A3", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(1, "A2", NoteLength3.Half, { dotted: true });
69
- doc.addMeasure().addNote(0, "D4", NoteLength3.Quarter).addRest(1, NoteLength3.Quarter, { staffPos: "D3" }).addNote(0, "D3", NoteLength3.Quarter).addNote(1, "D3", NoteLength3.Quarter).addRest(1, NoteLength3.Quarter, { staffPos: "B3" }).endSong();
70
- return doc;
22
+ return new DocumentBuilder3().setScoreConfiguration(StaffPreset3.GuitarTreble).setHeader("Andante", "A. Diabelli").addMeasure().setKeySignature("D", ScaleType3.Major).setTimeSignature("3/4").setTempo(80).addRest(0, NoteLength3.Eighth, { staffPos: "G4" }).addAnnotation(Annotation.Dynamics, "p").addNote(0, "F#4", NoteLength3.Eighth, { stem: Stem2.Up }).addNote(0, "G4", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "D4", NoteLength3.Eighth).addNote(1, "D3", NoteLength3.Half, { dotted: true, stem: Stem2.Down }).addMeasure().addNote(0, "C#4", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "G4", NoteLength3.Quarter).addNote(1, "A2", NoteLength3.Half, { dotted: true }).addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "B3" }).addAnnotation(Annotation.Dynamics, "f").addNote(0, "A3", NoteLength3.Eighth).addNote(0, "G#3", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "A3", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(1, "A2", NoteLength3.Half, { dotted: true }).endRow().addMeasure().addNote(0, "D4", NoteLength3.Eighth, { string: 3 }).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "G4", NoteLength3.Eighth).addNote(0, "A4", NoteLength3.Quarter).addNote(1, "D3", NoteLength3.Half, { dotted: true }).addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "G4" }).addAnnotation(Annotation.Dynamics, "p").addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "G4", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "D4", NoteLength3.Eighth).addNote(1, "D3", NoteLength3.Half, { dotted: true }).addMeasure().addNote(0, "C#4", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "G4", NoteLength3.Quarter).addNote(1, "A2", NoteLength3.Half, { dotted: true }).endRow().addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "B3" }).addAnnotation(Annotation.Dynamics, "f").addNote(0, "A3", NoteLength3.Eighth).addNote(0, "G#3", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "A3", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(1, "A2", NoteLength3.Half, { dotted: true }).addMeasure().addNote(0, "D4", NoteLength3.Quarter).addRest(1, NoteLength3.Quarter, { staffPos: "D3" }).addNote(0, "D3", NoteLength3.Quarter).addNote(1, "D3", NoteLength3.Quarter).addRest(1, NoteLength3.Quarter, { staffPos: "B3" }).addNavigation(Navigation2.EndRepeat).addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "D4" }).addAnnotation(Annotation.Dynamics, "f").addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(1, "E2", NoteLength3.Half, { dotted: true }).endRow().addMeasure().addNote(0, "C#4", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Quarter).addNote(1, "A2", NoteLength3.Half, { dotted: true }).addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "B3" }).addAnnotation(Annotation.Dynamics, "p").addNote(0, "E3", NoteLength3.Eighth).addNote(0, "D#3", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "E3", NoteLength3.Eighth).addNote(0, "F#3", NoteLength3.Eighth).addNote(0, "G#3", NoteLength3.Eighth).addNote(1, "E2", NoteLength3.Half, { dotted: true }).addMeasure().addNote(0, "A3", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "G#3", NoteLength3.Eighth).addNote(0, "A3", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Quarter).addNote(1, "A2", NoteLength3.Half, { dotted: true }).endRow().addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "G4" }).addAnnotation(Annotation.Dynamics, "f").addNote(0, "G4", NoteLength3.Eighth).addNote(0, "A4", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "G4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(1, "A2", NoteLength3.Half, { dotted: true }).addMeasure().addNote(0, "D4", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(0, "D4", NoteLength3.Eighth).addNote(0, "E4", NoteLength3.Eighth).addNote(0, "F#4", NoteLength3.Quarter).addNote(1, "D3", NoteLength3.Half, { dotted: true }).addMeasure().addRest(0, NoteLength3.Eighth, { staffPos: "B3" }).addAnnotation(Annotation.Dynamics, "ff").addNote(0, "A3", NoteLength3.Eighth).addNote(0, "G#3", NoteLength3.Eighth).addConnective(Connective.Slur, 2, NoteAnchor.Below).addNote(0, "A3", NoteLength3.Eighth).addNote(0, "B3", NoteLength3.Eighth).addNote(0, "C#4", NoteLength3.Eighth).addNote(1, "A2", NoteLength3.Half, { dotted: true }).addMeasure().addNote(0, "D4", NoteLength3.Quarter).addRest(1, NoteLength3.Quarter, { staffPos: "D3" }).addNote(0, "D3", NoteLength3.Quarter).addNote(1, "D3", NoteLength3.Quarter).addRest(1, NoteLength3.Quarter, { staffPos: "B3" }).endSong().getDocument();
71
23
  }
72
24
  export {
73
25
  createAndanteByDiabelli,
@@ -1,9 +1,10 @@
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 '../tempo-BEJBHZ5I.mjs';
4
- import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-CraqEy8x.mjs';
5
- import { H as Handedness } from '../guitar-kbJYu3Am.mjs';
6
- import { DivRect, MDocument, ScoreEventListener, MRenderer, MPlaybackButtons } from '../score/index.mjs';
3
+ import { c as Scale, S as ScaleType } from '../scale-C-YS5iVG.mjs';
4
+ import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-B5ZtlHc8.mjs';
5
+ import { H as Handedness } from '../guitar-zASF7B1g.mjs';
6
+ import { D as DivRect, M as MDocument, h as ScoreEventListener, V as MRenderer, W as MPlaybackButtons } from '../interface-CLb7xa7_.mjs';
7
+ import '../tempo-TjQKn46X.mjs';
7
8
  import '@tspro/ts-utils-lib';
8
9
 
9
10
  /** @public */
@@ -1,9 +1,10 @@
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 '../tempo--588tdcv.js';
3
+ import { c as Scale, S as ScaleType } from '../scale-B_2MZaT9.js';
4
4
  import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-B5ZtlHc8.js';
5
5
  import { H as Handedness } from '../guitar-BIFwFT31.js';
6
- import { DivRect, MDocument, ScoreEventListener, MRenderer, MPlaybackButtons } from '../score/index.js';
6
+ import { D as DivRect, M as MDocument, h as ScoreEventListener, V as MRenderer, W as MPlaybackButtons } from '../interface-DXyXwLBB.js';
7
+ import '../tempo-DoJd-UYT.js';
7
8
  import '@tspro/ts-utils-lib';
8
9
 
9
10
  /** @public */
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v2.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v3.0.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;
@@ -1,7 +1,7 @@
1
- /* WebMusicScore v2.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v3.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
2
  import {
3
3
  __publicField
4
- } from "../chunk-2EPWQZKJ.mjs";
4
+ } from "../chunk-ZWFAOHYM.mjs";
5
5
 
6
6
  // src/react-ui/circle-of-fifths.tsx
7
7
  import * as React from "react";
@@ -0,0 +1,87 @@
1
+ import { N as Note, S as SymbolSet } from './note-B5ZtlHc8.js';
2
+ import { K as KeySignature } from './tempo-DoJd-UYT.js';
3
+
4
+ /** @public */
5
+ type IntervalDirection = "Unison" | "Ascending" | "Descending";
6
+ /** @public */
7
+ type IntervalQuality = "Perfect" | "Major" | "minor" | "Augmented" | "Doubly Augmented" | "diminished" | "doubly diminished";
8
+ /** @public */
9
+ declare function validateIntervalQuality(q: string): IntervalQuality;
10
+ /** @public */
11
+ declare class Interval {
12
+ readonly note1: Note;
13
+ readonly note2: Note;
14
+ readonly direction: IntervalDirection;
15
+ readonly semitones: number;
16
+ readonly quantity: number;
17
+ readonly quality: IntervalQuality;
18
+ private constructor();
19
+ static get(note1: Note, note2: Note): Interval | undefined;
20
+ toString(): string;
21
+ toAbbrString(): string;
22
+ }
23
+
24
+ /** @public */
25
+ type Degree = 1 | 2 | "b3" | 3 | 4 | "b5" | 5 | "#5" | 6 | "bb7" | "b7" | 7 | "#7" | "b9" | 9 | "#9" | 11 | 13;
26
+ /** @public */
27
+ declare enum ScaleType {
28
+ Major = "Major",
29
+ NaturalMinor = "Natural Minor",
30
+ HarmonicMinor = "Harmonic Minor",
31
+ Ionian = "Ionian",
32
+ Dorian = "Dorian",
33
+ Phrygian = "Phrygian",
34
+ Lydian = "Lydian",
35
+ Mixolydian = "Mixolydian",
36
+ Aeolian = "Aeolian",
37
+ Locrian = "Locrian",
38
+ MajorPentatonic = "Major Pentatonic",
39
+ MinorPentatonic = "Minor Pentatonic",
40
+ MajorHexatonicBlues = "Major Hexatonic Blues",
41
+ MinorHexatonicBlues = "Minor Hexatonic Blues",
42
+ HeptatonicBlues = "Heptatonic Blues"
43
+ }
44
+ /** @public */
45
+ declare class Scale extends KeySignature {
46
+ readonly tonic: string;
47
+ readonly scaleType: ScaleType;
48
+ private readonly scaleDegrees;
49
+ private readonly scaleNotes;
50
+ private readonly chromaticClassDegree;
51
+ constructor(tonic: string, scaleType: ScaleType);
52
+ static equals(a: Scale | null | undefined, b: Scale | null | undefined): boolean;
53
+ getScaleName(symbolSet?: SymbolSet): string;
54
+ getScaleNotes(bottomNote: string, numOctaves: number): Note[];
55
+ getScaleOverview(): string;
56
+ getScaleSteps(): number[];
57
+ getScaleStringSteps(): string[];
58
+ isScaleNote(note: Note): boolean;
59
+ isScaleRootNote(note: Note): boolean;
60
+ getIntervalFromRootNote(note: Note): Interval;
61
+ private preferredChromaticNoteCache;
62
+ getPreferredChromaticNote(chromaticId: number): Note;
63
+ }
64
+ /** @public */
65
+ declare class ScaleFactory {
66
+ readonly type: ScaleType;
67
+ private tonicList;
68
+ private scaleMap;
69
+ constructor(type: ScaleType);
70
+ getTonicList(): ReadonlyArray<string>;
71
+ getDefaultTonic(): string;
72
+ getType(): ScaleType;
73
+ getScale(tonic: string): Scale;
74
+ hasScale(tonic: string): boolean;
75
+ }
76
+ /** @public */
77
+ declare function getScaleFactoryList(): ReadonlyArray<ScaleFactory | string>;
78
+ /** @public */
79
+ declare function getScaleFactory(scaleType: ScaleType): ScaleFactory;
80
+ /** @public */
81
+ declare function validateScaleType(scaleType: unknown): ScaleType;
82
+ /** @public */
83
+ declare function getScale(tonic: string, scaleType: ScaleType): Scale;
84
+ /** @public */
85
+ declare function getDefaultScale(): Scale;
86
+
87
+ export { type Degree as D, type IntervalDirection as I, ScaleType as S, type IntervalQuality as a, Interval as b, Scale as c, ScaleFactory as d, getScaleFactory as e, validateScaleType as f, getScaleFactoryList as g, getScale as h, getDefaultScale as i, validateIntervalQuality as v };
@@ -0,0 +1,87 @@
1
+ import { N as Note, S as SymbolSet } from './note-B5ZtlHc8.mjs';
2
+ import { K as KeySignature } from './tempo-TjQKn46X.mjs';
3
+
4
+ /** @public */
5
+ type IntervalDirection = "Unison" | "Ascending" | "Descending";
6
+ /** @public */
7
+ type IntervalQuality = "Perfect" | "Major" | "minor" | "Augmented" | "Doubly Augmented" | "diminished" | "doubly diminished";
8
+ /** @public */
9
+ declare function validateIntervalQuality(q: string): IntervalQuality;
10
+ /** @public */
11
+ declare class Interval {
12
+ readonly note1: Note;
13
+ readonly note2: Note;
14
+ readonly direction: IntervalDirection;
15
+ readonly semitones: number;
16
+ readonly quantity: number;
17
+ readonly quality: IntervalQuality;
18
+ private constructor();
19
+ static get(note1: Note, note2: Note): Interval | undefined;
20
+ toString(): string;
21
+ toAbbrString(): string;
22
+ }
23
+
24
+ /** @public */
25
+ type Degree = 1 | 2 | "b3" | 3 | 4 | "b5" | 5 | "#5" | 6 | "bb7" | "b7" | 7 | "#7" | "b9" | 9 | "#9" | 11 | 13;
26
+ /** @public */
27
+ declare enum ScaleType {
28
+ Major = "Major",
29
+ NaturalMinor = "Natural Minor",
30
+ HarmonicMinor = "Harmonic Minor",
31
+ Ionian = "Ionian",
32
+ Dorian = "Dorian",
33
+ Phrygian = "Phrygian",
34
+ Lydian = "Lydian",
35
+ Mixolydian = "Mixolydian",
36
+ Aeolian = "Aeolian",
37
+ Locrian = "Locrian",
38
+ MajorPentatonic = "Major Pentatonic",
39
+ MinorPentatonic = "Minor Pentatonic",
40
+ MajorHexatonicBlues = "Major Hexatonic Blues",
41
+ MinorHexatonicBlues = "Minor Hexatonic Blues",
42
+ HeptatonicBlues = "Heptatonic Blues"
43
+ }
44
+ /** @public */
45
+ declare class Scale extends KeySignature {
46
+ readonly tonic: string;
47
+ readonly scaleType: ScaleType;
48
+ private readonly scaleDegrees;
49
+ private readonly scaleNotes;
50
+ private readonly chromaticClassDegree;
51
+ constructor(tonic: string, scaleType: ScaleType);
52
+ static equals(a: Scale | null | undefined, b: Scale | null | undefined): boolean;
53
+ getScaleName(symbolSet?: SymbolSet): string;
54
+ getScaleNotes(bottomNote: string, numOctaves: number): Note[];
55
+ getScaleOverview(): string;
56
+ getScaleSteps(): number[];
57
+ getScaleStringSteps(): string[];
58
+ isScaleNote(note: Note): boolean;
59
+ isScaleRootNote(note: Note): boolean;
60
+ getIntervalFromRootNote(note: Note): Interval;
61
+ private preferredChromaticNoteCache;
62
+ getPreferredChromaticNote(chromaticId: number): Note;
63
+ }
64
+ /** @public */
65
+ declare class ScaleFactory {
66
+ readonly type: ScaleType;
67
+ private tonicList;
68
+ private scaleMap;
69
+ constructor(type: ScaleType);
70
+ getTonicList(): ReadonlyArray<string>;
71
+ getDefaultTonic(): string;
72
+ getType(): ScaleType;
73
+ getScale(tonic: string): Scale;
74
+ hasScale(tonic: string): boolean;
75
+ }
76
+ /** @public */
77
+ declare function getScaleFactoryList(): ReadonlyArray<ScaleFactory | string>;
78
+ /** @public */
79
+ declare function getScaleFactory(scaleType: ScaleType): ScaleFactory;
80
+ /** @public */
81
+ declare function validateScaleType(scaleType: unknown): ScaleType;
82
+ /** @public */
83
+ declare function getScale(tonic: string, scaleType: ScaleType): Scale;
84
+ /** @public */
85
+ declare function getDefaultScale(): Scale;
86
+
87
+ export { type Degree as D, type IntervalDirection as I, ScaleType as S, type IntervalQuality as a, Interval as b, Scale as c, ScaleFactory as d, getScaleFactory as e, validateScaleType as f, getScaleFactoryList as g, getScale as h, getDefaultScale as i, validateIntervalQuality as v };