You are browsing as a guest. Sign up (or log in) to start making projects!

DESMOS AUDIO

  • 1 Devlogs
  • 5 Total hours

play .wav files in desmos

Ship #1 Pending review

.wav to desmos converter shipped!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
I'm proud that it actually works, using numpy Fourier stuff was kinda hard
that's basically it
https://www.desmos.com/calculator/yccglkqkej

  • 1 devlog
  • 5h
Try project → See source code →
Open comments for this post

5h 25m 52s logged

Desmos audio player finished!!!!!!!!!!!!!!!!!
https://www.desmos.com/calculator/yccglkqkej

ok so I’m sure you’ve seen people make a bunch of stuff on Desmos, bad apple, minecraft, but somehow playing audio was like the one thing that hadn’t been done (from what I saw), so I decided to make desmos audio

All it is is a single python script. desmos only allows you to make sound by choosing frequencies to play instead of how .wav files work with holding the actual air pressure data. I could’ve used mp3s, since they were in the same format as desmos uses with frequencies, but I didn’t feel like learning how to decompress all the data, so I just went with wavs.

It works by using the Fourier Transform every fraction of a second to find the loudest frequencies and their volumes (I don’t actually know how the Fourier transform works, I’m still a junior lol, I just imported using numpy). Desmos freaks out if you have more than like 500 frequencies (most sounds have thousands) so I had to only play the loudest frequencies to make it work, although this means it isn’t as accurate.

I made the script easy for users so that you can customize the quality settings and the audio that is being played. I also made a template at https://www.desmos.com/calculator/yccglkqkej to make it easier too

(Note: the audio and video in the video shown are spliced together for less lag)

0
0
8

Delete project?

Are you sure you want to permanently delete this project? This action cannot be undone.

All devlogs, followers, and associated data will be removed.

Followers

Loading…