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.
- package/@types/soundfont/basic_soundfont/basic_sample.d.ts +2 -2
- package/package.json +1 -1
- package/soundfont/basic_soundfont/basic_sample.js +2 -2
- package/soundfont/basic_soundfont/write_sf2/shdr.js +2 -2
- package/soundfont/dls/dls_sample.js +2 -2
- package/soundfont/dls/dls_zone.js +6 -6
- package/soundfont/read_sf2/samples.js +6 -6
- package/synthetizer/worklet_processor.min.js +8 -8
- package/synthetizer/worklet_system/worklet_methods/snapshot.js +3 -0
- package/synthetizer/worklet_system/worklet_utilities/worklet_voice.js +2 -2
- package/utils/loggin.js +2 -2
|
@@ -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 =
|
|
374
|
-
let loopEnd =
|
|
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