lilypond-user
[Top][All Lists]
Advanced

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

Re: filename in markup


From: address@hidden
Subject: Re: filename in markup
Date: Tue, 15 Mar 2011 06:32:47 -0400

On Mar 11, 2011, at 10:57 AM, MING TSANG wrote:

Thank you.

Additional question:  Can the path of the file name be printed also?



From: Marek Klein <address@hidden>
To: MING TSANG <address@hidden>
Cc: address@hidden
Sent: Fri, March 11, 2011 10:19:01 AM
Subject: Re: filename in markup

2011/3/11 MING TSANG <address@hidden>
How can I code this in a .ly file? I am just interested in printing the file name (if possible with the full path) on the bottom of a score sheet.

Click on the picture (with the text) here: <http://lsr.dsi.unimi.it/LSR/Item?id=197> and you will find the code.

Marek

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

One issue with this solution is that if you do batch processing from the command line:

lilypond foo.ly bar.ly

Then the solution no longer works.  Is there a more secure way to get the correct file name?

I know that the filename can be accessed from the parser, but I can't seem to get the parser out of anything that's not a music function.  Does anyone have any hints as to how to securely get the parser from anywhere in Scheme-land?

Cheers,
MS

reply via email to

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