-3

I am trying to make some noises with javascript so :

What i want :

is there a way in javascript to generate a continuous series of beeps in increasing amplitude and export it into a WAV file?

What i've done:

i checked this link but it was about working with WebApi and this is not what i want.

7
  • Sure... you'll have to create the file from a very low-level though, and deal with raw byte buffers. Commented Jan 16, 2020 at 16:24
  • @user1538301 Ok, but can you help me where should i start ? Commented Jan 16, 2020 at 16:25
  • @user1538301 I know but you can help me where should i search for it and where could i find a way for dealing with this problem Commented Jan 16, 2020 at 16:27
  • You should look at the answer provided. He's provided a link to the specification as well as a probably more feasible alternative if you're willing to get down and dirty with cross-compilation. Commented Jan 16, 2020 at 16:28
  • cross-compilation is pain in the ass =) I would generate from scratch =)) Commented Jan 16, 2020 at 16:29

1 Answer 1

3

Yes, WAVE-files are very simple.

  1. Create array of bytes (ByteArray) following this http://soundfile.sapp.org/doc/WaveFormat/ specification

  2. Send them as downloadable file.

Sign up to request clarification or add additional context in comments.

1 Comment

alternatively you can cross-compile sox into asm.js or WebAssembly =)

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.