lilypond-user
[Top][All Lists]
Advanced

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

Re: Is cross voice parenthesis arpeggios possible?


From: Thomas Morley
Subject: Re: Is cross voice parenthesis arpeggios possible?
Date: Sun, 18 Jan 2015 23:50:23 +0100

2015-01-18 23:11 GMT+01:00 David Kastrup <address@hidden>:
> Thomas Morley <address@hidden> writes:
>
>> I'm ashamed I couldn't figure how to use a function with an optional
>> argument for it.
>>
>> Best I found is:
>>
>> #(define* (parenthesized-arpeggio #:optional (ctx "Bottom"))
>>   #{
>>     \override #ctx . Arpeggio.stencil = #ly:arpeggio::brew-chord-slur
>>     \override #ctx . Arpeggio.X-extent = #ly:grob::stencil-width
>>     \revert #ctx . Arpeggio.dash-definition
>>   #})
>>
>> But it seems it isn't possible to use it like:
>> \parenthesized-arpeggio Staff
>> (like a music-function)
>>
>> @David K, any chance to make it work?
>
> The normal optional argument definition style will work just fine.  The
> problem is that with the optional argument coming _last_, you cannot
> omit it implicitly.
>
> You then have to write \parenthesized-arpeggio \default
>
> which is not really much of a saving as compared to spelling Bottom
> out.
>
> --
> David Kastrup

Thanks for the explanations!
I have to admit that I had forgotten about these limitation totally.


Cheers,
  Harm



reply via email to

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