spessasynth_core 4.3.0 → 4.3.1
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 +21 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1520,6 +1520,24 @@ var MIDIUtils = class MIDIUtils {
|
|
|
1520
1520
|
default: return OTHER;
|
|
1521
1521
|
case NonRegisteredMSB.partParameter: switch (lsb) {
|
|
1522
1522
|
default: return OTHER;
|
|
1523
|
+
case NonRegisteredLSB.vibratoRate: return {
|
|
1524
|
+
type: "Controller Change",
|
|
1525
|
+
channel,
|
|
1526
|
+
controller: MIDIControllers.vibratoRate,
|
|
1527
|
+
value: value >> 7
|
|
1528
|
+
};
|
|
1529
|
+
case NonRegisteredLSB.vibratoDepth: return {
|
|
1530
|
+
type: "Controller Change",
|
|
1531
|
+
channel,
|
|
1532
|
+
controller: MIDIControllers.vibratoDepth,
|
|
1533
|
+
value: value >> 7
|
|
1534
|
+
};
|
|
1535
|
+
case NonRegisteredLSB.vibratoDelay: return {
|
|
1536
|
+
type: "Controller Change",
|
|
1537
|
+
channel,
|
|
1538
|
+
controller: MIDIControllers.vibratoDelay,
|
|
1539
|
+
value: value >> 7
|
|
1540
|
+
};
|
|
1523
1541
|
case NonRegisteredLSB.tvfCutoffFrequency: return {
|
|
1524
1542
|
type: "Controller Change",
|
|
1525
1543
|
channel,
|
|
@@ -19301,7 +19319,7 @@ var SynthesizerCore = class {
|
|
|
19301
19319
|
/**
|
|
19302
19320
|
* Voices of this synthesizer, as a fixed voice pool.
|
|
19303
19321
|
*/
|
|
19304
|
-
voices;
|
|
19322
|
+
voices = [];
|
|
19305
19323
|
/**
|
|
19306
19324
|
* All MIDI channels of the synthesizer.
|
|
19307
19325
|
*/
|
|
@@ -19490,7 +19508,6 @@ var SynthesizerCore = class {
|
|
|
19490
19508
|
this.delayInput = new Float32Array(bufSize);
|
|
19491
19509
|
for (const insertion of INSERTION_EFFECT_LIST) this.registerInsertionProcessor(insertion);
|
|
19492
19510
|
this.resetInsertionParams();
|
|
19493
|
-
this.voices = [];
|
|
19494
19511
|
this.allocateNewVoices(this.systemParameters.voiceCap);
|
|
19495
19512
|
}
|
|
19496
19513
|
/**
|
|
@@ -19565,11 +19582,11 @@ var SynthesizerCore = class {
|
|
|
19565
19582
|
}
|
|
19566
19583
|
}
|
|
19567
19584
|
if (this.systemParameters.autoAllocateVoices) {
|
|
19585
|
+
SpessaLog.info(`%cAllocating a new voice, total count %c${this.systemParameters.voiceCap + 1}.`, ConsoleColors.info, ConsoleColors.value);
|
|
19568
19586
|
this.allocateNewVoices(1);
|
|
19569
19587
|
const v = this.voices[this.voices.length - 1];
|
|
19570
|
-
this.voices.push(v);
|
|
19571
19588
|
this.systemParameters.voiceCap++;
|
|
19572
|
-
|
|
19589
|
+
v.priority = Infinity;
|
|
19573
19590
|
return v;
|
|
19574
19591
|
}
|
|
19575
19592
|
this.assignVoicePriorities();
|