@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.
Files changed (43) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +24 -0
  3. package/README.md +13 -6
  4. package/dist/audio/index.d.ts +1 -1
  5. package/dist/audio/index.js +1637 -5
  6. package/dist/audio/index.mjs +9 -6
  7. package/dist/audio-cg/index.js +17487 -46
  8. package/dist/audio-cg/index.mjs +7 -5
  9. package/dist/audio-synth/index.js +18434 -32
  10. package/dist/audio-synth/index.mjs +12 -7
  11. package/dist/{chunk-MMWSQGVR.mjs → chunk-2DCCUAGC.mjs} +3 -3
  12. package/dist/{chunk-CVYTUTL6.mjs → chunk-2PEB4HWS.mjs} +2 -2
  13. package/dist/{chunk-42IBAVOC.mjs → chunk-33HIE3HR.mjs} +18 -13
  14. package/dist/chunk-BMKUAUSJ.mjs +101 -0
  15. package/dist/chunk-PCQGQM63.mjs +18381 -0
  16. package/dist/chunk-T6TYLAJE.mjs +3766 -0
  17. package/dist/core/index.js +2 -2
  18. package/dist/core/index.mjs +4 -4
  19. package/dist/{guitar-CNOxM4ZK.d.ts → guitar-CarHGDAt.d.ts} +1 -1
  20. package/dist/iife/audio-cg.global.js +1 -1
  21. package/dist/iife/index.global.js +11 -11
  22. package/dist/{music-objects-DqoO-Sfv.d.mts → music-objects-CcJvZxS6.d.mts} +123 -96
  23. package/dist/{music-objects-T8u8bnNP.d.ts → music-objects-l5Ai97QA.d.ts} +125 -98
  24. package/dist/{note-RVXvpfyV.d.ts → note-CJuq5aBy.d.ts} +1 -1
  25. package/dist/pieces/index.d.mts +12 -6
  26. package/dist/pieces/index.d.ts +14 -8
  27. package/dist/pieces/index.js +25 -13
  28. package/dist/pieces/index.mjs +25 -14
  29. package/dist/react-ui/index.d.mts +1 -1
  30. package/dist/react-ui/index.d.ts +5 -5
  31. package/dist/react-ui/index.js +2163 -22
  32. package/dist/react-ui/index.mjs +18 -15
  33. package/dist/{scale-CUYFBo-8.d.ts → scale-DulPFco_.d.ts} +2 -2
  34. package/dist/score/index.d.mts +51 -3
  35. package/dist/score/index.d.ts +54 -6
  36. package/dist/score/index.js +4828 -872
  37. package/dist/score/index.mjs +1280 -729
  38. package/dist/{tempo-DwuZsv2T.d.ts → tempo-BnUjm25M.d.ts} +1 -1
  39. package/dist/theory/index.d.ts +6 -6
  40. package/dist/theory/index.js +2576 -136
  41. package/dist/theory/index.mjs +41 -49
  42. package/package.json +4 -5
  43. 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.4.2/dist/iife/index.global.js"></script>
75
- <script src="https://cdn.jsdelivr.net/npm/@tspro/web-music-score@5.4.2/dist/iife/index.global.js"></script>
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.4.2/dist/iife/audio-cg.global.js"></script>
81
- <script src="https://cdn.jsdelivr.net/npm/@tspro/web-music-score@5.4.2/dist/iife/audio-cg.global.js"></script>
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 instrument are grouped together with left brace.
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 the [Tone.js](https://github.com/Tonejs/Tone.js) library,
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 &copy; Simon Lepel](http://simbo.mit-license.org/).
@@ -1,4 +1,4 @@
1
- import { N as Note } from '../note-RVXvpfyV.js';
1
+ import { N as Note } from '../note-CJuq5aBy.js';
2
2
  import { I as Instrument } from '../instrument-DYboobMW.js';
3
3
  export { l as linearToDecibels } from '../instrument-DYboobMW.js';
4
4