@tspro/web-music-score 4.2.0 → 5.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.
- package/CHANGELOG.md +13 -0
- package/README.md +51 -17
- package/dist/audio/index.d.mts +9 -26
- package/dist/audio/index.d.ts +9 -26
- package/dist/audio/index.js +44 -25
- package/dist/audio/index.mjs +38 -24
- package/dist/audio-cg/index.d.mts +13 -3
- package/dist/audio-cg/index.d.ts +13 -3
- package/dist/audio-cg/index.js +54 -51
- package/dist/audio-cg/index.mjs +49 -52
- package/dist/chunk-AAL3CMRO.mjs +11 -0
- package/dist/{chunk-7MNV5JN6.mjs → chunk-EYFT3RWB.mjs} +3 -3
- package/dist/{chunk-5NWLGWHS.mjs → chunk-J3KU3U4W.mjs} +2 -2
- package/dist/core/index.d.mts +2 -1
- package/dist/core/index.d.ts +2 -1
- package/dist/core/index.js +3 -2
- package/dist/core/index.mjs +4 -3
- package/dist/iife/audio-cg.global.js +220 -0
- package/dist/iife/index.global.js +11 -11
- package/dist/instrument-DYboobMW.d.mts +44 -0
- package/dist/instrument-DYboobMW.d.ts +44 -0
- package/dist/pieces/index.js +1 -1
- package/dist/pieces/index.mjs +2 -2
- package/dist/react-ui/index.d.mts +22 -22
- package/dist/react-ui/index.d.ts +22 -22
- package/dist/react-ui/index.js +1 -1
- package/dist/react-ui/index.mjs +2 -2
- package/dist/score/index.d.mts +6 -6
- package/dist/score/index.d.ts +6 -6
- package/dist/score/index.js +24 -24
- package/dist/score/index.mjs +26 -26
- package/dist/theory/index.js +1 -1
- package/dist/theory/index.mjs +3 -3
- package/package.json +3 -3
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* WebMusicScore v5.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
|
+
|
|
3
|
+
// src/audio/instrument.ts
|
|
4
|
+
function linearToDecibels(linearVolume) {
|
|
5
|
+
return !isFinite(linearVolume) || linearVolume <= 0 ? -Infinity : 20 * Math.log10(linearVolume);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
linearToDecibels
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=chunk-AAL3CMRO.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* WebMusicScore
|
|
1
|
+
/* WebMusicScore v5.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
2
|
import {
|
|
3
3
|
__publicField
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-J3KU3U4W.mjs";
|
|
5
5
|
|
|
6
6
|
// src/theory/rhythm.ts
|
|
7
7
|
import { Utils } from "@tspro/ts-utils-lib";
|
|
@@ -261,4 +261,4 @@ export {
|
|
|
261
261
|
Tuplet,
|
|
262
262
|
RhythmProps
|
|
263
263
|
};
|
|
264
|
-
//# sourceMappingURL=chunk-
|
|
264
|
+
//# sourceMappingURL=chunk-EYFT3RWB.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* WebMusicScore
|
|
1
|
+
/* WebMusicScore v5.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -6,4 +6,4 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
6
6
|
export {
|
|
7
7
|
__publicField
|
|
8
8
|
};
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-J3KU3U4W.mjs.map
|
package/dist/core/index.d.mts
CHANGED
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* WebMusicScore
|
|
1
|
+
/* WebMusicScore v5.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;
|
|
@@ -38,6 +38,7 @@ var MusicErrorType = /* @__PURE__ */ ((MusicErrorType2) => {
|
|
|
38
38
|
MusicErrorType2[MusicErrorType2["KeySignature"] = 4] = "KeySignature";
|
|
39
39
|
MusicErrorType2[MusicErrorType2["Timesignature"] = 5] = "Timesignature";
|
|
40
40
|
MusicErrorType2[MusicErrorType2["Score"] = 6] = "Score";
|
|
41
|
+
MusicErrorType2[MusicErrorType2["Audio"] = 7] = "Audio";
|
|
41
42
|
return MusicErrorType2;
|
|
42
43
|
})(MusicErrorType || {});
|
|
43
44
|
function formatType(type) {
|
|
@@ -62,7 +63,7 @@ function init() {
|
|
|
62
63
|
return;
|
|
63
64
|
}
|
|
64
65
|
initialized = true;
|
|
65
|
-
console.log("%cWebMusicScore
|
|
66
|
+
console.log("%cWebMusicScore v5.0.0 (cjs) initialized.", "background: black; color: white; padding: 2px;");
|
|
66
67
|
}
|
|
67
68
|
// Annotate the CommonJS export names for ESM import in node:
|
|
68
69
|
0 && (module.exports = {
|
package/dist/core/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* WebMusicScore
|
|
1
|
+
/* WebMusicScore v5.0.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
|
|
2
2
|
import {
|
|
3
3
|
__publicField
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-J3KU3U4W.mjs";
|
|
5
5
|
|
|
6
6
|
// src/core/error.ts
|
|
7
7
|
var MusicErrorType = /* @__PURE__ */ ((MusicErrorType2) => {
|
|
@@ -12,6 +12,7 @@ var MusicErrorType = /* @__PURE__ */ ((MusicErrorType2) => {
|
|
|
12
12
|
MusicErrorType2[MusicErrorType2["KeySignature"] = 4] = "KeySignature";
|
|
13
13
|
MusicErrorType2[MusicErrorType2["Timesignature"] = 5] = "Timesignature";
|
|
14
14
|
MusicErrorType2[MusicErrorType2["Score"] = 6] = "Score";
|
|
15
|
+
MusicErrorType2[MusicErrorType2["Audio"] = 7] = "Audio";
|
|
15
16
|
return MusicErrorType2;
|
|
16
17
|
})(MusicErrorType || {});
|
|
17
18
|
function formatType(type) {
|
|
@@ -36,7 +37,7 @@ function init() {
|
|
|
36
37
|
return;
|
|
37
38
|
}
|
|
38
39
|
initialized = true;
|
|
39
|
-
console.log("%cWebMusicScore
|
|
40
|
+
console.log("%cWebMusicScore v5.0.0 (esm) initialized.", "background: black; color: white; padding: 2px;");
|
|
40
41
|
}
|
|
41
42
|
export {
|
|
42
43
|
MusicError,
|