MathGroup Archive 2011

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

Search the Archive

Re: Rudimentary Export Question

Hi Dean,

It works for me. I get a file that plays in Windows media player.

Mathematica is clearly trying to write, not read. Look at the
OpenWrite part of the error message.

Could it be some rights problem? Do you have the rights to write in
that directory?

Cheers -- Sjoerd

On Jan 12, 10:06 am, Dean <deanrosent... at> wrote:
> This question is about exporting to .mid using the Export symbol.  Does
> Mathematica really create a file out of thin air from data?  A simple
> example, I get:
> Export["cnote.mid", Sound[{SoundNote["C"], SoundNote["G"]}]]
> OpenWrite::"noopen" : "Cannot open "/Users/mydrive/cnote.mid". \
> $Failed
> It looks like it's *looking* for a file rather than looking to write one.
>  Any suggestions?  Thanks!
> Please send direct responses: deanrosent... at
> Best,
> Dean
> --
> Dean Rosenthal
> cell: 646 733 6966www.deanrosenthal.org

  • Prev by Date: Re: Units question
  • Next by Date: Replacing result with earlier variable definition
  • Previous by thread: Re: Rudimentary Export Question
  • Next by thread: Parallelize & Functions That Remember Values They Have Found