lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Import MIDI and ETF files in LilyPond


From: Mats Bengtsson
Subject: Re: How to Import MIDI and ETF files in LilyPond
Date: Fri, 16 May 2008 10:06:25 +0200
User-agent: Thunderbird 2.0.0.5 (X11/20070716)



Luc wrote:
under windows xp I get errors too with midi2ly when the filename contains
spaces like in yours - see yourself:

C:\>midi2ly "C:\Dokumente und
Einstellungen\user1\Anwendungsdaten\Bach-Brandenbu
rg 3 - 1- Oktav Seite1.mid"

Traceback (most recent call last):
  File "C:\Programme\LilyPondDevel\usr\bin\midi2ly.py", line 991, in ?
    main()
  File "C:\Programme\LilyPondDevel\usr\bin\midi2ly.py", line 989, in main
    convert_midi (f, o)
  File "C:\Programme\LilyPondDevel\usr\bin\midi2ly.py", line 810, in
convert_mid
i
    str = open (in_file).read ()
IOError: [Errno 2] No such file or directory: 'C:\\Dokumente'

So a solution could be to move that file to another directory and replace
the spaces in the filename by underscores or so.
Isn't it easier to use the folder where the file is placed, as the working directory:
cd "C:\Dokumente und Einstellungen\user1\Anwendungsdaten\"
then there should be no need to move the files around. You still might have to rename
the file to avoid the spaces in the file name itself, though.

   /Mats


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user




--
=============================================
        Mats Bengtsson
        Signal Processing
        School of Electrical Engineering
        Royal Institute of Technology (KTH)
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

[Prev in Thread] Current Thread [Next in Thread]