Fix for sound param in ziffers

This commit is contained in:
2023-11-13 01:53:39 +02:00
parent 8e28eb5177
commit e9245c92ef
3 changed files with 9 additions and 4 deletions

View File

@ -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

View File

@ -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);
}
};
}