[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-devel
Subject:    Re: New Python script: skeleton maker (with erratum)
From:       John Mandereau <john.mandereau () free ! fr>
Date:       2005-07-23 7:40:59
Message-ID: 1122104459.3732.53.camel () lns-vlq-24-lyo-82-255-128-62 ! adsl ! proxad ! net
[Download RAW message or body]

Han-Wen Nienhuys wrote:
> John Mandereau wrote:
> > Hello,
> > I've just finished a script that makes LilyPond skeleton files. It
> > should work with both 2.4 and 2.6 versions.
> > 
> > Please try it (see README -> Quick Test) and tell me how useful you
> > think it is; and tell me if the code is clumsy, because I'm not very
> > experienced.
> > 
> > I don't know how to distribute it: it depends whether it will be
> > included in LilyPond or not. If it should be distributed separately, I'd
> > have to add the GPL license, and maybe an installation procedure (do you
> > think it is really necessary for a so simple program?)
> 
> Just a programming hint: it's easier to assemble the string without any 
> indents, and then parse the string as a whole, inserting any indents by 
> counting { and } .
Thanks.
Now I have thought a bit more about it (which I should have done
earlier), there is certainly a better approach, which would make it more
simple to use and more flexible. I think I'm going to get rid of this
complex user interface: instaead, the script will take an input file
which consists of Python data definitions.

Thanks to Neil Tiffin, here's a patch for the script: it fixes an error
in the staff definition example.
-- 
John Mandereau <john.mandereau@free.fr>

["lysmaker.patch" (lysmaker.patch)]

--- lysmaker	2005-07-22 11:29:38.000000000 +0200
+++ lysmaker.new	2005-07-23 09:12:01.000000000 +0200
@@ -122,7 +122,7 @@
    * scaling (optional argument) is an integer: negative means smaller, positive \
                means bigger\n\
 * create a StaffGroup/GrandStaff/ChoirStaff by enclosing staves with\nbrackets [ ] \
 /braces { } /angle brackets < >\nExample: \
                <(nlm;soprano;Soprano;Sop.;soprano;;-2)>[(n;treble;English Horn;E.H.\
-;engHorn;f, c;-2)(nk;treble;Horn in E flat;Hrn E fl.;horn;es, \
c;-2)](gmx,,Piano,Pno.,piano)") +engHorn;f, c;-2)(nk;treble;Horn in E flat;Hrn E \
fl.;horn;es, c;-2)](gmx;;Piano;Pno.;piano;;)")  while stafflist == '':
 			stafflist = raw_input(_("Enter the staff list: "))
 	stack = ['x'] # this stack checks braces and brackets matching



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic