spessasynth_lib 3.20.41 → 3.20.43

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.
@@ -22,6 +22,7 @@
22
22
  * @property {Int8Array} channelOctaveTuning - the channel's octave tuning in cents
23
23
  * @property {Int16Array} keyCentTuning - tuning of individual keys in cents
24
24
  * @property {boolean} isMuted - indicates whether the channel is muted
25
+ * @property {number} velocityOverride - overrides velocity if > 0 otherwise disabled
25
26
  * @property {boolean} drumChannel - indicates whether the channel is a drum channel
26
27
  */
27
28
  /**
@@ -65,6 +66,7 @@ export function sendSynthesizerSnapshot()
65
66
  channelTransposeKeyShift: channel.channelTransposeKeyShift,
66
67
  channelOctaveTuning: channel.channelOctaveTuning,
67
68
  keyCentTuning: channel.keyCentTuning,
69
+ velocityOverride: channel.velocityOverride,
68
70
  isMuted: channel.isMuted,
69
71
  drumChannel: channel.drumChannel
70
72
  }
@@ -126,6 +128,7 @@ export function applySynthesizerSnapshot(snapshot)
126
128
  channelObject.lockGSNRPNParams = channelSnapshot.lockVibrato;
127
129
  channelObject.channelTransposeKeyShift = channelSnapshot.channelTransposeKeyShift;
128
130
  channelObject.channelOctaveTuning = channelSnapshot.channelOctaveTuning;
131
+ channelObject.velocityOverride = channelSnapshot.velocityOverride;
129
132
 
130
133
  // restore preset and lock
131
134
  channelObject.lockPreset = false;
@@ -370,8 +370,8 @@ export function getWorkletVoices(channel,
370
370
  }
371
371
 
372
372
  // determine looping mode now. if the loop is too small, disable
373
- let loopStart = (sampleAndGenerators.sample.sampleLoopStartIndex / 2);
374
- let loopEnd = (sampleAndGenerators.sample.sampleLoopEndIndex / 2);
373
+ let loopStart = sampleAndGenerators.sample.sampleLoopStartIndex;
374
+ let loopEnd = sampleAndGenerators.sample.sampleLoopEndIndex;
375
375
  let loopingMode = generators[generatorTypes.sampleModes];
376
376
  /**
377
377
  * create the worklet sample
package/utils/loggin.js CHANGED
@@ -1,6 +1,6 @@
1
- let ENABLE_INFO = true;
1
+ let ENABLE_INFO = false;
2
2
  let ENABLE_WARN = true;
3
- let ENABLE_GROUP = true;
3
+ let ENABLE_GROUP = false;
4
4
  let ENABLE_TABLE = true;
5
5
 
6
6
  /**