spessasynth_core 4.1.3 → 4.1.5

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/dist/index.js CHANGED
@@ -96,7 +96,7 @@ function readBinaryString(dataArray, bytes = dataArray.length, offset = 0) {
96
96
  if (byte === 0) {
97
97
  return string;
98
98
  }
99
- string += String.fromCodePoint(byte);
99
+ string += String.fromCharCode(byte);
100
100
  }
101
101
  return string;
102
102
  }
@@ -8067,6 +8067,7 @@ var Voice = class {
8067
8067
  this.isActive = true;
8068
8068
  this.isInRelease = false;
8069
8069
  this.hasRendered = false;
8070
+ this.isHeld = false;
8070
8071
  this.releaseStartTime = Infinity;
8071
8072
  this.pressure = 0;
8072
8073
  this.channel = channel;
@@ -13000,6 +13001,10 @@ var SynthesizerCore = class {
13000
13001
  */
13001
13002
  assignVoicePriorities() {
13002
13003
  if (this.lastPriorityAssignmentTime === this.currentTime) return;
13004
+ SpessaSynthInfo(
13005
+ "%cPolyphony exceeded, stealing voices",
13006
+ consoleColors.warn
13007
+ );
13003
13008
  this.lastPriorityAssignmentTime = this.currentTime;
13004
13009
  const cap = this.masterParameters.voiceCap;
13005
13010
  for (let i = 0; i < cap; i++) {