spessasynth_core 3.26.26 → 3.26.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spessasynth_core",
3
- "version": "3.26.26",
3
+ "version": "3.26.27",
4
4
  "description": "MIDI and SoundFont2/DLS library with no compromises",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -350,7 +350,7 @@ class XMFNode
350
350
  }
351
351
 
352
352
  /**
353
- * @param midi {MIDI}
353
+ * @param midi {BasicMIDI}
354
354
  * @param binaryData {IndexedByteArray}
355
355
  * @returns {IndexedByteArray} the file byte array
356
356
  */
@@ -149,7 +149,6 @@ class BasicSoundBank
149
149
  20,
150
150
  0,
151
151
  0,
152
- 0,
153
152
  127
154
153
  );
155
154
  sample.sampleData = new Float32Array(128);
@@ -1,4 +1,4 @@
1
- import { BasicSample } from "../basic_soundfont/basic_sample.js";
1
+ import { BasicSample, sampleTypes } from "../basic_soundfont/basic_sample.js";
2
2
 
3
3
  export class DLSSample extends BasicSample
4
4
  {
@@ -38,12 +38,11 @@ export class DLSSample extends BasicSample
38
38
  rate,
39
39
  pitch,
40
40
  pitchCorrection,
41
- 0,
42
- 1,
41
+ sampleTypes.monoSample,
43
42
  loopStart,
44
43
  loopEnd
45
44
  );
46
- this.sampleData = data;
45
+ this.setAudioData(data);
47
46
  this.sampleDbAttenuation = sampleDbAttenuation;
48
47
  }
49
48
 
@@ -27,7 +27,7 @@ export class IndexedByteArray extends Uint8Array
27
27
  */
28
28
  slice(start, end)
29
29
  {
30
- const a = super.slice(start, end);
30
+ const a = /** @type {IndexedByteArray} */ super.slice(start, end);
31
31
  a.currentIndex = 0;
32
32
  return a;
33
33
  }