Ok, as many of you know, a square wave can be thought of as a wave with the sum of an infinite series of odd-order harmonics of the fundamental. However, my question is, if you were to grab these harmonics and change their phase, what would the wave potentially look like, and would it SOUND the same? This is something I've always been pretty curious about. A mathematical and/or physiological explanation would be awesome, if possible.
Also, what are the relative amplitudes of the nth harmonics?
I posted a similar simulation, with the added bonus of creating .wav files that you can actually listen to.The topic seems to have strayed, but I'm going to go back to the OP.
Here's the square wave series:
![]()
If you have a graphing calculator, program, or even a spreadsheet, you can graph it and add in phase changes to the harmonic of your choice to see the difference. The mathematical explanation is that the perfect square wave can be described as a sum of individual sine waves of particular amplitudes; therefore, if one of those sine waves is shifted in phase, the amplitude of it will be altered relative to the other harmonics, which changes the shape of the summed output. Which harmonic is shifted, and by how much, determines the extent of the distortion. In the attached pic I've graphed the first 11 harmonics; the top graph is normal, the bottom has the third harmonic shifted by 30% of the period. You can see the differences; these differences change as the phase shift changes, but if you shift a higher harmonic by the same amount, the distortion is less because it has a lower relative amplitude in the sum.
Well, yeah, you'll hear differences between those, because those have entirely different components. You can see that, when you choose the different waveforms, the sliders underneath will adjust themselves, so you can see what frequencies and at what amplitude made up that particular composite waveform. It's really nifty. I like how you can still tell what the fundamental frequency is, with the different waveforms.I heard a huge difference between sine, sawtooth and square waves.
My stereo computer speakers caused harmonic cancellation due to different path lengths to my ears so I had to unplug one speaker.
And quite possibly with cheap PC speakers one might have been wired out of phase. Your sound card driver might have an option to reverse the phase of one side?I heard a huge difference between sine, sawtooth and square waves.
My stereo computer speakers caused harmonic cancellation due to different path lengths to my ears so I had to unplug one speaker.