spessasynth_core 1.1.8 → 3.26.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/index.js CHANGED
@@ -44,6 +44,9 @@ import {
44
44
  SpessaSynthWarn
45
45
  } from "./src/utils/loggin.js";
46
46
  import { readBytesAsUintBigEndian } from "./src/utils/byte_functions/big_endian.js";
47
+ import { readLittleEndian } from "./src/utils/byte_functions/little_endian.js";
48
+ import { readBytesAsString } from "./src/utils/byte_functions/string.js";
49
+ import { readVariableLengthQuantity } from "./src/utils/byte_functions/variable_length_quantity.js";
47
50
  import { consoleColors } from "./src/utils/other.js";
48
51
  import { inflateSync } from "./src/externals/fflate/fflate.min.js";
49
52
 
@@ -55,6 +58,9 @@ const SpessaSynthCoreUtils = {
55
58
  SpessaSynthGroupCollapsed,
56
59
  SpessaSynthGroupEnd,
57
60
  readBytesAsUintBigEndian,
61
+ readLittleEndian,
62
+ readBytesAsString,
63
+ readVariableLengthQuantity,
58
64
  inflateSync
59
65
  };
60
66
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spessasynth_core",
3
- "version": "1.1.8",
3
+ "version": "3.26.0",
4
4
  "description": "MIDI and SoundFont2/DLS library with no compromises",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -27,8 +27,5 @@ export function sendPresetList()
27
27
  }
28
28
  });
29
29
  }
30
- this.processorInitialized.then(() =>
31
- {
32
- this.callEvent("presetlistchange", mainFont);
33
- });
30
+ this.callEvent("presetlistchange", mainFont);
34
31
  }
@@ -380,6 +380,12 @@ class SpessaSynthProcessor
380
380
  this.currentSynthTime = initialTime;
381
381
  this.sampleRate = sampleRate;
382
382
 
383
+ this.isFullyReady = false;
384
+ this.processorInitialized.then(() =>
385
+ {
386
+ this.isFullyReady = true;
387
+ });
388
+
383
389
  /**
384
390
  * Sample time in seconds
385
391
  * @type {number}
@@ -400,7 +406,7 @@ class SpessaSynthProcessor
400
406
  this.soundfontManager = new WorkletSoundfontManager(
401
407
  soundfont
402
408
  );
403
-
409
+ this.sendPresetList();
404
410
  this.getDefaultPresets();
405
411
 
406
412
 
@@ -422,8 +428,6 @@ class SpessaSynthProcessor
422
428
  {
423
429
  this.applySynthesizerSnapshot(snapshot);
424
430
  }
425
-
426
- this.sendPresetList();
427
431
  this.postReady();
428
432
  }
429
433