Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Sound playback: t vs Floor[t]' topicStudent Support Forum > General > "Sound playback: t vs Floor[t]"

Next Comment >Help | Reply To Topic
Author Comment/Response
Ziv
10/06/10 4:47pm

I have the following Mathematica code:

wave[n_,t_] := Sin[k(b^n)t]

Play[wave[t,t] + wave[Floor[t],t], {t,0,6}]

When I play back the sound, the smooth line (wave[t,t]) rises faster than the stepwise one (wave[Floor[t],t]). This is even true when t is an integer. Is there an explanation, either mathematical or to do with Mathematica itself?

Note: k is 880pi and b is the 12th root of 2 so that wave[0,t] is the note A, wave[1,t] is Bb, etc., but I've had the same occurrence with other constants.


URL: ,

Subject (listing for 'Sound playback: t vs Floor[t]')
Author Date Posted
Sound playback: t vs Floor[t] Ziv 10/06/10 4:47pm
Re: Sound playback: t vs Floor[t] Peter Pein 10/07/10 07:03am
Re: Re: Sound playback: t vs Floor[t] Ziv 10/07/10 9:26pm
Next Comment >Help | Reply To Topic