spessasynth_core 4.3.11 → 4.3.12
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 +6 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -13102,7 +13102,7 @@ function noteOn(midiNote, velocity, emit = true) {
|
|
|
13102
13102
|
}
|
|
13103
13103
|
const black = this.synthCore.systemParameters.blackMIDIMode;
|
|
13104
13104
|
if (black && this.synthCore.voiceCount > 200 && velocity < 40 || black && velocity < 10 || this._systemParameters.isMuted || !this.preset) return;
|
|
13105
|
-
let realVelocity = clamp(velocity * (this._midiParameters.velocitySenseDepth / 64) + (this._midiParameters.velocitySenseOffset - 64) * 2, 0, 127);
|
|
13105
|
+
let realVelocity = clamp(Math.floor(velocity * (this._midiParameters.velocitySenseDepth / 64) + (this._midiParameters.velocitySenseOffset - 64) * 2), 0, 127);
|
|
13106
13106
|
let soundBankNote = midiNote + this.currentKeyShift;
|
|
13107
13107
|
if (midiNote > 127 || midiNote < 0) return;
|
|
13108
13108
|
const program = this.preset.program;
|
|
@@ -13338,10 +13338,12 @@ var DynamicModulatorManager = class {
|
|
|
13338
13338
|
const centeredNormalized = centeredValue / 64;
|
|
13339
13339
|
const normalizedNotCentered = data / 127;
|
|
13340
13340
|
switch (addr3 & 15) {
|
|
13341
|
-
case 0:
|
|
13342
|
-
|
|
13343
|
-
|
|
13341
|
+
case 0: {
|
|
13342
|
+
const v = Math.min(24, Math.max(-24, centeredValue));
|
|
13343
|
+
this.setModulator(source, isCC, GeneratorTypes.fineTune, v * 100, bipolar);
|
|
13344
|
+
SpessaLog.coolInfo(`Channel ${this.channel} ${sourceName} pitch control`, v, "semitones");
|
|
13344
13345
|
break;
|
|
13346
|
+
}
|
|
13345
13347
|
case 1:
|
|
13346
13348
|
this.setModulator(source, isCC, GeneratorTypes.initialFilterFc, centeredNormalized * 9600, bipolar);
|
|
13347
13349
|
SpessaLog.coolInfo(`Channel ${this.channel} ${sourceName} filter control`, centeredNormalized * 9600, "cents");
|