@tspro/web-music-score 3.1.0 → 3.2.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 +17 -0
- package/README.md +5 -3
- package/dist/audio/index.d.mts +1 -8
- package/dist/audio/index.d.ts +1 -8
- package/dist/audio/index.js +1 -1
- package/dist/audio/index.mjs +2 -2
- package/dist/audio-cg/index.d.mts +0 -1
- package/dist/audio-cg/index.d.ts +0 -1
- package/dist/audio-cg/index.js +1 -1
- package/dist/audio-cg/index.mjs +2 -2
- package/dist/{chunk-B4J3KED2.mjs → chunk-LCTM7BID.mjs} +2 -2
- package/dist/core/index.d.mts +0 -3
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +3 -3
- package/dist/{guitar-BIFwFT31.d.ts → guitar-C2Cp71NZ.d.ts} +1 -8
- package/dist/{guitar-zASF7B1g.d.mts → guitar-DggbM2UL.d.mts} +1 -8
- package/dist/iife/index.global.js +11 -11
- package/dist/{interface-DprVf__B.d.ts → interface-BlNl69uT.d.ts} +57 -77
- package/dist/{interface-BedxdQDE.d.mts → interface-Bn5HFt_U.d.mts} +57 -77
- package/dist/{note-B5ZtlHc8.d.mts → note-BFa43I86.d.mts} +0 -14
- package/dist/{note-B5ZtlHc8.d.ts → note-BFa43I86.d.ts} +0 -14
- package/dist/pieces/index.d.mts +3 -6
- package/dist/pieces/index.d.ts +3 -6
- package/dist/pieces/index.js +1 -1
- package/dist/pieces/index.mjs +2 -2
- package/dist/react-ui/index.d.mts +5 -23
- package/dist/react-ui/index.d.ts +5 -23
- package/dist/react-ui/index.js +1 -1
- package/dist/react-ui/index.mjs +2 -2
- package/dist/{scale-B_2MZaT9.d.ts → scale-DRR-t4Kr.d.mts} +2 -15
- package/dist/{scale-C-YS5iVG.d.mts → scale-ebJm37q1.d.ts} +2 -15
- package/dist/score/index.d.mts +18 -18
- package/dist/score/index.d.ts +18 -18
- package/dist/score/index.js +376 -229
- package/dist/score/index.mjs +377 -230
- package/dist/{tempo-TjQKn46X.d.mts → tempo-B4h5Ktob.d.mts} +1 -17
- package/dist/{tempo-DoJd-UYT.d.ts → tempo-DgqDEsn0.d.ts} +1 -17
- package/dist/theory/index.d.mts +6 -8
- package/dist/theory/index.d.ts +6 -8
- package/dist/theory/index.js +1 -1
- package/dist/theory/index.mjs +2 -2
- package/package.json +1 -1
package/dist/pieces/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/* WebMusicScore v3.
|
|
2
|
-
import "../chunk-
|
|
1
|
+
/* WebMusicScore v3.2.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
|
+
import "../chunk-LCTM7BID.mjs";
|
|
3
3
|
|
|
4
4
|
// src/pieces/frere-jacques.ts
|
|
5
5
|
import { NoteLength, ScaleType } from "@tspro/web-music-score/theory";
|
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { c as Scale, S as ScaleType } from '../scale-
|
|
4
|
-
import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-
|
|
5
|
-
import { H as Handedness } from '../guitar-
|
|
6
|
-
import { D as DivRect, M as MDocument,
|
|
7
|
-
import '../tempo-
|
|
3
|
+
import { c as Scale, S as ScaleType } from '../scale-DRR-t4Kr.mjs';
|
|
4
|
+
import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-BFa43I86.mjs';
|
|
5
|
+
import { H as Handedness } from '../guitar-DggbM2UL.mjs';
|
|
6
|
+
import { D as DivRect, M as MDocument, i as ScoreEventListener, W as MRenderer, X as MPlaybackButtons } from '../interface-Bn5HFt_U.mjs';
|
|
7
|
+
import '../tempo-B4h5Ktob.mjs';
|
|
8
8
|
import '@tspro/ts-utils-lib';
|
|
9
9
|
|
|
10
|
-
/** @public */
|
|
11
10
|
interface CircleOfFifthsProps {
|
|
12
11
|
style?: React.CSSProperties;
|
|
13
12
|
scale: Scale;
|
|
14
13
|
onScaleChange: (scale: Scale) => void;
|
|
15
14
|
}
|
|
16
|
-
/** @public */
|
|
17
15
|
declare class CircleOfFifths extends React.Component<CircleOfFifthsProps, {}> {
|
|
18
16
|
constructor(props: CircleOfFifthsProps);
|
|
19
17
|
onScaleChange(tonic: string, scaleType: ScaleType): void;
|
|
20
18
|
render(): react_jsx_runtime.JSX.Element;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
/** @public */
|
|
24
21
|
declare class FretPosition {
|
|
25
22
|
readonly guitarCtx: GuitarContext;
|
|
26
23
|
readonly stringId: number;
|
|
@@ -43,7 +40,6 @@ declare class FretPosition {
|
|
|
43
40
|
setDefaultFillColor(): void;
|
|
44
41
|
setDefaultBorderColor(showBorder?: boolean): void;
|
|
45
42
|
}
|
|
46
|
-
/** @public */
|
|
47
43
|
declare class GuitarContext {
|
|
48
44
|
readonly tuningName: string;
|
|
49
45
|
readonly scale: Scale;
|
|
@@ -64,31 +60,25 @@ declare class GuitarContext {
|
|
|
64
60
|
alterGuitarNoteLabel(guitarNoteLabel: GuitarNoteLabel): GuitarContext;
|
|
65
61
|
}
|
|
66
62
|
|
|
67
|
-
/** @public */
|
|
68
63
|
declare class FretPositionData {
|
|
69
64
|
readonly fretPosition: Readonly<FretPosition>;
|
|
70
65
|
readonly cellRect: DivRect;
|
|
71
66
|
readonly noteRect: DivRect;
|
|
72
67
|
constructor(fretPosition: Readonly<FretPosition>, cellRect: DivRect, noteRect: DivRect);
|
|
73
68
|
}
|
|
74
|
-
/** @public */
|
|
75
69
|
type UpdateFretPositionFunc = (fretPosition: FretPosition) => void;
|
|
76
|
-
/** @public */
|
|
77
70
|
type ClickFretPositionFunc = (fretPosition: FretPosition) => void;
|
|
78
|
-
/** @public */
|
|
79
71
|
interface GuitarViewProps {
|
|
80
72
|
style?: React.CSSProperties;
|
|
81
73
|
guitarContext: GuitarContext;
|
|
82
74
|
onUpdateFretPosition?: UpdateFretPositionFunc;
|
|
83
75
|
onClickFretPosition?: ClickFretPositionFunc;
|
|
84
76
|
}
|
|
85
|
-
/** @public */
|
|
86
77
|
interface GuitarViewState {
|
|
87
78
|
width: number;
|
|
88
79
|
height: number;
|
|
89
80
|
table: FretPositionData[][];
|
|
90
81
|
}
|
|
91
|
-
/** @public */
|
|
92
82
|
declare class GuitarView extends React.Component<GuitarViewProps, GuitarViewState> {
|
|
93
83
|
state: GuitarViewState;
|
|
94
84
|
constructor(props: GuitarViewProps);
|
|
@@ -103,14 +93,11 @@ declare class GuitarView extends React.Component<GuitarViewProps, GuitarViewStat
|
|
|
103
93
|
render(): react_jsx_runtime.JSX.Element;
|
|
104
94
|
}
|
|
105
95
|
|
|
106
|
-
/** @public */
|
|
107
96
|
interface MusicScoreViewProps {
|
|
108
97
|
doc: MDocument;
|
|
109
98
|
onScoreEvent?: ScoreEventListener;
|
|
110
99
|
}
|
|
111
100
|
/**
|
|
112
|
-
* @public
|
|
113
|
-
*
|
|
114
101
|
* Usage:
|
|
115
102
|
*
|
|
116
103
|
* import * as Score from "\@tspro/web-music-score";
|
|
@@ -124,13 +111,11 @@ declare class MusicScoreView extends React.Component<MusicScoreViewProps, {}> {
|
|
|
124
111
|
render(): react_jsx_runtime.JSX.Element;
|
|
125
112
|
}
|
|
126
113
|
|
|
127
|
-
/** @public */
|
|
128
114
|
declare enum PlaybackButtonsLayout {
|
|
129
115
|
PlayStopSingle = 0,
|
|
130
116
|
PlayStop = 1,
|
|
131
117
|
PlayPauseStop = 2
|
|
132
118
|
}
|
|
133
|
-
/** @public */
|
|
134
119
|
interface PlaybackButtonsProps {
|
|
135
120
|
doc: MDocument;
|
|
136
121
|
buttonLayout?: PlaybackButtonsLayout;
|
|
@@ -138,13 +123,10 @@ interface PlaybackButtonsProps {
|
|
|
138
123
|
pauseLabel?: string;
|
|
139
124
|
stopLabel?: string;
|
|
140
125
|
}
|
|
141
|
-
/** @public */
|
|
142
126
|
interface PlaybackButtonsState {
|
|
143
127
|
controller: MPlaybackButtons;
|
|
144
128
|
}
|
|
145
129
|
/**
|
|
146
|
-
* @public
|
|
147
|
-
*
|
|
148
130
|
* Usage:
|
|
149
131
|
*
|
|
150
132
|
* import * as Score from "\@tspro/web-music-score";
|
package/dist/react-ui/index.d.ts
CHANGED
|
@@ -1,26 +1,23 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { c as Scale, S as ScaleType } from '../scale-
|
|
4
|
-
import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-
|
|
5
|
-
import { H as Handedness } from '../guitar-
|
|
6
|
-
import { D as DivRect, M as MDocument,
|
|
7
|
-
import '../tempo-
|
|
3
|
+
import { c as Scale, S as ScaleType } from '../scale-ebJm37q1.js';
|
|
4
|
+
import { b as PitchNotation, G as GuitarNoteLabel, N as Note } from '../note-BFa43I86.js';
|
|
5
|
+
import { H as Handedness } from '../guitar-C2Cp71NZ.js';
|
|
6
|
+
import { D as DivRect, M as MDocument, i as ScoreEventListener, W as MRenderer, X as MPlaybackButtons } from '../interface-BlNl69uT.js';
|
|
7
|
+
import '../tempo-DgqDEsn0.js';
|
|
8
8
|
import '@tspro/ts-utils-lib';
|
|
9
9
|
|
|
10
|
-
/** @public */
|
|
11
10
|
interface CircleOfFifthsProps {
|
|
12
11
|
style?: React.CSSProperties;
|
|
13
12
|
scale: Scale;
|
|
14
13
|
onScaleChange: (scale: Scale) => void;
|
|
15
14
|
}
|
|
16
|
-
/** @public */
|
|
17
15
|
declare class CircleOfFifths extends React.Component<CircleOfFifthsProps, {}> {
|
|
18
16
|
constructor(props: CircleOfFifthsProps);
|
|
19
17
|
onScaleChange(tonic: string, scaleType: ScaleType): void;
|
|
20
18
|
render(): react_jsx_runtime.JSX.Element;
|
|
21
19
|
}
|
|
22
20
|
|
|
23
|
-
/** @public */
|
|
24
21
|
declare class FretPosition {
|
|
25
22
|
readonly guitarCtx: GuitarContext;
|
|
26
23
|
readonly stringId: number;
|
|
@@ -43,7 +40,6 @@ declare class FretPosition {
|
|
|
43
40
|
setDefaultFillColor(): void;
|
|
44
41
|
setDefaultBorderColor(showBorder?: boolean): void;
|
|
45
42
|
}
|
|
46
|
-
/** @public */
|
|
47
43
|
declare class GuitarContext {
|
|
48
44
|
readonly tuningName: string;
|
|
49
45
|
readonly scale: Scale;
|
|
@@ -64,31 +60,25 @@ declare class GuitarContext {
|
|
|
64
60
|
alterGuitarNoteLabel(guitarNoteLabel: GuitarNoteLabel): GuitarContext;
|
|
65
61
|
}
|
|
66
62
|
|
|
67
|
-
/** @public */
|
|
68
63
|
declare class FretPositionData {
|
|
69
64
|
readonly fretPosition: Readonly<FretPosition>;
|
|
70
65
|
readonly cellRect: DivRect;
|
|
71
66
|
readonly noteRect: DivRect;
|
|
72
67
|
constructor(fretPosition: Readonly<FretPosition>, cellRect: DivRect, noteRect: DivRect);
|
|
73
68
|
}
|
|
74
|
-
/** @public */
|
|
75
69
|
type UpdateFretPositionFunc = (fretPosition: FretPosition) => void;
|
|
76
|
-
/** @public */
|
|
77
70
|
type ClickFretPositionFunc = (fretPosition: FretPosition) => void;
|
|
78
|
-
/** @public */
|
|
79
71
|
interface GuitarViewProps {
|
|
80
72
|
style?: React.CSSProperties;
|
|
81
73
|
guitarContext: GuitarContext;
|
|
82
74
|
onUpdateFretPosition?: UpdateFretPositionFunc;
|
|
83
75
|
onClickFretPosition?: ClickFretPositionFunc;
|
|
84
76
|
}
|
|
85
|
-
/** @public */
|
|
86
77
|
interface GuitarViewState {
|
|
87
78
|
width: number;
|
|
88
79
|
height: number;
|
|
89
80
|
table: FretPositionData[][];
|
|
90
81
|
}
|
|
91
|
-
/** @public */
|
|
92
82
|
declare class GuitarView extends React.Component<GuitarViewProps, GuitarViewState> {
|
|
93
83
|
state: GuitarViewState;
|
|
94
84
|
constructor(props: GuitarViewProps);
|
|
@@ -103,14 +93,11 @@ declare class GuitarView extends React.Component<GuitarViewProps, GuitarViewStat
|
|
|
103
93
|
render(): react_jsx_runtime.JSX.Element;
|
|
104
94
|
}
|
|
105
95
|
|
|
106
|
-
/** @public */
|
|
107
96
|
interface MusicScoreViewProps {
|
|
108
97
|
doc: MDocument;
|
|
109
98
|
onScoreEvent?: ScoreEventListener;
|
|
110
99
|
}
|
|
111
100
|
/**
|
|
112
|
-
* @public
|
|
113
|
-
*
|
|
114
101
|
* Usage:
|
|
115
102
|
*
|
|
116
103
|
* import * as Score from "\@tspro/web-music-score";
|
|
@@ -124,13 +111,11 @@ declare class MusicScoreView extends React.Component<MusicScoreViewProps, {}> {
|
|
|
124
111
|
render(): react_jsx_runtime.JSX.Element;
|
|
125
112
|
}
|
|
126
113
|
|
|
127
|
-
/** @public */
|
|
128
114
|
declare enum PlaybackButtonsLayout {
|
|
129
115
|
PlayStopSingle = 0,
|
|
130
116
|
PlayStop = 1,
|
|
131
117
|
PlayPauseStop = 2
|
|
132
118
|
}
|
|
133
|
-
/** @public */
|
|
134
119
|
interface PlaybackButtonsProps {
|
|
135
120
|
doc: MDocument;
|
|
136
121
|
buttonLayout?: PlaybackButtonsLayout;
|
|
@@ -138,13 +123,10 @@ interface PlaybackButtonsProps {
|
|
|
138
123
|
pauseLabel?: string;
|
|
139
124
|
stopLabel?: string;
|
|
140
125
|
}
|
|
141
|
-
/** @public */
|
|
142
126
|
interface PlaybackButtonsState {
|
|
143
127
|
controller: MPlaybackButtons;
|
|
144
128
|
}
|
|
145
129
|
/**
|
|
146
|
-
* @public
|
|
147
|
-
*
|
|
148
130
|
* Usage:
|
|
149
131
|
*
|
|
150
132
|
* import * as Score from "\@tspro/web-music-score";
|
package/dist/react-ui/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* WebMusicScore v3.
|
|
1
|
+
/* WebMusicScore v3.2.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;
|
package/dist/react-ui/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* WebMusicScore v3.
|
|
1
|
+
/* WebMusicScore v3.2.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
2
|
import {
|
|
3
3
|
__publicField
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-LCTM7BID.mjs";
|
|
5
5
|
|
|
6
6
|
// src/react-ui/circle-of-fifths.tsx
|
|
7
7
|
import * as React from "react";
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { N as Note, S as SymbolSet } from './note-
|
|
2
|
-
import { K as KeySignature } from './tempo-
|
|
1
|
+
import { N as Note, S as SymbolSet } from './note-BFa43I86.mjs';
|
|
2
|
+
import { K as KeySignature } from './tempo-B4h5Ktob.mjs';
|
|
3
3
|
|
|
4
|
-
/** @public */
|
|
5
4
|
type IntervalDirection = "Unison" | "Ascending" | "Descending";
|
|
6
|
-
/** @public */
|
|
7
5
|
type IntervalQuality = "Perfect" | "Major" | "minor" | "Augmented" | "Doubly Augmented" | "diminished" | "doubly diminished";
|
|
8
|
-
/** @public */
|
|
9
6
|
declare function validateIntervalQuality(q: string): IntervalQuality;
|
|
10
|
-
/** @public */
|
|
11
7
|
declare class Interval {
|
|
12
8
|
readonly note1: Note;
|
|
13
9
|
readonly note2: Note;
|
|
@@ -21,9 +17,7 @@ declare class Interval {
|
|
|
21
17
|
toAbbrString(): string;
|
|
22
18
|
}
|
|
23
19
|
|
|
24
|
-
/** @public */
|
|
25
20
|
type Degree = 1 | 2 | "b3" | 3 | 4 | "b5" | 5 | "#5" | 6 | "bb7" | "b7" | 7 | "#7" | "b9" | 9 | "#9" | 11 | 13;
|
|
26
|
-
/** @public */
|
|
27
21
|
declare enum ScaleType {
|
|
28
22
|
Major = "Major",
|
|
29
23
|
NaturalMinor = "Natural Minor",
|
|
@@ -41,7 +35,6 @@ declare enum ScaleType {
|
|
|
41
35
|
MinorHexatonicBlues = "Minor Hexatonic Blues",
|
|
42
36
|
HeptatonicBlues = "Heptatonic Blues"
|
|
43
37
|
}
|
|
44
|
-
/** @public */
|
|
45
38
|
declare class Scale extends KeySignature {
|
|
46
39
|
readonly tonic: string;
|
|
47
40
|
readonly scaleType: ScaleType;
|
|
@@ -61,7 +54,6 @@ declare class Scale extends KeySignature {
|
|
|
61
54
|
private preferredChromaticNoteCache;
|
|
62
55
|
getPreferredChromaticNote(chromaticId: number): Note;
|
|
63
56
|
}
|
|
64
|
-
/** @public */
|
|
65
57
|
declare class ScaleFactory {
|
|
66
58
|
readonly type: ScaleType;
|
|
67
59
|
private tonicList;
|
|
@@ -73,15 +65,10 @@ declare class ScaleFactory {
|
|
|
73
65
|
getScale(tonic: string): Scale;
|
|
74
66
|
hasScale(tonic: string): boolean;
|
|
75
67
|
}
|
|
76
|
-
/** @public */
|
|
77
68
|
declare function getScaleFactoryList(): ReadonlyArray<ScaleFactory | string>;
|
|
78
|
-
/** @public */
|
|
79
69
|
declare function getScaleFactory(scaleType: ScaleType): ScaleFactory;
|
|
80
|
-
/** @public */
|
|
81
70
|
declare function validateScaleType(scaleType: unknown): ScaleType;
|
|
82
|
-
/** @public */
|
|
83
71
|
declare function getScale(tonic: string, scaleType: ScaleType): Scale;
|
|
84
|
-
/** @public */
|
|
85
72
|
declare function getDefaultScale(): Scale;
|
|
86
73
|
|
|
87
74
|
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 };
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
import { N as Note, S as SymbolSet } from './note-
|
|
2
|
-
import { K as KeySignature } from './tempo-
|
|
1
|
+
import { N as Note, S as SymbolSet } from './note-BFa43I86.js';
|
|
2
|
+
import { K as KeySignature } from './tempo-DgqDEsn0.js';
|
|
3
3
|
|
|
4
|
-
/** @public */
|
|
5
4
|
type IntervalDirection = "Unison" | "Ascending" | "Descending";
|
|
6
|
-
/** @public */
|
|
7
5
|
type IntervalQuality = "Perfect" | "Major" | "minor" | "Augmented" | "Doubly Augmented" | "diminished" | "doubly diminished";
|
|
8
|
-
/** @public */
|
|
9
6
|
declare function validateIntervalQuality(q: string): IntervalQuality;
|
|
10
|
-
/** @public */
|
|
11
7
|
declare class Interval {
|
|
12
8
|
readonly note1: Note;
|
|
13
9
|
readonly note2: Note;
|
|
@@ -21,9 +17,7 @@ declare class Interval {
|
|
|
21
17
|
toAbbrString(): string;
|
|
22
18
|
}
|
|
23
19
|
|
|
24
|
-
/** @public */
|
|
25
20
|
type Degree = 1 | 2 | "b3" | 3 | 4 | "b5" | 5 | "#5" | 6 | "bb7" | "b7" | 7 | "#7" | "b9" | 9 | "#9" | 11 | 13;
|
|
26
|
-
/** @public */
|
|
27
21
|
declare enum ScaleType {
|
|
28
22
|
Major = "Major",
|
|
29
23
|
NaturalMinor = "Natural Minor",
|
|
@@ -41,7 +35,6 @@ declare enum ScaleType {
|
|
|
41
35
|
MinorHexatonicBlues = "Minor Hexatonic Blues",
|
|
42
36
|
HeptatonicBlues = "Heptatonic Blues"
|
|
43
37
|
}
|
|
44
|
-
/** @public */
|
|
45
38
|
declare class Scale extends KeySignature {
|
|
46
39
|
readonly tonic: string;
|
|
47
40
|
readonly scaleType: ScaleType;
|
|
@@ -61,7 +54,6 @@ declare class Scale extends KeySignature {
|
|
|
61
54
|
private preferredChromaticNoteCache;
|
|
62
55
|
getPreferredChromaticNote(chromaticId: number): Note;
|
|
63
56
|
}
|
|
64
|
-
/** @public */
|
|
65
57
|
declare class ScaleFactory {
|
|
66
58
|
readonly type: ScaleType;
|
|
67
59
|
private tonicList;
|
|
@@ -73,15 +65,10 @@ declare class ScaleFactory {
|
|
|
73
65
|
getScale(tonic: string): Scale;
|
|
74
66
|
hasScale(tonic: string): boolean;
|
|
75
67
|
}
|
|
76
|
-
/** @public */
|
|
77
68
|
declare function getScaleFactoryList(): ReadonlyArray<ScaleFactory | string>;
|
|
78
|
-
/** @public */
|
|
79
69
|
declare function getScaleFactory(scaleType: ScaleType): ScaleFactory;
|
|
80
|
-
/** @public */
|
|
81
70
|
declare function validateScaleType(scaleType: unknown): ScaleType;
|
|
82
|
-
/** @public */
|
|
83
71
|
declare function getScale(tonic: string, scaleType: ScaleType): Scale;
|
|
84
|
-
/** @public */
|
|
85
72
|
declare function getDefaultScale(): Scale;
|
|
86
73
|
|
|
87
74
|
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 };
|
package/dist/score/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as StaffPreset, a as ScoreConfiguration, M as MDocument, N as NoteOptions, R as RestOptions, F as Fermata, b as Navigation, L as Label, A as Annotation, C as Connective, T as TieType,
|
|
2
|
-
export {
|
|
3
|
-
import { N as Note } from '../note-
|
|
4
|
-
import { S as ScaleType, c as Scale } from '../scale-
|
|
5
|
-
import { K as KeySignature, a as TimeSignature, T as TimeSignatureString, N as NoteLength } from '../tempo-
|
|
1
|
+
import { S as StaffPreset, a as ScoreConfiguration, M as MDocument, N as NoteOptions, R as RestOptions, F as Fermata, b as StaffTabOrGroups, c as Navigation, L as Label, A as Annotation, C as Connective, T as TieType, d as NoteAnchor, V as VerticalPosition } from '../interface-Bn5HFt_U.mjs';
|
|
2
|
+
export { a4 as Arpeggio, Y as Clef, a5 as ConnectiveSpan, D as DivRect, k as MAccidental, m as MArpeggio, v as MBarLineLeft, u as MBarLineRight, n as MBeamGroup, l as MConnective, p as MEnding, Q as MExtensionLine, q as MFermata, r as MHeader, s as MImage, t as MMeasure, x as MNoteGroup, X as MPlaybackButtons, U as MPlayer, W as MRenderer, B as MRest, G as MRhythmColumn, H as MScoreRow, K as MSignature, O as MSpecialText, I as MStaff, o as MStaffBeamGroup, y as MStaffNoteGroup, E as MStaffRest, w as MStaffTabBarLine, J as MTab, z as MTabNoteGroup, P as MText, j as MusicInterface, a7 as PlayState, a8 as PlayStateChangeListener, f as ScoreEvent, i as ScoreEventListener, e as ScoreEventType, h as ScoreObjectEvent, g as ScoreStaffPosEvent, Z as StaffConfig, a6 as StaffTabOrGroup, a3 as Stem, a1 as StringNumber, _ as TabConfig, $ as VoiceId, a2 as getStringNumbers, a0 as getVoiceIds } from '../interface-Bn5HFt_U.mjs';
|
|
3
|
+
import { N as Note } from '../note-BFa43I86.mjs';
|
|
4
|
+
import { S as ScaleType, c as Scale } from '../scale-DRR-t4Kr.mjs';
|
|
5
|
+
import { K as KeySignature, a as TimeSignature, T as TimeSignatureString, N as NoteLength } from '../tempo-B4h5Ktob.mjs';
|
|
6
6
|
import '@tspro/ts-utils-lib';
|
|
7
7
|
|
|
8
8
|
declare class DocumentBuilder {
|
|
@@ -25,26 +25,26 @@ declare class DocumentBuilder {
|
|
|
25
25
|
addRest(voiceId: number, restLength: NoteLength, options?: RestOptions): DocumentBuilder;
|
|
26
26
|
private addFermataInternal;
|
|
27
27
|
addFermata(fermata?: Fermata): DocumentBuilder;
|
|
28
|
-
/** @param
|
|
29
|
-
addFermataTo(
|
|
28
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
29
|
+
addFermataTo(staffTabOrGroups: StaffTabOrGroups, fermata?: Fermata): DocumentBuilder;
|
|
30
30
|
private addNavigationInternal;
|
|
31
31
|
addNavigation(navigation: Navigation): DocumentBuilder;
|
|
32
32
|
addNavigation(navigation: Navigation.EndRepeat, playCount: number): DocumentBuilder;
|
|
33
33
|
addNavigation(navigation: Navigation.Ending, ...passages: number[]): DocumentBuilder;
|
|
34
|
-
/** @param
|
|
35
|
-
addNavigationTo(
|
|
36
|
-
/** @param
|
|
37
|
-
addNavigationTo(
|
|
38
|
-
/** @param
|
|
39
|
-
addNavigationTo(
|
|
34
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
35
|
+
addNavigationTo(staffTabOrGroups: StaffTabOrGroups, navigation: Navigation): DocumentBuilder;
|
|
36
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
37
|
+
addNavigationTo(staffTabOrGroups: StaffTabOrGroups, navigation: Navigation.EndRepeat, playCount: number): DocumentBuilder;
|
|
38
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
39
|
+
addNavigationTo(staffTabOrGroups: StaffTabOrGroups, navigation: Navigation.Ending, ...passages: number[]): DocumentBuilder;
|
|
40
40
|
private addLabelInternal;
|
|
41
41
|
addLabel(label: Label, text: string): DocumentBuilder;
|
|
42
|
-
/** @param
|
|
43
|
-
addLabelTo(
|
|
42
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
43
|
+
addLabelTo(staffTabOrGroups: StaffTabOrGroups, label: Label, text: string): DocumentBuilder;
|
|
44
44
|
private addAnnotationInternal;
|
|
45
45
|
addAnnotation(annotation: Annotation, text: string): DocumentBuilder;
|
|
46
|
-
/** @param
|
|
47
|
-
addAnnotationTo(
|
|
46
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
47
|
+
addAnnotationTo(staffTabOrGroups: StaffTabOrGroups, annotation: Annotation, text: string): DocumentBuilder;
|
|
48
48
|
addConnective(connective: Connective.Tie, tieSpan?: number | TieType, notAnchor?: NoteAnchor): DocumentBuilder;
|
|
49
49
|
addConnective(connective: Connective.Slur, slurSpan?: number, notAnchor?: NoteAnchor): DocumentBuilder;
|
|
50
50
|
addConnective(connective: Connective.Slide, notAnchor?: NoteAnchor): DocumentBuilder;
|
|
@@ -64,4 +64,4 @@ declare class DocumentBuilder {
|
|
|
64
64
|
addScaleArpeggio(scale: Scale, bottomNote: string, numOctaves: number): DocumentBuilder;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export { Annotation, Connective, DocumentBuilder, Fermata, Label, MDocument, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, TieType, VerticalPosition };
|
|
67
|
+
export { Annotation, Connective, DocumentBuilder, Fermata, Label, MDocument, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, VerticalPosition };
|
package/dist/score/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { S as StaffPreset, a as ScoreConfiguration, M as MDocument, N as NoteOptions, R as RestOptions, F as Fermata, b as Navigation, L as Label, A as Annotation, C as Connective, T as TieType,
|
|
2
|
-
export {
|
|
3
|
-
import { N as Note } from '../note-
|
|
4
|
-
import { S as ScaleType, c as Scale } from '../scale-
|
|
5
|
-
import { K as KeySignature, a as TimeSignature, T as TimeSignatureString, N as NoteLength } from '../tempo-
|
|
1
|
+
import { S as StaffPreset, a as ScoreConfiguration, M as MDocument, N as NoteOptions, R as RestOptions, F as Fermata, b as StaffTabOrGroups, c as Navigation, L as Label, A as Annotation, C as Connective, T as TieType, d as NoteAnchor, V as VerticalPosition } from '../interface-BlNl69uT.js';
|
|
2
|
+
export { a4 as Arpeggio, Y as Clef, a5 as ConnectiveSpan, D as DivRect, k as MAccidental, m as MArpeggio, v as MBarLineLeft, u as MBarLineRight, n as MBeamGroup, l as MConnective, p as MEnding, Q as MExtensionLine, q as MFermata, r as MHeader, s as MImage, t as MMeasure, x as MNoteGroup, X as MPlaybackButtons, U as MPlayer, W as MRenderer, B as MRest, G as MRhythmColumn, H as MScoreRow, K as MSignature, O as MSpecialText, I as MStaff, o as MStaffBeamGroup, y as MStaffNoteGroup, E as MStaffRest, w as MStaffTabBarLine, J as MTab, z as MTabNoteGroup, P as MText, j as MusicInterface, a7 as PlayState, a8 as PlayStateChangeListener, f as ScoreEvent, i as ScoreEventListener, e as ScoreEventType, h as ScoreObjectEvent, g as ScoreStaffPosEvent, Z as StaffConfig, a6 as StaffTabOrGroup, a3 as Stem, a1 as StringNumber, _ as TabConfig, $ as VoiceId, a2 as getStringNumbers, a0 as getVoiceIds } from '../interface-BlNl69uT.js';
|
|
3
|
+
import { N as Note } from '../note-BFa43I86.js';
|
|
4
|
+
import { S as ScaleType, c as Scale } from '../scale-ebJm37q1.js';
|
|
5
|
+
import { K as KeySignature, a as TimeSignature, T as TimeSignatureString, N as NoteLength } from '../tempo-DgqDEsn0.js';
|
|
6
6
|
import '@tspro/ts-utils-lib';
|
|
7
7
|
|
|
8
8
|
declare class DocumentBuilder {
|
|
@@ -25,26 +25,26 @@ declare class DocumentBuilder {
|
|
|
25
25
|
addRest(voiceId: number, restLength: NoteLength, options?: RestOptions): DocumentBuilder;
|
|
26
26
|
private addFermataInternal;
|
|
27
27
|
addFermata(fermata?: Fermata): DocumentBuilder;
|
|
28
|
-
/** @param
|
|
29
|
-
addFermataTo(
|
|
28
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
29
|
+
addFermataTo(staffTabOrGroups: StaffTabOrGroups, fermata?: Fermata): DocumentBuilder;
|
|
30
30
|
private addNavigationInternal;
|
|
31
31
|
addNavigation(navigation: Navigation): DocumentBuilder;
|
|
32
32
|
addNavigation(navigation: Navigation.EndRepeat, playCount: number): DocumentBuilder;
|
|
33
33
|
addNavigation(navigation: Navigation.Ending, ...passages: number[]): DocumentBuilder;
|
|
34
|
-
/** @param
|
|
35
|
-
addNavigationTo(
|
|
36
|
-
/** @param
|
|
37
|
-
addNavigationTo(
|
|
38
|
-
/** @param
|
|
39
|
-
addNavigationTo(
|
|
34
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
35
|
+
addNavigationTo(staffTabOrGroups: StaffTabOrGroups, navigation: Navigation): DocumentBuilder;
|
|
36
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
37
|
+
addNavigationTo(staffTabOrGroups: StaffTabOrGroups, navigation: Navigation.EndRepeat, playCount: number): DocumentBuilder;
|
|
38
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
39
|
+
addNavigationTo(staffTabOrGroups: StaffTabOrGroups, navigation: Navigation.Ending, ...passages: number[]): DocumentBuilder;
|
|
40
40
|
private addLabelInternal;
|
|
41
41
|
addLabel(label: Label, text: string): DocumentBuilder;
|
|
42
|
-
/** @param
|
|
43
|
-
addLabelTo(
|
|
42
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
43
|
+
addLabelTo(staffTabOrGroups: StaffTabOrGroups, label: Label, text: string): DocumentBuilder;
|
|
44
44
|
private addAnnotationInternal;
|
|
45
45
|
addAnnotation(annotation: Annotation, text: string): DocumentBuilder;
|
|
46
|
-
/** @param
|
|
47
|
-
addAnnotationTo(
|
|
46
|
+
/** @param staffTabOrGroups - staff/tab index (0=top), staff/tab name, or staff group name. */
|
|
47
|
+
addAnnotationTo(staffTabOrGroups: StaffTabOrGroups, annotation: Annotation, text: string): DocumentBuilder;
|
|
48
48
|
addConnective(connective: Connective.Tie, tieSpan?: number | TieType, notAnchor?: NoteAnchor): DocumentBuilder;
|
|
49
49
|
addConnective(connective: Connective.Slur, slurSpan?: number, notAnchor?: NoteAnchor): DocumentBuilder;
|
|
50
50
|
addConnective(connective: Connective.Slide, notAnchor?: NoteAnchor): DocumentBuilder;
|
|
@@ -64,4 +64,4 @@ declare class DocumentBuilder {
|
|
|
64
64
|
addScaleArpeggio(scale: Scale, bottomNote: string, numOctaves: number): DocumentBuilder;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
export { Annotation, Connective, DocumentBuilder, Fermata, Label, MDocument, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, TieType, VerticalPosition };
|
|
67
|
+
export { Annotation, Connective, DocumentBuilder, Fermata, Label, MDocument, Navigation, NoteAnchor, NoteOptions, RestOptions, ScoreConfiguration, StaffPreset, StaffTabOrGroups, TieType, VerticalPosition };
|