[Mathematica, Sound, loop] How to PlaySound in a loop?
From: nospam nospam (nospam_please_at_nospam.com)
Date: 12/01/04
- Next message: Titus Piezas III: "Solving Solvable Sextics Using Decomposition"
- Previous message: Robert Israel: "Re: Maple bugs: A dangerous, misleading ad statement at the main Maplesoft's site"
- Next in thread: nospam nospam: "Re: [Mathematica, Sound, loop] How to PlaySound in a loop?"
- Reply: nospam nospam: "Re: [Mathematica, Sound, loop] How to PlaySound in a loop?"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Titus Piezas III: "Solving Solvable Sextics Using Decomposition"
- Previous message: Robert Israel: "Re: Maple bugs: A dangerous, misleading ad statement at the main Maplesoft's site"
- Next in thread: nospam nospam: "Re: [Mathematica, Sound, loop] How to PlaySound in a loop?"
- Reply: nospam nospam: "Re: [Mathematica, Sound, loop] How to PlaySound in a loop?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|