Skip to content

Commit

Permalink
Remove excess superdough filtering for now
Browse files Browse the repository at this point in the history
  • Loading branch information
amiika committed Nov 13, 2023
1 parent a83494d commit 5802f68
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 40 deletions.
39 changes: 1 addition & 38 deletions dev-dist/sw.js

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

2 changes: 1 addition & 1 deletion dev-dist/sw.js.map

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

4 changes: 3 additions & 1 deletion src/classes/SoundEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,9 @@ export class SoundEvent extends AudibleEvent {

for (const event of events) {
// Filter non superdough parameters
const filteredEvent = filterObject(event, ["analyze","note","dur","freq","s"]);
// 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);
Expand Down

0 comments on commit 5802f68

Please sign in to comment.