Student Support Forum: 'Play[a sum of Harmonics]' topicStudent Support Forum > General > "Play[a sum of Harmonics]"

 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic
 Author Comment/Response Claudia 12/02/12 10:38am In Response To 'Re: Re: Re: Play[a sum of Harmonics]'---------Hi and thanks. The complete signal I am working with is actually Re[Sum[Exp[-.2 k] Exp[I*k*t*2 Pi], {k, 1, 20}]] Thus the first harmonics (as in most musical instruments) already have a larger amplitude compared with the following ones. I also tried different coefficients instead of Exp[-.2k], such as Exp[-.pk] varying p, 1/k, (20 - PrimePi[k]). These sounds are, as you expected, better than the ones without the falling coefficients but still they are not really nice to listen to. See (resp. hear) for example Manipulate[ Play[Re[ Sum[Exp[-p*k] Exp[220 I*k*t*2 Pi], {k, 1, 20}]], {t, 0, .5}, SampleDepth -> 16, SampleRate -> 20000], {p, 0, 2, .1}]) I also tried manipulating the phases of each harmonics, adding a coefficient Exp[I*f(k)], where f(k) is a function, but again: no angel's voices were to hear. I don't understand why in natural sounds the harmonics do not ruin the sound as much through interference as in these computer sounds. Or rather the other way round: I would like to know how to create nice sounds with harmonics (as in real life) in mathematica.. URL: ,

 Subject (listing for 'Play[a sum of Harmonics]') Author Date Posted Play[a sum of Harmonics] Claudia 11/28/12 11:06am Re: Play[a sum of Harmonics] yehuda 11/29/12 09:10am Re: Re: Play[a sum of Harmonics] Claudia 11/30/12 03:29am Re: Re: Re: Play[a sum of Harmonics] WILLIAM STEW... 12/01/12 10:09am Re: Re: Re: Re: Play[a sum of Harmonics] Claudia 12/02/12 10:38am Re: Re: Re: Re: Re: Play[a sum of Harmonics] William Stew... 12/04/12 10:50am
 < Previous Comment | Next Comment > Help | Reply To Comment | Reply To Topic