spessasynth_core 4.1.4 → 4.1.6

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.d.ts CHANGED
@@ -783,7 +783,7 @@ declare const midiControllers: {
783
783
  readonly reverbDepth: 91;
784
784
  readonly tremoloDepth: 92;
785
785
  readonly chorusDepth: 93;
786
- readonly detuneDepth: 94;
786
+ readonly variationDepth: 94;
787
787
  readonly phaserDepth: 95;
788
788
  readonly dataIncrement: 96;
789
789
  readonly dataDecrement: 97;
@@ -2425,7 +2425,19 @@ declare class SynthesizerCore {
2425
2425
  /**
2426
2426
  * The master parameters of the synthesizer.
2427
2427
  */
2428
- masterParameters: MasterParameterType;
2428
+ masterParameters: {
2429
+ masterGain: number;
2430
+ masterPan: number;
2431
+ voiceCap: number;
2432
+ interpolationType: InterpolationType;
2433
+ midiSystem: SynthSystem;
2434
+ monophonicRetriggerMode: boolean;
2435
+ reverbGain: number;
2436
+ chorusGain: number;
2437
+ blackMIDIMode: boolean;
2438
+ transposition: number;
2439
+ deviceID: number;
2440
+ };
2429
2441
  /**
2430
2442
  * The current time of the synthesizer, in seconds.
2431
2443
  */
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
  }
@@ -792,7 +792,7 @@ var midiControllers = {
792
792
  reverbDepth: 91,
793
793
  tremoloDepth: 92,
794
794
  chorusDepth: 93,
795
- detuneDepth: 94,
795
+ variationDepth: 94,
796
796
  phaserDepth: 95,
797
797
  dataIncrement: 96,
798
798
  dataDecrement: 97,
@@ -4535,7 +4535,7 @@ var nonResettableCCs = /* @__PURE__ */ new Set([
4535
4535
  midiControllers.reverbDepth,
4536
4536
  midiControllers.tremoloDepth,
4537
4537
  midiControllers.chorusDepth,
4538
- midiControllers.detuneDepth,
4538
+ midiControllers.variationDepth,
4539
4539
  midiControllers.phaserDepth,
4540
4540
  midiControllers.soundVariation,
4541
4541
  midiControllers.filterResonance,
@@ -4548,7 +4548,16 @@ var nonResettableCCs = /* @__PURE__ */ new Set([
4548
4548
  midiControllers.vibratoDelay,
4549
4549
  midiControllers.soundController10,
4550
4550
  midiControllers.polyModeOn,
4551
- midiControllers.monoModeOn
4551
+ midiControllers.monoModeOn,
4552
+ midiControllers.omniModeOn,
4553
+ midiControllers.omniModeOff,
4554
+ // RP-15: Do not reset RPN or NRPN
4555
+ midiControllers.dataEntryMSB,
4556
+ midiControllers.dataEntryLSB,
4557
+ midiControllers.nonRegisteredParameterLSB,
4558
+ midiControllers.nonRegisteredParameterMSB,
4559
+ midiControllers.registeredParameterLSB,
4560
+ midiControllers.registeredParameterMSB
4552
4561
  ]);
4553
4562
  function resetControllersRP15Compliant() {
4554
4563
  this.channelOctaveTuning.fill(0);
@@ -12493,7 +12502,8 @@ var SynthesizerCore = class {
12493
12502
  /**
12494
12503
  * The master parameters of the synthesizer.
12495
12504
  */
12496
- masterParameters = DEFAULT_MASTER_PARAMETERS;
12505
+ masterParameters = { ...DEFAULT_MASTER_PARAMETERS };
12506
+ // Copy, not set!
12497
12507
  /**
12498
12508
  * The current time of the synthesizer, in seconds.
12499
12509
  */