MathGroup Archive 2000

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

Search the Archive

Re: Unix Sound Problems


On Tue, 27 Jun 2000, P.J. Hinton wrote:

This is a correction to this code snippet in my prior posting:

> mySound[snd_Sound] := 
>   Module[
>     {tmpnam = Close[OpenTemporary[]]},
>     Export[tmpnam, sound, "WAV"];
>     Run["/usr/bin/mme/decsound -play", tmpnam];
>     DeleteFile[tmpnam];
>     Return[snd]
>   ]

The second argument to export should be snd, not sound.

mySound[snd_Sound] :=
  Module[
    {tmpnam = Close[OpenTemporary[]]},
    Export[tmpnam, snd, "WAV"];
    Run["/usr/bin/mme/decsound -play", tmpnam];
    DeleteFile[tmpnam];
    Return[snd]
  ]

I apologize for the confusion.

-- 
P.J. Hinton
Mathematica Programming Group           paulh at wolfram.com
Wolfram Research, Inc.



  • Prev by Date: AIX 4.3 Mathematica MathKernel Out of Memory
  • Next by Date: I'm lacking machine-sized real numbers again, help please.
  • Previous by thread: Unix Sound Problems
  • Next by thread: Re: Unix Sound Problems