Bugfix in web release
This commit is contained in:
parent
c5987267e6
commit
222093b4cc
@ -33,7 +33,7 @@ namespace _impl {
|
||||
|
||||
template<typename Sample=float, class RandomEngine=void>
|
||||
struct SignalsmithStretch {
|
||||
static constexpr size_t version[3] = {1, 3, 1};
|
||||
static constexpr size_t version[3] = {1, 3, 2};
|
||||
|
||||
SignalsmithStretch() : randomEngine(std::random_device{}()) {}
|
||||
SignalsmithStretch(long seed) : randomEngine(seed) {}
|
||||
|
||||
@ -91,15 +91,11 @@ function registerWorkletProcessor(Module, audioNodeKey) {
|
||||
latestSegment = this.timeMap.pop();
|
||||
}
|
||||
|
||||
let obj = {
|
||||
active: latestSegment.active,
|
||||
let obj = Object.assign({}, latestSegment);
|
||||
Object.assign(obj, {
|
||||
input: null,
|
||||
output: outputTime,
|
||||
rate: latestSegment.rate,
|
||||
semitones: latestSegment.semitones,
|
||||
loopStart: latestSegment.loopStart,
|
||||
loopEnd: latestSegment.loopEnd
|
||||
};
|
||||
});
|
||||
Object.assign(obj, objIn);
|
||||
if (obj.input === null) {
|
||||
let rate = (latestSegment.active ? latestSegment.rate : 0);
|
||||
|
||||
@ -92,15 +92,11 @@ function registerWorkletProcessor(Module, audioNodeKey) {
|
||||
latestSegment = this.timeMap.pop();
|
||||
}
|
||||
|
||||
let obj = {
|
||||
active: latestSegment.active,
|
||||
let obj = Object.assign({}, latestSegment);
|
||||
Object.assign(obj, {
|
||||
input: null,
|
||||
output: outputTime,
|
||||
rate: latestSegment.rate,
|
||||
semitones: latestSegment.semitones,
|
||||
loopStart: latestSegment.loopStart,
|
||||
loopEnd: latestSegment.loopEnd
|
||||
};
|
||||
});
|
||||
Object.assign(obj, objIn);
|
||||
if (obj.input === null) {
|
||||
let rate = (latestSegment.active ? latestSegment.rate : 0);
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "signalsmith-stretch",
|
||||
"version": "1.3.1",
|
||||
"version": "1.3.2",
|
||||
"description": "JS/WASM release of the Signalsmith Stretch library",
|
||||
"main": "SignalsmithStretch.mjs",
|
||||
"exports": {
|
||||
|
||||
@ -72,15 +72,11 @@ function registerWorkletProcessor(Module, audioNodeKey) {
|
||||
latestSegment = this.timeMap.pop();
|
||||
}
|
||||
|
||||
let obj = {
|
||||
active: latestSegment.active,
|
||||
let obj = Object.assign({}, latestSegment);
|
||||
Object.assign(obj, {
|
||||
input: null,
|
||||
output: outputTime,
|
||||
rate: latestSegment.rate,
|
||||
semitones: latestSegment.semitones,
|
||||
loopStart: latestSegment.loopStart,
|
||||
loopEnd: latestSegment.loopEnd
|
||||
};
|
||||
});
|
||||
Object.assign(obj, objIn);
|
||||
if (obj.input === null) {
|
||||
let rate = (latestSegment.active ? latestSegment.rate : 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user