Fix for sound param in ziffers
This commit is contained in:
@ -82,7 +82,7 @@ define(['./workbox-b7fccfec'], (function (workbox) { 'use strict';
|
||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||
}, {
|
||||
"url": "index.html",
|
||||
"revision": "0.48a0i720j7o"
|
||||
"revision": "0.fcmga3d8u2"
|
||||
}], {});
|
||||
workbox.cleanupOutdatedCaches();
|
||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -254,7 +254,7 @@ export class SoundEvent extends AudibleEvent {
|
||||
roomfade: ["roomfade", "rfade"],
|
||||
roomlp: ["roomlp", "rlp"],
|
||||
roomdim: ["roomdim", "rdim"],
|
||||
sound: ["sound", "s"],
|
||||
sound: ["s","sound"],
|
||||
size: (value: number) => {
|
||||
this.updateValue("roomsize", value);
|
||||
return this;
|
||||
@ -435,8 +435,13 @@ export class SoundEvent extends AudibleEvent {
|
||||
const events = objectWithArraysToArrayOfObjects(this.values, [
|
||||
"parsedScale",
|
||||
]);
|
||||
|
||||
for (const event of events) {
|
||||
superdough(event, this.nudge - this.app.clock.deviation, event.dur);
|
||||
// Filter non superdough parameters
|
||||
const filteredEvent = filterObject(event, ["analyze","note","dur","freq","s"]);
|
||||
// No need for note if there is freq
|
||||
if(filteredEvent.freq) { delete filteredEvent.note; }
|
||||
superdough(filteredEvent, this.nudge - this.app.clock.deviation, filteredEvent.dur);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user