GoogleChromeLabs / web-audio-samples

Web Audio API samples by Chrome Web Audio Team
https://bit.ly/web-audio-samples
Apache License 2.0
686 stars 197 forks source link

AudioWorklet DSP Playground #389

Open Kizjkre opened 1 month ago

Kizjkre commented 1 month ago

AudioWorklet DSP Playground

Feature list

Necessary Features

Nice to Haves

Tech Stack

Fully client-side

Considerations

Kizjkre commented 1 month ago

Development here: https://github.com/Kizjkre/rainfly

hoch commented 1 month ago

@Kizjkre Why are we doing the development outside of this repository? I think we should consider creating a new directory for this project.

terryzfeng commented 1 month ago

Would putting this in it's own directory still allow having it's own package.json file? Or would it need to merge with the root-level one? I'm not super familiar...

hoch commented 1 month ago

I think that should be okay. Not sure how to include the top-level building process. (i.e. eleventy)

I believe we can figure out as we go, so let's unblock by iterating under the rainfly directory. :)

terryzfeng commented 1 month ago

New code execution contender: new Function(code, params) as opposed to eval. It looks like Canopy uses Function under the hood. Initial reading seems like eval is current/global scope, and Function creates a dedicated scope with explicit param passing

https://stackoverflow.com/questions/55074927/eval-vs-function-constructor https://www.geeksforgeeks.org/eval-vs-function-in-javascript/