Mathematica 9 is now available
Student Support Forum
Student Support Forum > General > > "Play[a sum of Harmonics]"

Post Reply:
Email Address:

Please send email when my message is replied to.

Url (optional):
Message: view original message?
Attachment (optional):
Please answer this:1+3 =

Original Message (ID '150228') By yehuda:
Well, Welcome to the world of "interference" If you try to visualize Plot[{Cos[880*t], Cos[880*2 t], Cos[880*t] + Cos[880*2 t]}, {t, 0, 0.01}] you notice that the second harmonic build in one peak and "destroy" in the following peak To have a "nice" music one need to write a "nicer" music Try to sound a square wave. It include "all the harmonics" but sound awful, and it is not your fault. This is just not a "pleasant" sound Play[SquareWave[880 t], {t, 0, 1}] yehuda