@tspro/web-music-score 4.0.1 → 4.1.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.1.0] - 2025-10-01
4
+ ## Added
5
+ - 4-4 (in adition to 2-2-2-2) beam grouping for 4/4 time signature.
6
+ - 12/8 time signature.
7
+ - 5/8 time signature and 2-3 and 3-2 beam groupings.
8
+ - 7/8 time signature and 2-2-3 and 3-2-2 beam groupings.
9
+
3
10
  ## [4.0.1] - 2025-09-28
4
11
  ## Fixed
5
12
  - Invalid typedoc @params.
package/README.md CHANGED
@@ -56,11 +56,11 @@ browser module).
56
56
 
57
57
  ```html
58
58
  <script src="https://unpkg.com/@tspro/web-music-score@4"></script>
59
- <script src="https://unpkg.com/@tspro/web-music-score@4.0.0"></script>
60
- <script src="https://unpkg.com/@tspro/web-music-score@4.0.0/dist/iife/index.global.js"></script>
59
+ <script src="https://unpkg.com/@tspro/web-music-score@4.1.0"></script>
60
+ <script src="https://unpkg.com/@tspro/web-music-score@4.1.0/dist/iife/index.global.js"></script>
61
61
 
62
62
  <!--
63
- Use one of above. It is recommended to use version number (e.g. @4.0.0 or at least @4).
63
+ Use one of above. It is recommended to use version number (e.g. @4.1.0 or at least @4).
64
64
  This way if something breaks between versions then your web site does not stop working.
65
65
  -->
66
66
 
@@ -179,12 +179,21 @@ or corresponding string values (e.g. `"Major"`).
179
179
  ```
180
180
 
181
181
  ### Set Time Signature
182
+ For time signature you can use `Theory.TimeSignatures` enum values (e.g. `Theory.TimeSignatures._2_4`)
183
+ or corresponding string values (e.g. `"2/4"`).
184
+
185
+ For optional beam grouping argument for 5/8 and 7/8 time signatures you can use `Theory.BeamGrouping`
186
+ enum values (e.g. `Theory.BeamGrouping._2_2_3`) or corresponding string values (e.g. `"2-2-3"`).
187
+
182
188
  ```js
183
- .setTimeSignature("2/4") // Set time signature of 2/4
184
- .setTimeSignature("3/4") // Set time signature of 3/4
185
- .setTimeSignature("4/4") // Set time signature of 4/4
186
- .setTimeSignature("6/8") // Set time signature of 6/8
187
- .setTimeSignature("9/8") // Set time signature of 9/8
189
+ .setTimeSignature("2/4") // Set time signature of 2/4.
190
+ .setTimeSignature("3/4") // Set time signature of 3/4.
191
+ .setTimeSignature("4/4") // Set time signature of 4/4.
192
+ .setTimeSignature("5/8", "2-3") // Set time signature of 5/8. Available beam groupings are "2-3" (default) and "3-2".
193
+ .setTimeSignature("6/8") // Set time signature of 6/8.
194
+ .setTimeSignature("7/8", "2-2-3") // Set time signature of 7/8. Available beam groupings are "2-2-3" (default) and "3-2-2".
195
+ .setTimeSignature("9/8") // Set time signature of 9/8.
196
+ .setTimeSignature(12, 8) // Set time signature of 12/8 using number arguments.
188
197
  ```
189
198
 
190
199
  ### Set Tempo
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v4.0.1 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v4.1.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;
@@ -1,7 +1,7 @@
1
- /* WebMusicScore v4.0.1 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v4.1.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
2
  import {
3
3
  __publicField
4
- } from "../chunk-YFPLOHP2.mjs";
4
+ } from "../chunk-MHNTJ6FU.mjs";
5
5
 
6
6
  // src/audio/index.ts
7
7
  import { Note, PitchNotation, SymbolSet } from "@tspro/web-music-score/theory";
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v4.0.1 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v4.1.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;
@@ -1,7 +1,7 @@
1
- /* WebMusicScore v4.0.1 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v4.1.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
2
  import {
3
3
  __publicField
4
- } from "../chunk-YFPLOHP2.mjs";
4
+ } from "../chunk-MHNTJ6FU.mjs";
5
5
 
6
6
  // src/audio-cg/index.ts
7
7
  import * as Tone from "tone";
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v4.0.1 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v4.1.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-YFPLOHP2.mjs.map
9
+ //# sourceMappingURL=chunk-MHNTJ6FU.mjs.map
@@ -1,4 +1,4 @@
1
- /* WebMusicScore v4.0.1 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v4.1.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;
@@ -62,7 +62,7 @@ function init() {
62
62
  return;
63
63
  }
64
64
  initialized = true;
65
- console.log("%cWebMusicScore v4.0.1 (cjs) initialized.", "background: black; color: white; padding: 2px;");
65
+ console.log("%cWebMusicScore v4.1.0 (cjs) initialized.", "background: black; color: white; padding: 2px;");
66
66
  }
67
67
  // Annotate the CommonJS export names for ESM import in node:
68
68
  0 && (module.exports = {
@@ -1,7 +1,7 @@
1
- /* WebMusicScore v4.0.1 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
1
+ /* WebMusicScore v4.1.0 | (c) 2023 PahkaSoft | MIT License | Includes: Tone.js (MIT License) */
2
2
  import {
3
3
  __publicField
4
- } from "../chunk-YFPLOHP2.mjs";
4
+ } from "../chunk-MHNTJ6FU.mjs";
5
5
 
6
6
  // src/core/error.ts
7
7
  var MusicErrorType = /* @__PURE__ */ ((MusicErrorType2) => {
@@ -36,7 +36,7 @@ function init() {
36
36
  return;
37
37
  }
38
38
  initialized = true;
39
- console.log("%cWebMusicScore v4.0.1 (esm) initialized.", "background: black; color: white; padding: 2px;");
39
+ console.log("%cWebMusicScore v4.1.0 (esm) initialized.", "background: black; color: white; padding: 2px;");
40
40
  }
41
41
  export {
42
42
  MusicError,