Submit your best music themed repls!

← Back to all posts
Musical Waves!!!
SnailPotato (10)



Welcome to my project, Musical Waves. I created this project by myself (not a group project). In this program, you will journey into a new world filled with magic and some other amazing stuff. Actually, in a much more realistic point of view, you will waste time staring in awe as you watch lines dance across your computer screen representing different types of oscillators generating sound wave patterns and listen as the beautiful world of music takes over your mind (more like the sound of the square oscillator getting stuck in your head for the rest of your life).


The wave displayer on the top represents the wave created from the overlapping sound waves, whereas the displayer below that shows you multiple sound waves drawn on top of each other. Note that this can only display four sound waves plus microphone input for performance purposes on the bottom wave displayer, however it still adds the sounds into the output sound.
When you click Add Oscillator or Import Audio, some controls will appear at the bottom of the screen.

Have Fun Experimenting!!!

The best thing about this project is that there are endless combinations to experiment with. Keep exploring different ideas and spend some time investigating the controls. Feel free to give me any suggestions or tell me if you run into a bug!

One More Thing

The microphone input only works if the program is opened in a separate tab, (not in this page)
Please feel free to look through the code if you are interested (there are a lot of helpful comments in my code)!

SnailPotato (10)

@EmmanuelMakana Thanks, I'm so excited to continue to make it even awsomer!

ebest (573)

517 is the ultimate number you'll see why

SnailPotato (10)

@ebest True, their frequency is just the right length, so they appear to stop, but they are really traveling super fast.
Frequencies of 500 and 501 combined are also pretty amazing.

ebest (573)

@SnailPotato Aha! I found something here. It's the wave interference pattern you find amazing. When two waves are both high, they combine into one bigger wave. When two waves are opposites (one high, one low) then they cancel each other out.

SnailPotato (10)

@ebest Exactly right! Even in musical instruments you can hear that pulsing noise if two instruments are out of tune by just a slight amount, its quite interesting.