[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: apc2ly
From: |
Jan Nieuwenhuizen |
Subject: |
Re: apc2ly |
Date: |
Thu, 08 Apr 2004 11:13:55 +0200 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
Peter Rosenbeck writes:
Hi Peter,
> thank you for your help.
>
> The problem is in abc2ly. I have LilyPond Version 2.01.
> I have attached a screen shot of the error message. Hope that helps.
> This is the version I get when doing the download for Windows
> platforms.
You found a bug in abc2ly; it cannot handle DOS/Windows flavour line
endings. Try this patch:
--- abc2ly.py.~1.35.~ 2003-09-09 13:08:10.000000000 +0200
+++ abc2ly.py 2004-04-08 10:56:13.000000000 +0200
@@ -1209,6 +1209,7 @@ happy_count = 100
def parse_file (fn):
f = open (fn)
ls = f.readlines ()
+ ls = map (lambda x: re.sub ("\r$", '', x), ls)
select_voice('default', '')
lineno = 0
or convert your .abc files to UNIX, like so:
tr -d '\r' < 1.abc > 1-unix.abc
> I only discovered LilyPond yesterday and I was instantly fascinated,
> because I love music, free software and Scheme. I have a large
> collection of Bavarian folk music (mostly Zwiefache, a kind of
> song/dance where the rythm changes between 3/4 and 2/4 and the
> change pattern is different for every song) in abc (because I can
> use my Palm to play the music to members of my band, we play
> everything from memory and don't use scores). I plan to publish my
> collection in abc and in a printed version, using LilyPond for the
> latter. A first version of my site (using capella instead of abc)
> can be found at http://www.volksmusikfreunde.de/download.html
That's interesting. Like I mentioned in my other post, I'm afraid
abc2ly does not know about K:Zwiefache. Where did you find that?
Jan.
--
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien | http://www.lilypond.org
- apc2ly, Peter Rosenbeck, 2004/04/07
- Re: apc2ly, Jan Nieuwenhuizen, 2004/04/08
- Re: apc2ly,
Jan Nieuwenhuizen <=