spessasynth_core 4.0.8 → 4.0.9
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 +9 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9612,13 +9612,6 @@ function systemExclusiveInternal(syx, channelOffset = 0) {
|
|
|
9612
9612
|
"synthDisplay",
|
|
9613
9613
|
Array.from(syx)
|
|
9614
9614
|
);
|
|
9615
|
-
SpessaSynthInfo(
|
|
9616
|
-
`%cRoland SC Display Dot Matrix via: %c${arrayToHexString(
|
|
9617
|
-
syx
|
|
9618
|
-
)}`,
|
|
9619
|
-
consoleColors.info,
|
|
9620
|
-
consoleColors.value
|
|
9621
|
-
);
|
|
9622
9615
|
} else {
|
|
9623
9616
|
notRecognized2();
|
|
9624
9617
|
}
|
|
@@ -11444,10 +11437,12 @@ function computeModulators(voice, sourceUsesCC = -1, sourceIndex = 0) {
|
|
|
11444
11437
|
if (sourceUsesCC === -1) {
|
|
11445
11438
|
modulatedGenerators.set(generators);
|
|
11446
11439
|
modulators.forEach((mod) => {
|
|
11447
|
-
modulatedGenerators[mod.destination]
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11440
|
+
modulatedGenerators[mod.destination] = Math.min(
|
|
11441
|
+
32767,
|
|
11442
|
+
Math.max(
|
|
11443
|
+
-32768,
|
|
11444
|
+
modulatedGenerators[mod.destination] + computeModulator(this.midiControllers, mod, voice)
|
|
11445
|
+
)
|
|
11451
11446
|
);
|
|
11452
11447
|
});
|
|
11453
11448
|
for (let gen = 0; gen < modulatedGenerators.length; gen++) {
|
|
@@ -11481,17 +11476,17 @@ function computeModulators(voice, sourceUsesCC = -1, sourceIndex = 0) {
|
|
|
11481
11476
|
if (mod.primarySource.isCC === sourceCC && mod.primarySource.index === sourceIndex || mod.secondarySource.isCC === sourceCC && mod.secondarySource.index === sourceIndex) {
|
|
11482
11477
|
const destination = mod.destination;
|
|
11483
11478
|
if (!computedDestinations.has(destination)) {
|
|
11484
|
-
|
|
11479
|
+
let outputValue = generators[destination];
|
|
11485
11480
|
computeModulator(this.midiControllers, mod, voice);
|
|
11486
11481
|
modulators.forEach((m) => {
|
|
11487
11482
|
if (m.destination === destination) {
|
|
11488
|
-
|
|
11483
|
+
outputValue += m.currentValue;
|
|
11489
11484
|
}
|
|
11490
11485
|
});
|
|
11491
11486
|
const limits = generatorLimits[destination];
|
|
11492
11487
|
modulatedGenerators[destination] = Math.max(
|
|
11493
11488
|
limits.min,
|
|
11494
|
-
Math.min(
|
|
11489
|
+
Math.min(outputValue, limits.max)
|
|
11495
11490
|
);
|
|
11496
11491
|
computedDestinations.add(destination);
|
|
11497
11492
|
}
|