spessasynth_core 4.0.8 → 4.0.10
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 +11 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3558,7 +3558,8 @@ var MIDIBuilder = class extends BasicMIDI2 {
|
|
|
3558
3558
|
"MIDI format 2 is not supported in the MIDI builder. Consider using format 1."
|
|
3559
3559
|
);
|
|
3560
3560
|
}
|
|
3561
|
-
this.
|
|
3561
|
+
this.format = fullOptions.format;
|
|
3562
|
+
this.timeDivision = fullOptions.timeDivision;
|
|
3562
3563
|
this.binaryName = this.encoder.encode(fullOptions.name);
|
|
3563
3564
|
this.addNewTrack(fullOptions.name);
|
|
3564
3565
|
this.addSetTempo(0, fullOptions.initialTempo);
|
|
@@ -9612,13 +9613,6 @@ function systemExclusiveInternal(syx, channelOffset = 0) {
|
|
|
9612
9613
|
"synthDisplay",
|
|
9613
9614
|
Array.from(syx)
|
|
9614
9615
|
);
|
|
9615
|
-
SpessaSynthInfo(
|
|
9616
|
-
`%cRoland SC Display Dot Matrix via: %c${arrayToHexString(
|
|
9617
|
-
syx
|
|
9618
|
-
)}`,
|
|
9619
|
-
consoleColors.info,
|
|
9620
|
-
consoleColors.value
|
|
9621
|
-
);
|
|
9622
9616
|
} else {
|
|
9623
9617
|
notRecognized2();
|
|
9624
9618
|
}
|
|
@@ -11444,10 +11438,12 @@ function computeModulators(voice, sourceUsesCC = -1, sourceIndex = 0) {
|
|
|
11444
11438
|
if (sourceUsesCC === -1) {
|
|
11445
11439
|
modulatedGenerators.set(generators);
|
|
11446
11440
|
modulators.forEach((mod) => {
|
|
11447
|
-
modulatedGenerators[mod.destination]
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11441
|
+
modulatedGenerators[mod.destination] = Math.min(
|
|
11442
|
+
32767,
|
|
11443
|
+
Math.max(
|
|
11444
|
+
-32768,
|
|
11445
|
+
modulatedGenerators[mod.destination] + computeModulator(this.midiControllers, mod, voice)
|
|
11446
|
+
)
|
|
11451
11447
|
);
|
|
11452
11448
|
});
|
|
11453
11449
|
for (let gen = 0; gen < modulatedGenerators.length; gen++) {
|
|
@@ -11481,17 +11477,17 @@ function computeModulators(voice, sourceUsesCC = -1, sourceIndex = 0) {
|
|
|
11481
11477
|
if (mod.primarySource.isCC === sourceCC && mod.primarySource.index === sourceIndex || mod.secondarySource.isCC === sourceCC && mod.secondarySource.index === sourceIndex) {
|
|
11482
11478
|
const destination = mod.destination;
|
|
11483
11479
|
if (!computedDestinations.has(destination)) {
|
|
11484
|
-
|
|
11480
|
+
let outputValue = generators[destination];
|
|
11485
11481
|
computeModulator(this.midiControllers, mod, voice);
|
|
11486
11482
|
modulators.forEach((m) => {
|
|
11487
11483
|
if (m.destination === destination) {
|
|
11488
|
-
|
|
11484
|
+
outputValue += m.currentValue;
|
|
11489
11485
|
}
|
|
11490
11486
|
});
|
|
11491
11487
|
const limits = generatorLimits[destination];
|
|
11492
11488
|
modulatedGenerators[destination] = Math.max(
|
|
11493
11489
|
limits.min,
|
|
11494
|
-
Math.min(
|
|
11490
|
+
Math.min(outputValue, limits.max)
|
|
11495
11491
|
);
|
|
11496
11492
|
computedDestinations.add(destination);
|
|
11497
11493
|
}
|