Message Boards Message Boards

0
|
2788 Views
|
0 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Audio sweeps with ListPlay - not the correct frequencies?

Posted 3 years ago

I am trying to make a program that replicates the THX sound, and I'm getting some surprising behavior from ListPlay - although it could be my understanding that is at fault. Consider the following code snippet:

ListPlay[Table[(0.2 Sin[2*Pi*(220 + (220*(s/8)))*s]) + (0.1 Sin[
      2*Pi*440*s]) + (0.1 Sin[2*Pi*220*s]), {s, 0, 8, 1/44100}], 
 SampleRate -> 44100]

I would expect this to generate three simultaneous sounds: a 220Hz sine wave, a 440Hz sine wave, and a sin wave that starts at 220Hz and slowly rises to 440Hz. Instead the rising tone rises well above 440Hz for reasons I do not understand. Is this an issue with my code/understanding of a rising tone, or an issue with ListPlay? the Spectrogram function can be used to visualize the issue.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract