lilypond-user
[Top][All Lists]
Advanced

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

Re: include all files in a folder


From: Joseph Chrestien
Subject: Re: include all files in a folder
Date: Mon, 29 Aug 2016 05:53:49 +0000

Hi,

I'm not sure at all, but you might want to try to create a scheme function calling the #scandir scheme function.

Otherwise, a rather unLilyPondic solution: call a Python or bash line from within lilypond using scheme function syscall :
That would include something like this :

#(define mycall '"\include $(ls *.ly)" > allIncludes.ly')
pyMx=#(define-music-function (parser location)()(system mycall);; or: (system* mycall ) #{ #})

Then \include allIncludes in your lily file.

Good luck,
Jo




On Mon, Aug 29, 2016 at 6:27 AM +0200, "Craig Dabelstein" <address@hidden> wrote:

Hi Lilyponders,

Is there some form of code for including all files in a folder?

Instead of entering every file on a separate line like this:

\include "../Notes/movtI/fluteI.ily"
\include "../Notes/movtI/fluteII.ily"
etc

Is there something like this that will work?

\include "../Notes/movtI/*.ily"

Any ideas?

All the best.

Craig


Craig Dabelstein
 

reply via email to

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