spessasynth_core 3.26.22 → 3.26.24

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.22",
3
+ "version": "3.26.24",
4
4
  "description": "MIDI and SoundFont2/DLS library with no compromises",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -226,6 +226,7 @@ export class BasicSample
226
226
 
227
227
  /**
228
228
  * @returns {Float32Array}
229
+ * @virtual
229
230
  */
230
231
  getAudioData()
231
232
  {
@@ -239,6 +240,7 @@ export class BasicSample
239
240
  // noinspection JSUnusedGlobalSymbols
240
241
  /**
241
242
  * @param audioData {Float32Array}
243
+ * @virtual
242
244
  */
243
245
  setAudioData(audioData)
244
246
  {
@@ -52,6 +52,14 @@ export class DLSSample extends BasicSample
52
52
  return this.sampleData;
53
53
  }
54
54
 
55
+ /**
56
+ * @param audioData {Float32Array}
57
+ */
58
+ setAudioData(audioData)
59
+ {
60
+ super.setAudioData(audioData);
61
+ }
62
+
55
63
  getRawData()
56
64
  {
57
65
  if (this.isCompressed)
@@ -135,6 +135,16 @@ export class SoundFontSample extends BasicSample
135
135
  }
136
136
  }
137
137
 
138
+ /**
139
+ * @param audioData {Float32Array}
140
+ */
141
+ setAudioData(audioData)
142
+ {
143
+ super.setAudioData(audioData);
144
+ this.isSampleLoaded = true;
145
+ this.isDataRaw = false;
146
+ }
147
+
138
148
  /**
139
149
  * Loads the audio data and stores it for reuse
140
150
  * @returns {Float32Array} The audioData
@@ -96,7 +96,6 @@ export class SoundFont2 extends BasicSoundBank
96
96
  // dmod: default modulators
97
97
  case "dmod":
98
98
  const newModulators = readModulators(chunk);
99
- newModulators.pop(); // remove the terminal record
100
99
  text = `Modulators: ${newModulators.length}`;
101
100
 
102
101
  // override default modulators