Tim (@dev_tgt) header
Tim (@dev_tgt) profile picture

software engineer @ seattle kraken h.ops. r&d | code | music | espresso | building anything / everything | here for the tech

Portland, Or
Joined November 2021
4/4: you can make it reactive by adding input controls and variables el.const is a way of keying values, so the audio engine knows that when these values are changed they still belong to the same Audio Node.
1
3/4: and then create a simple audio synth component. This will make a simple tone if you navigate to it on your dev server!
1
2/4: create a button to handle toggling the WebAudio context. WebAudioAPI requires that the context be suspended by default and that the user must click a button to make sound.
1
1/4: in your svelte app: initialize and export AudioContext (WebAudioAPI) and WebRenderer (ElementaryAudio) using svelte stores
1