|
From: | Remy CLAVERIE |
Subject: | re: Lilypond document reformatting script? |
Date: | Thu, 30 Mar 2017 12:13:33 +0200 (CEST) |
Hi Devon,
As a Python programmer I could help you, but I did not understand what is the job to do...
Could you send me some files and explain with a example what you'ld like ?
Thanks a lot
Rémy
> Message du 30/03/17 10:45
> De : "Devon LePage" <address@hidden>
> A : "Lilypond-User Mailing List" <address@hidden>
> Copie à :
> Objet : Lilypond document reformatting script?
>
>I’m currently working on a project that involves importing a lot of music into LilyPond via MusicXML. (Before this, the music is scanned and OCR-ed in Smart Score X2, if that is relevant.)
>Unfortunately, the resulting LilyPond code is a bit messy and difficult to read. I'd like to reformat these files so that there’s only one measure on each indented line.
>Doing this by hand takes up a significant amount of time, so I’ve been trying to create a python script that uses the ly.lex package to do this. Has anyone already done this? I couldn’t find anything, so I tried to do it myself. But after four hours of frustration I'm starting to think that I might be too much of a novice to figure this out. There are just too many moving parts for me—I’m having a hard time just figuring out how to add a newline in the middle of a small lilypond document. I’m also unsure how to incorporate tuplets into the determination of a measure.
>I’m wondering if there’s a wizard here on the mailing list who might be able to help me out? (Another dream would be to have a function that adds a second newline after every group of N-measures.)
>At the very least, maybe someone could point me in the right direction: what do I need to read/understand to figure this out? How would one go about doing this?
>Thanks,-Devon.
_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user
[Prev in Thread] | Current Thread | [Next in Thread] |