@tspro/web-music-score 5.1.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +13 -12
  3. package/dist/audio/index.d.ts +1 -1
  4. package/dist/audio/index.js +2 -2
  5. package/dist/audio/index.mjs +4 -4
  6. package/dist/audio-cg/index.js +1 -1
  7. package/dist/audio-cg/index.mjs +3 -3
  8. package/dist/audio-synth/index.js +1 -1
  9. package/dist/audio-synth/index.mjs +3 -3
  10. package/dist/{chunk-2EQHSQWO.mjs → chunk-C6UQDKWU.mjs} +2 -2
  11. package/dist/{chunk-ROPTZBKD.mjs → chunk-PMDIUO22.mjs} +2 -2
  12. package/dist/{chunk-QVYFIK3L.mjs → chunk-ZBA5XLYR.mjs} +3 -3
  13. package/dist/core/index.js +2 -2
  14. package/dist/core/index.mjs +3 -3
  15. package/dist/{guitar-CaZJDA05.d.ts → guitar-BsSayRsH.d.ts} +1 -1
  16. package/dist/iife/audio-cg.global.js +9 -2
  17. package/dist/iife/index.global.js +11 -11
  18. package/dist/{music-objects-DTDFSro0.d.mts → music-objects-BGiRQIXW.d.mts} +218 -149
  19. package/dist/{music-objects-CMdYZeC6.d.ts → music-objects-Ih9vCl4p.d.ts} +220 -151
  20. package/dist/{note-eA2xPPiG.d.ts → note-CgCIBwvR.d.ts} +1 -1
  21. package/dist/pieces/index.d.mts +11 -2
  22. package/dist/pieces/index.d.ts +13 -4
  23. package/dist/pieces/index.js +20 -9
  24. package/dist/pieces/index.mjs +20 -10
  25. package/dist/react-ui/index.d.mts +2 -2
  26. package/dist/react-ui/index.d.ts +6 -6
  27. package/dist/react-ui/index.js +9 -9
  28. package/dist/react-ui/index.mjs +11 -11
  29. package/dist/{scale-DGx3tJH4.d.ts → scale-CBW4eTz7.d.ts} +2 -2
  30. package/dist/score/index.d.mts +6 -4
  31. package/dist/score/index.d.ts +9 -7
  32. package/dist/score/index.js +1406 -1182
  33. package/dist/score/index.mjs +1388 -1165
  34. package/dist/{tempo-GrstpD9G.d.ts → tempo-DMt3iwz9.d.ts} +1 -1
  35. package/dist/theory/index.d.ts +6 -6
  36. package/dist/theory/index.js +1 -1
  37. package/dist/theory/index.mjs +3 -3
  38. package/package.json +2 -2
@@ -1,8 +1,8 @@
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-CMdYZeC6.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-CMdYZeC6.js';
3
- import { N as Note } from '../note-eA2xPPiG.js';
4
- import { S as ScaleType, c as Scale } from '../scale-DGx3tJH4.js';
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-GrstpD9G.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
+ import { N as Note } from '../note-CgCIBwvR.js';
4
+ import { S as ScaleType, c as Scale } from '../scale-CBW4eTz7.js';
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';
6
6
  import '@tspro/ts-utils-lib';
7
7
 
8
8
  /** Tuplet builder type. */
@@ -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 };