Unix Sound Problems
- To: mathgroup at smc.vnet.net
- Subject: [mg24101] Unix Sound Problems
- From: Andre Heinemann <andre at aflo4.ifw-dresden.de>
- Date: Tue, 27 Jun 2000 00:51:55 -0400 (EDT)
- Organization: IFW
- Sender: owner-wri-mathgroup at wolfram.com
Hi, I have some Problems with the Sound under Digital Unix Here a example: I create a sound object (s1)first: s1 = Play[Sin[880 Pi t], {t, 0, 10}]; Play and "Friends" do'nt work on my Unix OS (Why ???) so I'm going to export the sound object into a file: Export["/myhome/tmp/mysound.wav", Show[s1], "WAV"] and play it with the decsound command line executable: ! "/usr/bin/mme/decsound -play /myhome/tmp/mysound.wav" Ok it works - I can here the sound (-: Now I created a module: MySound[sound_] := Module[{}, Export["/myhome/tmp/mysound.wav", Show[sound], "WAV"]; ! "/usr/bin/mme/decsound -play /myhome/andre/tmp/mysound.wav" ] MySound[s1] where the two lines are taken from above, but it doesn't work. And I can't see the reason, so please help me. I am also intrested in the reason, why I had to make all these thinks for listening a simple Sound. PS I tested some "work arounds" with sound.m from the mathematica FAQ's but it doesn't work. MFG Andre -- +-----------------------------------+-----------------------------+ | mobil tel. -------------- | Andre Heinemann | | priv. tel. (0351) 25 23 574 | Institut fuer Festkoerper- | | Tel.: (++49) (351) 4659 - 686 | und Werkstofforschung | | Fax: (++49) (351) 4659 - 452 | Helmholtzstr. 20, R2.140 | | email: a.heinemann at ifw-dresden.de | Postfach 27 00 16 | | | D-01171 Dresden (Germany) | +-----------------------------------+-----------------------------+