+ 1
How do I create sound using frequency in Js.
I am creating a game so I wanted to add a realistically generated sound system The game calculates the frequency but can't convert to sound so anyone know who to convert to sound? Code is https://code.sololearn.com/WmrYyE06VM6r/?ref=app
3 ответов
+ 1
Looking at your code and Scott D's first link, you're missing the "type" of sound it should output. Do you want a sine wave?
osc.type = "sine";
Also, what is the range you are producing for your variable V?
if it is under 100 Hz or above 20kHz, the human ear is unlikely to hear it.
+ 1
I have gone there before