Re: Display (was: psfix)
- To: mathgroup at smc.vnet.net
- Subject: [mg17056] Re: Display (was: psfix)
- From: pokornp at math.vscht.cz ()
- Date: Fri, 23 Apr 1999 02:32:03 -0400
- Organization: Ceske Vysoke Uceni Technicke, Praha
- References: <7f9iod$56i@smc.vnet.net> <7fe9s9$cqs@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
P.J. Hinton (paulh at wolfram.com) wrote:
: In article <7f9iod$56i at smc.vnet.net>, hans.steffani at e-technik.tu-chemnitz.de (Hans Steffani) writes:
: > The Helpbrowser says
: >
: > Display[channel, graphics, "format"] writes
: > graphics or sound in the specified format.
^^^^^
One would expect
Display ["hello.wav", Play [Sin[2*Pi*440*t], {t,0,1}], "WAV" ]
to make a wav file.
It does not. At least in my 3.0 version.
Is there some package or another tool to make something like this with sound ?
Thank you
Pavel Pokorny
Math Dept, Prague Institute of Chemical Technology
e-mail: Pavel.Pokorny at vscht.cz
http://staff.vscht.cz/mat/Pavel.Pokorny
: >
: > but this does not work.
: >
: > But I found out that I should be
: >
: > Display[string, graphics, "format"] writes
: > graphics or sound in the specified format.
: >
: > with string being the filename of the graphic file.
: What do you define as "does not work"? An example of a channel is a
: pipe, and this surely works on Unix versions of Mathematica.
: If you have either PBMPlus or netPBM installed on your system,
: try something like this:
: Plot[Sin[x], {x,0,2Pi},
: DisplayFunction :> (
: Display["!pnmsmooth | ppmtogif > testme.gif", #, "PBM"]&)]
: The plot is fed into psrender, which converts the graphic to a
: portable bitmap. It is then piped through two of the filter tools
: from the above toolkits to create a somewhat blurred gif.
: I believe that you can also use an OutputStream[] as a channel.
: --
: P.J. Hinton
: Mathematica Programming Group paulh at wolfram.com
: Wolfram Research, Inc. http://www.wolfram.com/~paulh/