[Mathematica, Sound, loop] How to PlaySound in a loop?

From: nospam nospam (nospam_please_at_nospam.com)
Date: 12/01/04


Date: Wed, 01 Dec 2004 23:26:58 GMT


Hello;

When I call this function

       sound = ListPlay[mysound]

when inside a While[]or Do loop, i.e. something like this:

loop
    get file name from user <--- here user enters sound file name
    read file name
    ListPlay[]
  end loop

Mathematica does not wait for sound to be fully played and
it gets back to the statment waiting for user to enter a new
sound file name to be played.

If I put the ListPlay[] command outside the loop, in a
separate cell, the sound plays fine.

is there a way to delay the loop untill the sound is played
completely?

thank you,
--nospam



Relevant Pages

  • Re: which 64 bit Linux distro for best OS/2 eCS compatibility?
    ... If you are having loops in the sound (when audio is played). ... because of the loop and because the irqstat/acpistat doesn't show any ... I have to blame UniAud. ...
    (comp.os.os2.misc)
  • Re: Rocktron Xpression
    ... no i had it ithe loop and then leter after thekain outs of a mesa ... It's a Low-Z device and needs to be in a Low-Z FX loop or ... that would account for the dullness in the sound that you experienced. ... top of that cheap converters these days still sound pretty good. ...
    (rec.music.makers.guitar.jazz)
  • Re: Block mouse and keyboard input
    ... instead of StripQueue() in your example, ... Play sound in the new thread ... Its being called inside of a loop ... that later does some other stuff after calling PlaySound. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: I need some way to sustain the tone of a glockenspiel
    ... program called Seamless Looper that helps find loop points ... and it doesn't sound any better than if you just took one. ... You might glue a pietzo crystal to the underside of each bar in the glockenspiel, and then feedback the audio signal from each bar to the crystal of that particular bar, creating a sort of combined electrical and mechanical reedback, which, if properly adjusted could sustain the sound indefinitely. ...
    (rec.audio.pro)
  • Re: which 64 bit Linux distro for best OS/2 eCS compatibility?
    ... If you are having loops in the sound (when audio is played). ... because of the loop and because the irqstat/acpistat doesn't show any ... If there is a developer, ...
    (comp.os.os2.misc)