How to use the Web Audio API to create sounds such as guitars, pianos, etc.

I want to use the Web Audio API to simulate a sound such as a guitar or something like that. I am currently using OscillatorNode to create sound by changing the frequency. But I have no idea which node to use and how to use it to make a sound like a guitar or something like that. Should I change the waveform or what? And How?

Here is some link https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html

Thank!

+4
source share
1 answer
+2

Source: https://habr.com/ru/post/1547458/


All Articles