MathGroup Archive 2002

[Date Index] [Thread Index] [Author Index]

Search the Archive

timing with Play

  • To: mathgroup at
  • Subject: [mg36789] timing with Play
  • From: Erich Neuwirth <erich.neuwirth at>
  • Date: Wed, 25 Sep 2002 01:51:28 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

PlayTone[F_, dur_] := Play[Sin[2*Pi*F*t], {t, 0, dur}]
allows me to play a sine wave of frequency F and duration dur

PlaySeq[L_, dur_] := Do[PlayTone[L[[i]], dur], {i, Length[L]}]

should allow me to play a sequence of tones
with a given list of frequencies L
and all the same duration dur.

It does not work at least in 4.1

all tones but the last one are much shorter than dur.

any help?

Erich Neuwirth, Computer Supported Didactics Working Group
Visit our SunSITE at
Phone: +43-1-4277-38624 Fax: +43-1-4277-9386

  • Prev by Date: RE: Mathematica 3.0
  • Next by Date: Re: How to export plain text numbers!?
  • Previous by thread: Printing Scripts
  • Next by thread: Re: timing with Play