@tspro/web-music-score 5.4.2 → 5.5.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 +11 -0
- package/LICENSE +24 -0
- package/README.md +13 -6
- package/dist/audio/index.d.ts +1 -1
- package/dist/audio/index.js +1637 -5
- package/dist/audio/index.mjs +9 -6
- package/dist/audio-cg/index.js +17487 -46
- package/dist/audio-cg/index.mjs +7 -5
- package/dist/audio-synth/index.js +18434 -32
- package/dist/audio-synth/index.mjs +12 -7
- package/dist/{chunk-MMWSQGVR.mjs → chunk-2DCCUAGC.mjs} +3 -3
- package/dist/{chunk-CVYTUTL6.mjs → chunk-2PEB4HWS.mjs} +2 -2
- package/dist/{chunk-42IBAVOC.mjs → chunk-33HIE3HR.mjs} +18 -13
- package/dist/chunk-BMKUAUSJ.mjs +101 -0
- package/dist/chunk-PCQGQM63.mjs +18381 -0
- package/dist/chunk-T6TYLAJE.mjs +3766 -0
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +4 -4
- package/dist/{guitar-CNOxM4ZK.d.ts → guitar-CarHGDAt.d.ts} +1 -1
- package/dist/iife/audio-cg.global.js +1 -1
- package/dist/iife/index.global.js +11 -11
- package/dist/{music-objects-DqoO-Sfv.d.mts → music-objects-CcJvZxS6.d.mts} +123 -96
- package/dist/{music-objects-T8u8bnNP.d.ts → music-objects-l5Ai97QA.d.ts} +125 -98
- package/dist/{note-RVXvpfyV.d.ts → note-CJuq5aBy.d.ts} +1 -1
- package/dist/pieces/index.d.mts +12 -6
- package/dist/pieces/index.d.ts +14 -8
- package/dist/pieces/index.js +25 -13
- package/dist/pieces/index.mjs +25 -14
- package/dist/react-ui/index.d.mts +1 -1
- package/dist/react-ui/index.d.ts +5 -5
- package/dist/react-ui/index.js +2163 -22
- package/dist/react-ui/index.mjs +18 -15
- package/dist/{scale-CUYFBo-8.d.ts → scale-DulPFco_.d.ts} +2 -2
- package/dist/score/index.d.mts +51 -3
- package/dist/score/index.d.ts +54 -6
- package/dist/score/index.js +4828 -872
- package/dist/score/index.mjs +1280 -729
- package/dist/{tempo-DwuZsv2T.d.ts → tempo-BnUjm25M.d.ts} +1 -1
- package/dist/theory/index.d.ts +6 -6
- package/dist/theory/index.js +2576 -136
- package/dist/theory/index.mjs +41 -49
- package/package.json +4 -5
- package/dist/chunk-ROBXPR34.mjs +0 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
|
+
## [5.5.0] - 2025-11-19
|
|
3
|
+
### Added
|
|
4
|
+
- Coloring document.
|
|
5
|
+
- Instrument name starts with "!" (hide name) and "!{" (hide name and left brace).
|
|
6
|
+
- Pieces.createAll() to get array of all demo pieces.
|
|
7
|
+
|
|
8
|
+
### Fixes
|
|
9
|
+
- Extension line update: connect to right side element.
|
|
10
|
+
- Vertical staff/bar line update on row groups.
|
|
11
|
+
- Moved bundled deps to devDeps.
|
|
12
|
+
|
|
2
13
|
## [5.4.2] - 2025-11-05
|
|
3
14
|
## Fixed
|
|
4
15
|
- Weird tab rendering bug where sad face appear on canvas.
|
package/LICENSE
CHANGED
|
@@ -55,3 +55,27 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
55
55
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
56
56
|
SOFTWARE.
|
|
57
57
|
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
* Color Name to Code (https://github.com/simbo/color-name-to-code)
|
|
61
|
+
|
|
62
|
+
The MIT License (MIT)
|
|
63
|
+
|
|
64
|
+
Copyright © 2023 Simon Lepel <simbo@simbo.de>
|
|
65
|
+
|
|
66
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
67
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
68
|
+
the Software without restriction, including without limitation the rights to
|
|
69
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
70
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
71
|
+
subject to the following conditions:
|
|
72
|
+
|
|
73
|
+
The above copyright notice and this permission notice shall be included in all
|
|
74
|
+
copies or substantial portions of the Software.
|
|
75
|
+
|
|
76
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
77
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
78
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
79
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
80
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
81
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -71,14 +71,14 @@ React module `react-ui` is not included available for browser usage.
|
|
|
71
71
|
It is recommended to use exact version number and direct link to the bundle so
|
|
72
72
|
that if something breaks between versions then your web site does not stop working.
|
|
73
73
|
-->
|
|
74
|
-
<script src="https://unpkg.com/@tspro/web-music-score@5.
|
|
75
|
-
<script src="https://cdn.jsdelivr.net/npm/@tspro/web-music-score@5.
|
|
74
|
+
<script src="https://unpkg.com/@tspro/web-music-score@5.5.0/dist/iife/index.global.js"></script>
|
|
75
|
+
<script src="https://cdn.jsdelivr.net/npm/@tspro/web-music-score@5.5.0/dist/iife/index.global.js"></script>
|
|
76
76
|
|
|
77
77
|
<!--
|
|
78
78
|
Classical guitar now also available for browser module.
|
|
79
79
|
-->
|
|
80
|
-
<script src="https://unpkg.com/@tspro/web-music-score@5.
|
|
81
|
-
<script src="https://cdn.jsdelivr.net/npm/@tspro/web-music-score@5.
|
|
80
|
+
<script src="https://unpkg.com/@tspro/web-music-score@5.5.0/dist/iife/audio-cg.global.js"></script>
|
|
81
|
+
<script src="https://cdn.jsdelivr.net/npm/@tspro/web-music-score@5.5.0/dist/iife/audio-cg.global.js"></script>
|
|
82
82
|
|
|
83
83
|
<script>
|
|
84
84
|
// The lib is available via global name WebMusicScore.
|
|
@@ -150,7 +150,7 @@ or corresponding string values (e.g. `"treble"`).
|
|
|
150
150
|
minNote: "C2", // (optional) min allowed note.
|
|
151
151
|
maxNote: "C6", // (optional) max allowed note.
|
|
152
152
|
voiceId: [0, 1], // (optional) only present voices 0 and 1 in this staff.
|
|
153
|
-
instrument: "Piano" // (optional) staves/tabs with same
|
|
153
|
+
instrument: "Piano" // (optional) consecutive staves/tabs with same name are grouped together.
|
|
154
154
|
})
|
|
155
155
|
.setScoreConfiguration([
|
|
156
156
|
{ type: "staff", clef: "G", grandId: "grand1" },
|
|
@@ -169,6 +169,10 @@ or corresponding string values (e.g. `"treble"`).
|
|
|
169
169
|
}) // Tab with guitar tuning, present only voiceId 4 in this tab.
|
|
170
170
|
```
|
|
171
171
|
|
|
172
|
+
Instrument name hint!
|
|
173
|
+
* `"!Piano"` hides name.
|
|
174
|
+
* `"!{Piano"` hides both name and left brace of the group.
|
|
175
|
+
|
|
172
176
|
### Set Automatic Measures Per Row
|
|
173
177
|
```ts
|
|
174
178
|
.setMesuresPerRow(4) // Set 4 measures per row
|
|
@@ -551,5 +555,8 @@ Thanks for helping improve the project!
|
|
|
551
555
|
|
|
552
556
|
This project is licensed under the [MIT License](https://mit-license.org/).
|
|
553
557
|
|
|
554
|
-
It also bundles
|
|
558
|
+
It also bundles following libs:
|
|
559
|
+
- [Tone.js](https://github.com/Tonejs/Tone.js) library,
|
|
555
560
|
which is licensed under the [MIT License](https://opensource.org/license/mit).
|
|
561
|
+
- [Color Name to Code](https://github.com/simbo/color-name-to-code) library,
|
|
562
|
+
which is licensed under the [MIT © Simon Lepel](http://simbo.mit-license.org/).
|
package/dist/audio/index.d.ts
CHANGED