Hi Thomas
#(format #t
"\nCurrent output-filename: \"~a\"\n"
(paper-variable (ly:parser-lookup '$current-book) 'output-filename))
Thanks for that snippet. I spent hours to find a way to get the current output
filename
and suffix. $current-book and similar variables definitely should be do
On 18/04/17 20:28, Thomas Morley wrote:
#(format #t
"\nCurrent output-filename: \"~a\"\n"
(paper-variable (ly:parser-lookup '$current-book) 'output-filename))
This example of ly:parser-lookup was the clue I needed to figure out how
to read fields in a book's header.
\version "2.19.5
Op 18-4-2017 om 21:28 schreef Thomas Morley:
Not sure if it'll help, here some methods to retrieve values:
[...]
#(format #t
"\nCurrent filename: \"~a.ly\"\n"
(ly:parser-output-name))
HTH,
Harm
This is great, because I found that I actually preferred to use the
original file name.
Am 18. April 2017 20:34:40 MESZ schrieb Jeffery Shivers
:
>On Tue, Apr 18, 2017 at 12:57 PM, Patrick Hubers
>wrote:
>>
>> I would love to use this solution, but it means that you also have to
>define
>> the actual name of the *file* in addition to the directory. Is there
>a way
>> to derive the
2017-04-18 20:34 GMT+02:00 Jeffery Shivers :
> On Tue, Apr 18, 2017 at 12:57 PM, Patrick Hubers wrote:
>>
>> I would love to use this solution, but it means that you also have to define
>> the actual name of the *file* in addition to the directory. Is there a way
>> to derive the filename from the
On Tue, Apr 18, 2017 at 12:57 PM, Patrick Hubers wrote:
>
> I would love to use this solution, but it means that you also have to define
> the actual name of the *file* in addition to the directory. Is there a way
> to derive the filename from the title and use that? I found that using
>
> \book
Op 5-4-2017 om 11:32 schreef Malte Meyn:
is it possible to specify an output directory from within the LilyPond
file without going through the hoops of ly:book-process?
How about \bookOutputName? This works with absolute paths like
\bookOutputName "/home/malte/foo" (output to /home/malte/foo
Am 05.04.2017 um 11:32 schrieb Malte Meyn:
>
> Am 05.04.2017 um 11:19 schrieb Urs Liska:
>> Hi all,
>>
>> is it possible to specify an output directory from within the LilyPond
>> file without going through the hoops of ly:book-process?
>>
>> TIA
>> Urs
> How about \bookOutputName? This works wit
Am 05.04.2017 um 11:19 schrieb Urs Liska:
> Hi all,
>
> is it possible to specify an output directory from within the LilyPond
> file without going through the hoops of ly:book-process?
>
> TIA
> Urs
How about \bookOutputName? This works with absolute paths like
\bookOutputName "/home/malte