web-music-score 6.0.0-pre.2 → 6.0.0-pre.4
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 +19 -0
- package/dist/audio/index.d.ts +1 -1
- package/dist/audio/index.js +12 -2
- package/dist/audio/index.mjs +4 -4
- package/dist/audio-cg/index.js +1 -1
- package/dist/audio-cg/index.mjs +4 -4
- package/dist/audio-synth/index.js +1 -1
- package/dist/audio-synth/index.mjs +4 -4
- package/dist/{chunk-3L3RBNBV.mjs → chunk-6BEFVAAS.mjs} +3 -3
- package/dist/{chunk-7PNMM2PM.mjs → chunk-DVKR62RS.mjs} +14 -4
- package/dist/{chunk-5W6ROWBC.mjs → chunk-GNCSH24V.mjs} +2 -2
- package/dist/{chunk-OXLTN43T.mjs → chunk-GNFDJFUO.mjs} +2 -2
- package/dist/{chunk-5P4O5YX2.mjs → chunk-KFBULED3.mjs} +3 -3
- package/dist/{chunk-GNFWJCFN.mjs → chunk-UAVXEHYM.mjs} +4 -4
- package/dist/core/index.js +1830 -3
- package/dist/core/index.mjs +90 -4
- package/dist/iife/audio-cg.js +1 -1
- package/dist/iife/index.js +92 -12
- package/dist/{music-objects-CiIS8yPn.d.ts → music-objects-ChAdqdR8.d.ts} +74 -4
- package/dist/{note-CJuq5aBy.d.ts → note-RVXvpfyV.d.ts} +1 -1
- package/dist/pieces/index.d.ts +3 -3
- package/dist/pieces/index.js +1 -1
- package/dist/pieces/index.mjs +2 -2
- package/dist/react-ui/index.d.ts +6 -3
- package/dist/react-ui/index.js +43 -10
- package/dist/react-ui/index.mjs +44 -11
- package/dist/{scale-DxGqFxlv.d.ts → scale-B1M10_fu.d.ts} +2 -2
- package/dist/score/index.d.ts +6 -54
- package/dist/score/index.js +709 -597
- package/dist/score/index.mjs +700 -599
- package/dist/{tempo-pCAa6qgo.d.ts → tempo-D-JF-8b_.d.ts} +1 -1
- package/dist/theory/index.d.ts +5 -5
- package/dist/theory/index.js +12 -2
- package/dist/theory/index.mjs +4 -4
- package/package.json +5 -4
package/dist/theory/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { N as Note } from '../note-
|
|
2
|
-
export { A as Accidental, d as DefaultGuitarNoteLabel, D as DefaultPitchNotation, G as GuitarNoteLabel, e as GuitarNoteLabelList, a as NoteLetter, P as ParsedNote, b as PitchNotation, c as PitchNotationList, S as SymbolSet, g as getPitchNotationName, f as validateGuitarNoteLabel, v as validatePitchNotation } from '../note-
|
|
3
|
-
import { D as Degree } from '../scale-
|
|
4
|
-
export { b as Interval, I as IntervalDirection, a as IntervalQuality, c as Scale, d as ScaleFactory, S as ScaleType, i as getDefaultScale, h as getScale, e as getScaleFactory, g as getScaleFactoryList, v as validateIntervalQuality, f as validateScaleType } from '../scale-
|
|
5
|
-
export { A as AccidentalType, B as BeamGrouping, K as KeySignature, M as Mode, N as NoteLength, j as NoteLengthProps, h as NoteLengthStr, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatures, n as Tuplet, k as TupletRatio, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, i as isNoteLength, l as isTupletRatio, v as validateNoteLength, m as validateTupletRatio } from '../tempo-
|
|
1
|
+
import { N as Note } from '../note-RVXvpfyV.js';
|
|
2
|
+
export { A as Accidental, d as DefaultGuitarNoteLabel, D as DefaultPitchNotation, G as GuitarNoteLabel, e as GuitarNoteLabelList, a as NoteLetter, P as ParsedNote, b as PitchNotation, c as PitchNotationList, S as SymbolSet, g as getPitchNotationName, f as validateGuitarNoteLabel, v as validatePitchNotation } from '../note-RVXvpfyV.js';
|
|
3
|
+
import { D as Degree } from '../scale-B1M10_fu.js';
|
|
4
|
+
export { b as Interval, I as IntervalDirection, a as IntervalQuality, c as Scale, d as ScaleFactory, S as ScaleType, i as getDefaultScale, h as getScale, e as getScaleFactory, g as getScaleFactoryList, v as validateIntervalQuality, f as validateScaleType } from '../scale-B1M10_fu.js';
|
|
5
|
+
export { A as AccidentalType, B as BeamGrouping, K as KeySignature, M as Mode, N as NoteLength, j as NoteLengthProps, h as NoteLengthStr, R as RhythmProps, c as Tempo, a as TimeSignature, T as TimeSignatures, n as Tuplet, k as TupletRatio, f as alterTempoSpeed, g as getDefaultKeySignature, d as getDefaultTempo, b as getDefaultTimeSignature, e as getTempoString, i as isNoteLength, l as isTupletRatio, v as validateNoteLength, m as validateTupletRatio } from '../tempo-D-JF-8b_.js';
|
|
6
6
|
|
|
7
7
|
/** Chord info type. */
|
|
8
8
|
type ChordInfo = {
|
package/dist/theory/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* WebMusicScore v6.0.0-pre.
|
|
1
|
+
/* WebMusicScore v6.0.0-pre.4 | (c) 2023-2025 Stefan Brockmann | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -1526,6 +1526,7 @@ __export2(dom_exports, {
|
|
|
1526
1526
|
getPadding: () => getPadding,
|
|
1527
1527
|
getWidth: () => getWidth,
|
|
1528
1528
|
hasClass: () => hasClass,
|
|
1529
|
+
injectCss: () => injectCss,
|
|
1529
1530
|
removeClass: () => removeClass,
|
|
1530
1531
|
removeFromParent: () => removeFromParent,
|
|
1531
1532
|
setHeight: () => setHeight,
|
|
@@ -1711,6 +1712,15 @@ function getCanvasTextWidth(text, font) {
|
|
|
1711
1712
|
ctx.font = font;
|
|
1712
1713
|
return ctx.measureText(text).width;
|
|
1713
1714
|
}
|
|
1715
|
+
function injectCss(styleId, styleCss) {
|
|
1716
|
+
if (styleId === "" || styleCss === "") return;
|
|
1717
|
+
if (typeof document === "undefined") return;
|
|
1718
|
+
if (document.getElementById(styleId)) return;
|
|
1719
|
+
const style = document.createElement("style");
|
|
1720
|
+
style.id = styleId;
|
|
1721
|
+
style.textContent = styleCss;
|
|
1722
|
+
document.head.appendChild(style);
|
|
1723
|
+
}
|
|
1714
1724
|
var math_exports = {};
|
|
1715
1725
|
__export2(math_exports, {
|
|
1716
1726
|
avg: () => avg,
|
|
@@ -4834,7 +4844,7 @@ var import_core10 = require("web-music-score/core");
|
|
|
4834
4844
|
|
|
4835
4845
|
@tspro/ts-utils-lib/dist/index.mjs:
|
|
4836
4846
|
(*!
|
|
4837
|
-
* TsUtilsLib v2.
|
|
4847
|
+
* TsUtilsLib v2.3.0 (esm)
|
|
4838
4848
|
* (c) 2023-2025 PahkaSoft
|
|
4839
4849
|
* Licensed under the MIT License
|
|
4840
4850
|
*)
|
package/dist/theory/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* WebMusicScore v6.0.0-pre.
|
|
1
|
+
/* WebMusicScore v6.0.0-pre.4 | (c) 2023-2025 Stefan Brockmann | MIT License | Includes: Tone.js (MIT License), Color Name to Code (MIT License) */
|
|
2
2
|
import {
|
|
3
3
|
NoteLength,
|
|
4
4
|
NoteLengthProps,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
isTupletRatio,
|
|
9
9
|
validateNoteLength,
|
|
10
10
|
validateTupletRatio
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-UAVXEHYM.mjs";
|
|
12
12
|
import {
|
|
13
13
|
IndexArray,
|
|
14
14
|
LRUCache,
|
|
@@ -16,10 +16,10 @@ import {
|
|
|
16
16
|
UniMap,
|
|
17
17
|
guard_exports,
|
|
18
18
|
utils_exports
|
|
19
|
-
} from "../chunk-
|
|
19
|
+
} from "../chunk-DVKR62RS.mjs";
|
|
20
20
|
import {
|
|
21
21
|
__publicField
|
|
22
|
-
} from "../chunk-
|
|
22
|
+
} from "../chunk-GNFDJFUO.mjs";
|
|
23
23
|
|
|
24
24
|
// src/theory/types.ts
|
|
25
25
|
import { MusicError, MusicErrorType } from "web-music-score/core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-music-score",
|
|
3
|
-
"version": "6.0.0-pre.
|
|
3
|
+
"version": "6.0.0-pre.4",
|
|
4
4
|
"author": "Stefan Brockmann",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"private": false,
|
|
@@ -93,7 +93,8 @@
|
|
|
93
93
|
"types": "./dist/pieces/index.d.ts",
|
|
94
94
|
"default": "./dist/pieces/index.mjs"
|
|
95
95
|
}
|
|
96
|
-
}
|
|
96
|
+
},
|
|
97
|
+
"./package.json": "./package.json"
|
|
97
98
|
},
|
|
98
99
|
"unpkg": "./dist/iife/index.js",
|
|
99
100
|
"jsdelivr": "./dist/iife/index.js",
|
|
@@ -111,7 +112,7 @@
|
|
|
111
112
|
},
|
|
112
113
|
"devDependencies": {
|
|
113
114
|
"@tspro/tsup-plugin-inline-assets": "^1.0.0",
|
|
114
|
-
"@tspro/ts-utils-lib": "^2.
|
|
115
|
+
"@tspro/ts-utils-lib": "^2.3.0",
|
|
115
116
|
"@types/react": "^18.0.0",
|
|
116
117
|
"@types/react-dom": "^18.0.0",
|
|
117
118
|
"color-name-to-code": "^1.0.1",
|
|
@@ -134,4 +135,4 @@
|
|
|
134
135
|
"start:guitar-app": "npm run start --workspace guitar-app",
|
|
135
136
|
"docs": "typedoc"
|
|
136
137
|
}
|
|
137
|
-
}
|
|
138
|
+
}
|