@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.
- package/CHANGELOG.md +22 -0
- package/README.md +13 -12
- package/dist/audio/index.d.ts +1 -1
- package/dist/audio/index.js +2 -2
- package/dist/audio/index.mjs +4 -4
- package/dist/audio-cg/index.js +1 -1
- package/dist/audio-cg/index.mjs +3 -3
- package/dist/audio-synth/index.js +1 -1
- package/dist/audio-synth/index.mjs +3 -3
- package/dist/{chunk-2EQHSQWO.mjs → chunk-C6UQDKWU.mjs} +2 -2
- package/dist/{chunk-ROPTZBKD.mjs → chunk-PMDIUO22.mjs} +2 -2
- package/dist/{chunk-QVYFIK3L.mjs → chunk-ZBA5XLYR.mjs} +3 -3
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +3 -3
- package/dist/{guitar-CaZJDA05.d.ts → guitar-BsSayRsH.d.ts} +1 -1
- package/dist/iife/audio-cg.global.js +9 -2
- package/dist/iife/index.global.js +11 -11
- package/dist/{music-objects-DTDFSro0.d.mts → music-objects-BGiRQIXW.d.mts} +218 -149
- package/dist/{music-objects-CMdYZeC6.d.ts → music-objects-Ih9vCl4p.d.ts} +220 -151
- package/dist/{note-eA2xPPiG.d.ts → note-CgCIBwvR.d.ts} +1 -1
- package/dist/pieces/index.d.mts +11 -2
- package/dist/pieces/index.d.ts +13 -4
- package/dist/pieces/index.js +20 -9
- package/dist/pieces/index.mjs +20 -10
- package/dist/react-ui/index.d.mts +2 -2
- package/dist/react-ui/index.d.ts +6 -6
- package/dist/react-ui/index.js +9 -9
- package/dist/react-ui/index.mjs +11 -11
- package/dist/{scale-DGx3tJH4.d.ts → scale-CBW4eTz7.d.ts} +2 -2
- package/dist/score/index.d.mts +6 -4
- package/dist/score/index.d.ts +9 -7
- package/dist/score/index.js +1406 -1182
- package/dist/score/index.mjs +1388 -1165
- package/dist/{tempo-GrstpD9G.d.ts → tempo-DMt3iwz9.d.ts} +1 -1
- package/dist/theory/index.d.ts +6 -6
- package/dist/theory/index.js +1 -1
- package/dist/theory/index.mjs +3 -3
- package/package.json +2 -2
package/dist/score/index.d.ts
CHANGED
|
@@ -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,
|
|
2
|
-
export {
|
|
3
|
-
import { N as Note } from '../note-
|
|
4
|
-
import { S as ScaleType, c as Scale } from '../scale-
|
|
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-
|
|
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 };
|