Johan,
thanks for your input. Your code put me in the right direction. I found an
enhancement request has been submitted and an example is included. I get an
error though.
includeIfAbsent.ly:26:2: error: GUILE signaled an error for the expression
beginning here
#
(if (not (defined? 'includeIfAbs
MarcM writes:
> your function checks for arguments passed on the command line. Is there a way
> to check variable like an IFDEF ?
HTH,
Johan
ifdefined.ly
Description: Binary data
ifthenelse.ly
Description: Binary data
___
lilypond-user mail
your function checks for arguments passed on the command line. Is there a way
to check variable like an IFDEF ?
I want to reduce the number of lilypond file needed to print SATB and
quartets.
In a quartet i have 4 voices that each includes the common header
i have a file that contains all voices
Am 05.02.2013 11:07, schrieb David Kastrup:
Jan-Peter Voigt writes:
Hi Urs,
you can write a music-function that conditionally includes files.
I use a function to include a file, if it exists. The if statement can
of course also test for a option with ly:get-option.
\version "2.16.0"
includeI
Am 05.02.2013 11:07, schrieb David Kastrup:
Jan-Peter Voigt writes:
Hi Urs,
you can write a music-function that conditionally includes files.
I use a function to include a file, if it exists. The if statement can
of course also test for a option with ly:get-option.
\version "2.16.0"
includeI
Jan-Peter Voigt writes:
> Hi Urs,
>
> you can write a music-function that conditionally includes files.
> I use a function to include a file, if it exists. The if statement can
> of course also test for a option with ly:get-option.
> \version "2.16.0"
>
> includeIfExists =
> #(define-music-funct
Hi Jan-Peter,
thank you very much. This example function was actually accessible for
me [other than a similar function in lalily, which is just that little
amount more complex ...].
I tweaked it to my needs as can be seen in the attachment.
It makes a decision depending on the presence of a -d
Hi Urs,
you can write a music-function that conditionally includes files.
I use a function to include a file, if it exists. The if statement can
of course also test for a option with ly:get-option.
Best, Jan-Peter
On 04.02.2013 16:48, Urs Liska wrote:
Hi list,
I don't know if I _could_ f