Fourier Synthesizer Web Component
npm install fourier-synth
Firefox (as of v112) and Safari (as of v16.3) do not support the disable normalization feature of the Web Audio API. As a result, the DC Offset control will not work properly - it is not possible to "clip" the generated wave where it exceeds the maximum level (the limits of the graph area). For best results use a different browser such as Edge, Opera, or another Chromium variant. For more information on browser support see the MDN documentation.
section of your page. Replace https://my.domain/server-path/fourier-synth/ shown below with the path where the component files are stored on your server or elsewhere.
html
`
$3
Download one of the deploy files fourier-synth@1.1.1.zip or fourier-synth@1.1.1.tgz, and extract the contents. (The tgz file contains a tar file that needs to be extracted.) The extracted fourier-synth folder should be copied to your server including all contents. The name of the folder is not important, but it must match the src value of your page's script tag, and the file names must not be altered.
$3
If you don't need guaranteed availability, you can use the component from unpkg.com.
`html
`
Element tag
Add the element somewhere on your web page. Remember to use style or layout to control the size of the component.
`html
Please enable JavaScript to use Fourier Synthesizer
``