spessasynth_lib 3.24.39 → 3.25.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.
@@ -9,7 +9,7 @@ export class IndexedByteArray extends Uint8Array
9
9
  * The current index of the array
10
10
  * @type {number}
11
11
  */
12
- currentIndex;
12
+ currentIndex = 0;
13
13
 
14
14
  /**
15
15
  * Creates a new instance of an Uint8Array with a currentIndex property
@@ -18,7 +18,18 @@ export class IndexedByteArray extends Uint8Array
18
18
  constructor(args)
19
19
  {
20
20
  super(args);
21
- this.currentIndex = 0;
21
+ }
22
+
23
+ /**
24
+ * @param start {number?}
25
+ * @param end {number?}
26
+ * @returns {IndexedByteArray}
27
+ */
28
+ slice(start, end)
29
+ {
30
+ const a = super.slice(start, end);
31
+ a.currentIndex = 0;
32
+ return a;
22
33
  }
23
34
  }
24
35
 
package/utils/other.js CHANGED
@@ -31,13 +31,15 @@ export function formatTitle(fileName)
31
31
  .replaceAll(".mid", "")
32
32
  .replaceAll(".kar", "")
33
33
  .replaceAll(".rmi", "")
34
+ .replaceAll(".xmf", "")
35
+ .replaceAll(".mxmf", "")
34
36
  .replaceAll("_", " ")
35
37
  .trim();
36
38
  }
37
39
 
38
40
  /**
39
41
  * Does what it says
40
- * @param arr {number[]}
42
+ * @param arr {number[]|Uint8Array}
41
43
  * @returns {string}
42
44
  */
43
45
  export function arrayToHexString(arr)
File without changes