MathGroup Archive 2000

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

Search the Archive

Re: Unix Sound Problems

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24132] Re: Unix Sound Problems
  • From: "P.J. Hinton" <paulh at wolfram.com>
  • Date: Wed, 28 Jun 2000 02:11:50 -0400 (EDT)
  • Organization: "Wolfram Research, Inc."
  • References: <8j9dmo$51l@smc.vnet.net> <Pine.LNX.4.10.10006270920510.796-100000@wabash.wolfram.com>
  • Sender: owner-wri-mathgroup at wolfram.com

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