Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Bubobubobubobubo/Topos
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Nov 14, 2023
2 parents 3b6f02b + 5802f68 commit 9dc6456
Show file tree
Hide file tree
Showing 2 changed files with 73 additions and 48 deletions.
110 changes: 64 additions & 46 deletions dev-dist/sw.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions src/classes/SoundEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -435,8 +435,15 @@ 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
// TODO: Should filter relevant fields for superdough
// const filteredEvent = filterObject(event, ["analyze","note","dur","freq","s"]);
const filteredEvent = event;
// No need for note if there is freq
if(filteredEvent.freq) { delete filteredEvent.note; }
superdough(filteredEvent, this.nudge - this.app.clock.deviation, filteredEvent.dur);
}
};
}

0 comments on commit 9dc6456

Please sign in to comment.