+ 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

14th Dec 2022, 6:48 AM
Creative Creations 1
Creative Creations 1 - avatar
3 Respuestas
+ 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.
14th Dec 2022, 2:03 PM
Ausgrindtube
Ausgrindtube - avatar
+ 1
I have gone there before
14th Dec 2022, 1:01 PM
Creative Creations 1
Creative Creations 1 - avatar